From e5d3836a12e6aa02b4bb800e560fa72e09864205 Mon Sep 17 00:00:00 2001 From: cuiyang0427 <849290847@qq.com> Date: Tue, 13 Aug 2024 17:25:26 +0800 Subject: [PATCH] fix toJson bugs when declare optional collection with initializer --- dist/gen.js | 2 +- src/classTemplates.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/gen.js b/dist/gen.js index a76ee76..47c69be 100644 --- a/dist/gen.js +++ b/dist/gen.js @@ -12,4 +12,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0;for(var r=0,n=e;r>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.getIterator=function(t){if(t){if(k(t))return _(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r=0;n--){var i=e[n];if(t(i,n))return i}},e.findIndex=function(e,t,r){if(void 0===e)return-1;for(var n=null!=r?r:0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n100&&r>t.length>>1){var i=t.length-r;t.copyWithin(0,r),t.length=i,r=0}return e},isEmpty:n}},e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next:function(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!k(r.value))return{value:r.value};e=_(r.value)}}}}return{has:function(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!k(a))return n(a,e);for(var o=0,s=a;ot?1:0}function R(e,t){return O(e,t)}e.toFileNameLowerCase=P,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function U(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;dr)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function V(e,t){for(var r=t;r=r.length+n.length&&q(t,r)&&z(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;ri&&(i=c.prefix.length,n=s)}return n},e.startsWith=q,e.removePrefix=function(e,t){return q(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),q(r(e),r(t))?e.substring(t.length):void 0},e.isPatternMatch=$,e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(d||(d={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.enableDeprecationWarnings=!0,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function g(e,t,r){null==e&&_(t,r||g)}function m(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a=[],o=t,s=0,c=i;st)break;0!==u&&u&t&&(a.push(d),o&=~u)}if(0===o)return a.join("|")}else for(var p=0,_=i;p<_.length;p++){var f=_[p];u=f[0],d=f[1];if(u===t)return d}return t.toString()}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(D(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= ").concat(r),n||e)},r.assertIsDefined=g,r.checkDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertEachIsDefined=m,r.checkEachDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertNever=h,r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '".concat(v(n),"'.")}),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node ".concat(D(t.kind)," should not have passed test '").concat(v(r),"'.")}),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," was not a '").concat(D(r),"' token.")}),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node ".concat(D(t.kind)," was unexpected'.")}),n||e)},r.type=y,r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(k(t.flags),"; declarations: ").concat(e.map(t.declarations,(function(e){return D(e.kind)}))," }")},r.formatEnum=b;var x=new e.Map;function D(t){return b(t,e.SyntaxKind,!1)}function S(t){return b(t,e.NodeFlags,!0)}function T(t){return b(t,e.ModifierFlags,!0)}function C(t){return b(t,e.TransformFlags,!0)}function E(t){return b(t,e.EmitFlags,!0)}function k(t){return b(t,e.SymbolFlags,!0)}function A(t){return b(t,e.TypeFlags,!0)}function N(t){return b(t,e.SignatureFlags,!0)}function F(t){return b(t,e.ObjectFlags,!0)}function w(t){return b(t,e.FlowFlags,!0)}r.formatSyntaxKind=D,r.formatSnippetKind=function(t){return b(t,e.SnippetKind,!1)},r.formatNodeFlags=S,r.formatModifierFlags=T,r.formatTransformFlags=C,r.formatEmitFlags=E,r.formatSymbolFlags=k,r.formatTypeFlags=A,r.formatSignatureFlags=N,r.formatObjectFlags=F,r.formatFlowFlags=w,r.formatRelationComparisonResult=function(t){return b(t,e.RelationComparisonResult,!0)},r.formatCheckMode=function(t){return b(t,e.CheckMode,!0)},r.formatSignatureCheckMode=function(t){return b(t,e.SignatureCheckMode,!0)},r.formatTypeFacts=function(t){return b(t,e.TypeFacts,!0)};var P,I,O,M=!1;function L(e){return function(){if(j(),!P)throw new Error("Debugging helpers could not be loaded.");return P}().formatControlFlowGraph(e)}function R(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(w(t),")"):"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return L(this)}}})}function B(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function j(){if(!M){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(k(r),")"):"")}},__debugFlags:{get:function(){return k(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(F(r),")"):"")}},__debugFlags:{get:function(){return A(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?F(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return N(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return p?function(e,t,r,n){var i=J(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,c,d,n.message):_?function(e,t,n,i){var a=!1;return function(){r.enableDeprecationWarnings&&!a&&(l.warn(J(e,!1,t,n,i)),a=!0)}}(t,c,d,n.message):e.noop}r.printControlFlowGraph=function(e){return console.log(L(e))},r.formatControlFlowGraph=L,r.attachFlowNodeDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Object.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.attachNodeArrayDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(O||B(O=Object.create(Array.prototype)),Object.setPrototypeOf(e,O)):B(e))},r.enableDebugInfo=j,r.createDeprecation=U,r.deprecate=function(e,t){var r;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(U(null!==(r=null==t?void 0:t.name)&&void 0!==r?r:v(e),t),e)},r.formatVariance=function(e){var t=7&e,r=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?r+=" (unmeasurable)":16&e&&(r+=" (unreliable)"),r};var z=function(){function t(){}return t.prototype.__debugToString=function(){var t;switch(this.kind){case 3:return(null===(t=this.debugInfo)||void 0===t?void 0:t.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,(function(){return"any"})),(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString())})).join(", ");case 2:return e.zipWith(this.sources,this.targets,(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString())})).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return h(this)}},t}();r.DebugTypeMapper=z,r.attachDebugPrototypeIfDebug=function(e){return r.isDebugging?Object.setPrototypeOf(e,z.prototype):e}}(e.Debug||(e.Debug={}))}(d||(d={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,i=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^[a-z0-9-]+$/i,o=/^(0|[1-9]\d*)$/,s=function(){function t(t,r,i,o,s){if(void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),"string"==typeof t){var l=e.Debug.checkDefined(c(t),"Invalid version");t=l.major,r=l.minor,i=l.patch,o=l.prerelease,s=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(r>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch");var u=o?e.isArray(o)?o:o.split("."):e.emptyArray,d=s?e.isArray(s)?s:s.split("."):e.emptyArray;e.Debug.assert(e.every(u,(function(e){return n.test(e)})),"Invalid argument: prerelease"),e.Debug.assert(e.every(d,(function(e){return a.test(e)})),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=u,this.build=d}return t.tryParse=function(e){var r=c(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function g(t){for(var r=[],n=0,i=e.trimString(t).split(u);n=",n.version)),v(i.major)||r.push(v(i.minor)?b("<",i.version.increment("major")):v(i.patch)?b("<",i.version.increment("minor")):b("<=",i.version)),!0)}function y(e,t,r){var n=m(t);if(!n)return!1;var i=n.version,a=n.major,o=n.minor,c=n.patch;if(v(a))"<"!==e&&">"!==e||r.push(b("<",s.zero));else switch(e){case"~":r.push(b(">=",i)),r.push(b("<",i.increment(v(o)?"major":"minor")));break;case"^":r.push(b(">=",i)),r.push(b("<",i.increment(i.major>0||v(o)?"major":i.minor>0||v(c)?"minor":"patch")));break;case"<":case">=":r.push(v(o)||v(c)?b(e,i.with({prerelease:"0"})):b(e,i));break;case"<=":case">":r.push(v(o)?b("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):v(c)?b("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):b(e,i));break;case"=":case void 0:v(o)||v(c)?(r.push(b(">=",i.with({prerelease:"0"}))),r.push(b("<",i.increment(v(o)?"major":"minor").with({prerelease:"0"})))):r.push(b("=",i));break;default:return!1}return!0}function v(e){return"*"===e||"x"===e||"X"===e}function b(e,t){return{operator:e,operand:t}}function x(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function S(t){return e.map(t,T).join(" ")}function T(e){return"".concat(e.operator).concat(e.operand)}}(d||(d={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r(2987),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")},clearMarks:function(e){return a.clearMarks(e)},clearMeasures:function(e){return a.clearMeasures(e)}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,_=l.get(t)||0;l.set(t,_+(d-p)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.forEachMark=function(e){s.forEach((function(t,r){return e(r)}))},t.clearMeasures=function(e){void 0!==e?l.delete(e):l.clear(),null==n||n.clearMeasures(e)},t.clearMarks=function(e){void 0!==e?(c.delete(e),s.delete(e)):(c.clear(),s.clear()),null==n||n.clearMarks(e)},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(d||(d={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r(9953)(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(d||(d={})),function(e){var t;!function(t){var n,i,o,s=0,c=0,l=[],u=[];t.startTracing=function(d,p,_){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r(9896)}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=d,l.length=0,void 0===o&&(o=e.combinePaths(p,"legend.json")),n.existsSync(p)||n.mkdirSync(p,{recursive:!0});var f="build"===i?".".concat(process.pid,"-").concat(++s):"server"===i?".".concat(process.pid):"",g=e.combinePaths(p,"trace".concat(f,".json")),m=e.combinePaths(p,"types".concat(f,".json"));u.push({configFilePath:_,tracePath:g,typesPath:m}),c=n.openSync(g,"w"),e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[a({name:"process_name",args:{name:"tsc"}},h),a({name:"thread_name",args:{name:"Main"}},h),a(a({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?function(t){var r,i,o,s,c,l,d,p,_,f,m,h,y,v,b,x,D,S,T,C,E,k;e.performance.mark("beginDumpTypes");var A=u[u.length-1].typesPath,N=n.openSync(A,"w"),F=new e.Map;n.writeSync(N,"[");for(var w=t.length,P=0;P0),_(d.length-1,1e3*e.timestamp(),t),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)_(r,t);d.length=0};var p=1e4;function _(t,r,n){var i=d[t],o=i.phase,s=i.name,c=i.args,l=i.time;i.separateBeginAndEnd?(e.Debug.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",o,s,c,void 0,r)):p-l%p<=r-l&&f("X",o,s,a(a({},c),{results:n}),'"dur":'.concat(r-l),l)}function f(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function g(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(u))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(d||(d={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.StructKeyword=85]="StructKeyword",e[e.ConstKeyword=86]="ConstKeyword",e[e.ContinueKeyword=87]="ContinueKeyword",e[e.DebuggerKeyword=88]="DebuggerKeyword",e[e.DefaultKeyword=89]="DefaultKeyword",e[e.DeleteKeyword=90]="DeleteKeyword",e[e.DoKeyword=91]="DoKeyword",e[e.ElseKeyword=92]="ElseKeyword",e[e.EnumKeyword=93]="EnumKeyword",e[e.ExportKeyword=94]="ExportKeyword",e[e.ExtendsKeyword=95]="ExtendsKeyword",e[e.FalseKeyword=96]="FalseKeyword",e[e.FinallyKeyword=97]="FinallyKeyword",e[e.ForKeyword=98]="ForKeyword",e[e.FunctionKeyword=99]="FunctionKeyword",e[e.IfKeyword=100]="IfKeyword",e[e.ImportKeyword=101]="ImportKeyword",e[e.InKeyword=102]="InKeyword",e[e.InstanceOfKeyword=103]="InstanceOfKeyword",e[e.NewKeyword=104]="NewKeyword",e[e.NullKeyword=105]="NullKeyword",e[e.ReturnKeyword=106]="ReturnKeyword",e[e.SuperKeyword=107]="SuperKeyword",e[e.SwitchKeyword=108]="SwitchKeyword",e[e.ThisKeyword=109]="ThisKeyword",e[e.ThrowKeyword=110]="ThrowKeyword",e[e.TrueKeyword=111]="TrueKeyword",e[e.TryKeyword=112]="TryKeyword",e[e.TypeOfKeyword=113]="TypeOfKeyword",e[e.VarKeyword=114]="VarKeyword",e[e.VoidKeyword=115]="VoidKeyword",e[e.WhileKeyword=116]="WhileKeyword",e[e.WithKeyword=117]="WithKeyword",e[e.ImplementsKeyword=118]="ImplementsKeyword",e[e.InterfaceKeyword=119]="InterfaceKeyword",e[e.LetKeyword=120]="LetKeyword",e[e.PackageKeyword=121]="PackageKeyword",e[e.PrivateKeyword=122]="PrivateKeyword",e[e.ProtectedKeyword=123]="ProtectedKeyword",e[e.PublicKeyword=124]="PublicKeyword",e[e.StaticKeyword=125]="StaticKeyword",e[e.YieldKeyword=126]="YieldKeyword",e[e.AbstractKeyword=127]="AbstractKeyword",e[e.AccessorKeyword=128]="AccessorKeyword",e[e.AsKeyword=129]="AsKeyword",e[e.AssertsKeyword=130]="AssertsKeyword",e[e.AssertKeyword=131]="AssertKeyword",e[e.AnyKeyword=132]="AnyKeyword",e[e.AsyncKeyword=133]="AsyncKeyword",e[e.AwaitKeyword=134]="AwaitKeyword",e[e.BooleanKeyword=135]="BooleanKeyword",e[e.ConstructorKeyword=136]="ConstructorKeyword",e[e.DeclareKeyword=137]="DeclareKeyword",e[e.GetKeyword=138]="GetKeyword",e[e.InferKeyword=139]="InferKeyword",e[e.IntrinsicKeyword=140]="IntrinsicKeyword",e[e.IsKeyword=141]="IsKeyword",e[e.KeyOfKeyword=142]="KeyOfKeyword",e[e.ModuleKeyword=143]="ModuleKeyword",e[e.NamespaceKeyword=144]="NamespaceKeyword",e[e.NeverKeyword=145]="NeverKeyword",e[e.OutKeyword=146]="OutKeyword",e[e.ReadonlyKeyword=147]="ReadonlyKeyword",e[e.RequireKeyword=148]="RequireKeyword",e[e.NumberKeyword=149]="NumberKeyword",e[e.ObjectKeyword=150]="ObjectKeyword",e[e.SatisfiesKeyword=151]="SatisfiesKeyword",e[e.SetKeyword=152]="SetKeyword",e[e.StringKeyword=153]="StringKeyword",e[e.SymbolKeyword=154]="SymbolKeyword",e[e.TypeKeyword=155]="TypeKeyword",e[e.UndefinedKeyword=156]="UndefinedKeyword",e[e.UniqueKeyword=157]="UniqueKeyword",e[e.UnknownKeyword=158]="UnknownKeyword",e[e.FromKeyword=159]="FromKeyword",e[e.GlobalKeyword=160]="GlobalKeyword",e[e.BigIntKeyword=161]="BigIntKeyword",e[e.OverrideKeyword=162]="OverrideKeyword",e[e.OfKeyword=163]="OfKeyword",e[e.QualifiedName=164]="QualifiedName",e[e.ComputedPropertyName=165]="ComputedPropertyName",e[e.TypeParameter=166]="TypeParameter",e[e.Parameter=167]="Parameter",e[e.Decorator=168]="Decorator",e[e.PropertySignature=169]="PropertySignature",e[e.PropertyDeclaration=170]="PropertyDeclaration",e[e.MethodSignature=171]="MethodSignature",e[e.MethodDeclaration=172]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=173]="ClassStaticBlockDeclaration",e[e.Constructor=174]="Constructor",e[e.GetAccessor=175]="GetAccessor",e[e.SetAccessor=176]="SetAccessor",e[e.CallSignature=177]="CallSignature",e[e.ConstructSignature=178]="ConstructSignature",e[e.IndexSignature=179]="IndexSignature",e[e.TypePredicate=180]="TypePredicate",e[e.TypeReference=181]="TypeReference",e[e.FunctionType=182]="FunctionType",e[e.ConstructorType=183]="ConstructorType",e[e.TypeQuery=184]="TypeQuery",e[e.TypeLiteral=185]="TypeLiteral",e[e.ArrayType=186]="ArrayType",e[e.TupleType=187]="TupleType",e[e.OptionalType=188]="OptionalType",e[e.RestType=189]="RestType",e[e.UnionType=190]="UnionType",e[e.IntersectionType=191]="IntersectionType",e[e.ConditionalType=192]="ConditionalType",e[e.InferType=193]="InferType",e[e.ParenthesizedType=194]="ParenthesizedType",e[e.ThisType=195]="ThisType",e[e.TypeOperator=196]="TypeOperator",e[e.IndexedAccessType=197]="IndexedAccessType",e[e.MappedType=198]="MappedType",e[e.LiteralType=199]="LiteralType",e[e.NamedTupleMember=200]="NamedTupleMember",e[e.TemplateLiteralType=201]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=202]="TemplateLiteralTypeSpan",e[e.ImportType=203]="ImportType",e[e.ObjectBindingPattern=204]="ObjectBindingPattern",e[e.ArrayBindingPattern=205]="ArrayBindingPattern",e[e.BindingElement=206]="BindingElement",e[e.ArrayLiteralExpression=207]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=208]="ObjectLiteralExpression",e[e.PropertyAccessExpression=209]="PropertyAccessExpression",e[e.ElementAccessExpression=210]="ElementAccessExpression",e[e.CallExpression=211]="CallExpression",e[e.NewExpression=212]="NewExpression",e[e.TaggedTemplateExpression=213]="TaggedTemplateExpression",e[e.TypeAssertionExpression=214]="TypeAssertionExpression",e[e.ParenthesizedExpression=215]="ParenthesizedExpression",e[e.FunctionExpression=216]="FunctionExpression",e[e.ArrowFunction=217]="ArrowFunction",e[e.EtsComponentExpression=218]="EtsComponentExpression",e[e.DeleteExpression=219]="DeleteExpression",e[e.TypeOfExpression=220]="TypeOfExpression",e[e.VoidExpression=221]="VoidExpression",e[e.AwaitExpression=222]="AwaitExpression",e[e.PrefixUnaryExpression=223]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=224]="PostfixUnaryExpression",e[e.BinaryExpression=225]="BinaryExpression",e[e.ConditionalExpression=226]="ConditionalExpression",e[e.TemplateExpression=227]="TemplateExpression",e[e.YieldExpression=228]="YieldExpression",e[e.SpreadElement=229]="SpreadElement",e[e.ClassExpression=230]="ClassExpression",e[e.OmittedExpression=231]="OmittedExpression",e[e.ExpressionWithTypeArguments=232]="ExpressionWithTypeArguments",e[e.AsExpression=233]="AsExpression",e[e.NonNullExpression=234]="NonNullExpression",e[e.MetaProperty=235]="MetaProperty",e[e.SyntheticExpression=236]="SyntheticExpression",e[e.SatisfiesExpression=237]="SatisfiesExpression",e[e.TemplateSpan=238]="TemplateSpan",e[e.SemicolonClassElement=239]="SemicolonClassElement",e[e.Block=240]="Block",e[e.EmptyStatement=241]="EmptyStatement",e[e.VariableStatement=242]="VariableStatement",e[e.ExpressionStatement=243]="ExpressionStatement",e[e.IfStatement=244]="IfStatement",e[e.DoStatement=245]="DoStatement",e[e.WhileStatement=246]="WhileStatement",e[e.ForStatement=247]="ForStatement",e[e.ForInStatement=248]="ForInStatement",e[e.ForOfStatement=249]="ForOfStatement",e[e.ContinueStatement=250]="ContinueStatement",e[e.BreakStatement=251]="BreakStatement",e[e.ReturnStatement=252]="ReturnStatement",e[e.WithStatement=253]="WithStatement",e[e.SwitchStatement=254]="SwitchStatement",e[e.LabeledStatement=255]="LabeledStatement",e[e.ThrowStatement=256]="ThrowStatement",e[e.TryStatement=257]="TryStatement",e[e.DebuggerStatement=258]="DebuggerStatement",e[e.VariableDeclaration=259]="VariableDeclaration",e[e.VariableDeclarationList=260]="VariableDeclarationList",e[e.FunctionDeclaration=261]="FunctionDeclaration",e[e.ClassDeclaration=262]="ClassDeclaration",e[e.StructDeclaration=263]="StructDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.CaseClause=295]="CaseClause",e[e.DefaultClause=296]="DefaultClause",e[e.HeritageClause=297]="HeritageClause",e[e.CatchClause=298]="CatchClause",e[e.AssertClause=299]="AssertClause",e[e.AssertEntry=300]="AssertEntry",e[e.ImportTypeAssertionContainer=301]="ImportTypeAssertionContainer",e[e.PropertyAssignment=302]="PropertyAssignment",e[e.ShorthandPropertyAssignment=303]="ShorthandPropertyAssignment",e[e.SpreadAssignment=304]="SpreadAssignment",e[e.EnumMember=305]="EnumMember",e[e.UnparsedPrologue=306]="UnparsedPrologue",e[e.UnparsedPrepend=307]="UnparsedPrepend",e[e.UnparsedText=308]="UnparsedText",e[e.UnparsedInternalText=309]="UnparsedInternalText",e[e.UnparsedSyntheticReference=310]="UnparsedSyntheticReference",e[e.SourceFile=311]="SourceFile",e[e.Bundle=312]="Bundle",e[e.UnparsedSource=313]="UnparsedSource",e[e.InputFiles=314]="InputFiles",e[e.JSDocTypeExpression=315]="JSDocTypeExpression",e[e.JSDocNameReference=316]="JSDocNameReference",e[e.JSDocMemberName=317]="JSDocMemberName",e[e.JSDocAllType=318]="JSDocAllType",e[e.JSDocUnknownType=319]="JSDocUnknownType",e[e.JSDocNullableType=320]="JSDocNullableType",e[e.JSDocNonNullableType=321]="JSDocNonNullableType",e[e.JSDocOptionalType=322]="JSDocOptionalType",e[e.JSDocFunctionType=323]="JSDocFunctionType",e[e.JSDocVariadicType=324]="JSDocVariadicType",e[e.JSDocNamepathType=325]="JSDocNamepathType",e[e.JSDoc=326]="JSDoc",e[e.JSDocComment=326]="JSDocComment",e[e.JSDocText=327]="JSDocText",e[e.JSDocTypeLiteral=328]="JSDocTypeLiteral",e[e.JSDocSignature=329]="JSDocSignature",e[e.JSDocLink=330]="JSDocLink",e[e.JSDocLinkCode=331]="JSDocLinkCode",e[e.JSDocLinkPlain=332]="JSDocLinkPlain",e[e.JSDocTag=333]="JSDocTag",e[e.JSDocAugmentsTag=334]="JSDocAugmentsTag",e[e.JSDocImplementsTag=335]="JSDocImplementsTag",e[e.JSDocAuthorTag=336]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=337]="JSDocDeprecatedTag",e[e.JSDocClassTag=338]="JSDocClassTag",e[e.JSDocPublicTag=339]="JSDocPublicTag",e[e.JSDocPrivateTag=340]="JSDocPrivateTag",e[e.JSDocProtectedTag=341]="JSDocProtectedTag",e[e.JSDocReadonlyTag=342]="JSDocReadonlyTag",e[e.JSDocOverrideTag=343]="JSDocOverrideTag",e[e.JSDocCallbackTag=344]="JSDocCallbackTag",e[e.JSDocEnumTag=345]="JSDocEnumTag",e[e.JSDocParameterTag=346]="JSDocParameterTag",e[e.JSDocReturnTag=347]="JSDocReturnTag",e[e.JSDocThisTag=348]="JSDocThisTag",e[e.JSDocTypeTag=349]="JSDocTypeTag",e[e.JSDocTemplateTag=350]="JSDocTemplateTag",e[e.JSDocTypedefTag=351]="JSDocTypedefTag",e[e.JSDocSeeTag=352]="JSDocSeeTag",e[e.JSDocPropertyTag=353]="JSDocPropertyTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=117]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=163]="LastKeyword",e[e.FirstFutureReservedWord=118]="FirstFutureReservedWord",e[e.LastFutureReservedWord=126]="LastFutureReservedWord",e[e.FirstTypeNode=180]="FirstTypeNode",e[e.LastTypeNode=203]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=163]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=242]="FirstStatement",e[e.LastStatement=258]="LastStatement",e[e.FirstNode=164]="FirstNode",e[e.FirstJSDocNode=315]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=333]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=127]="FirstContextualKeyword",e[e.LastContextualKeyword=163]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.EtsContext=1073741824]="EtsContext",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=1124462592]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.StructContext=2]="StructContext",e[e.EtsExtendComponentsContext=4]="EtsExtendComponentsContext",e[e.EtsStylesComponentsContext=8]="EtsStylesComponentsContext",e[e.EtsBuildContext=16]="EtsBuildContext",e[e.EtsBuilderContext=32]="EtsBuilderContext",e[e.EtsStateStylesContext=64]="EtsStateStylesContext",e[e.EtsComponentsContext=128]="EtsComponentsContext",e[e.EtsNewExpressionContext=256]="EtsNewExpressionContext"}(e.EtsFlags||(e.EtsFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var t,r=function(){};e.OperationCanceledException=r,function(e){e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(e){e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride"}(e.MemberOverrideStatus||(e.MemberOverrideStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=268435456]="InCheckIdentifier"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(e){e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent"}(e.AccessFlags||(e.AccessFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force"}(e.ModuleDetectionKind||(e.ModuleDetectionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e[e.ETS=8]="ETS"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e.Ets=".ets",e.Dets=".d.ets"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable"}(e.SnippetKind||(e.SnippetKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",e[e.Immutable=268435456]="Immutable",e[e.IndirectCall=536870912]="IndirectCall"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=4194304]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(e){e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(d||(d={})),function(e){function t(e){for(var t=5381,r=0;r=4,f="linux"===process.platform||"darwin"===process.platform,g=l.platform(),m="win32"!==g&&"win64"!==g&&!P((u=__filename,u.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),h=s.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?s.realpathSync.native(e):s.realpathSync(e)}:s.realpathSync.native:s.realpathSync,y=_&&("win32"===process.platform||"darwin"===process.platform),b=e.memoize((function(){return process.cwd()})),x=S({pollingWatchFileWorker:function(e,t,r){var i;return s.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return s.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i,r.mtime)}},getModifiedTime:O,setTimeout,clearTimeout,fsWatchWorker:function(e,t,r){return s.watch(e,y?{persistent:!0,recursive:!!t}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:b,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:y,getAccessibleSortedChildDirectories:function(e){return F(e).directories},realpath:I,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:f,sysLog:v}),D=x.watchFile,T=x.watchDirectory,E={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:m,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e){var t;try{t=s.readFileSync(e)}catch(e){return}var r=t.length;if(r>=2&&254===t[0]&&255===t[1]){r&=-2;for(var n=0;n=2&&255===t[0]&&254===t[1]?t.toString("utf16le",2):r>=3&&239===t[0]&&187===t[1]&&191===t[2]?t.toString("utf8",3):t.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=s.openSync(t,"w"),s.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:D,watchDirectory:T,resolvePath:function(e){return c.resolve(e)},fileExists:P,directoryExists:function(e){return w(e,1)},createDirectory:function(e){if(!E.directoryExists(e))try{s.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:b,getDirectories:function(e){return F(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,m,process.cwd(),a,F,I)},getModifiedTime:O,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(e){return}},createHash:i?M:t,createSHA256Hash:i?M:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=k(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){A((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(a)return t(),!1;var n=r(264);if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){a=i,d=e,t()}))})),!0},disableCPUProfiler:A,cpuProfilingEnabled:function(){return!!a||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:I,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r(2345).install()}catch(e){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:N,base64decode:function(e){return N(e,"base64").toString("utf8")},base64encode:function(e){return N(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,E);return{module:r(9953)(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return E;function k(e){return s.statSync(e,{throwIfNoEntry:!1})}function A(t){if(a&&"stopping"!==a){var r=a;return a.post("Profiler.stop",(function(n,i){var l,u=i.profile;if(!n){try{(null===(l=k(d))||void 0===l?void 0:l.isDirectory())&&(d=c.join(d,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch(e){}try{s.mkdirSync(c.dirname(d),{recursive:!0})}catch(e){}s.writeFileSync(d,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://".concat(1===e.getRootLength(i)?"":"/").concat(i),s=0,c=t.nodes;s0}function o(e){return 0!==d(e)}function s(e){return/^\.\.?($|[\\/])/.test(e)}function c(t,r){return t.length>r.length&&e.endsWith(t,r)}function l(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function d(r){if(!r)return 0;var n=r.charCodeAt(0);if(47===n||92===n){if(r.charCodeAt(1)!==n)return 1;var i=r.indexOf(47===n?e.directorySeparator:e.altDirectorySeparator,2);return i<0?r.length:i+1}if(u(n)&&58===r.charCodeAt(1)){var a=r.charCodeAt(2);if(47===a||92===a)return 3;if(2===r.length)return 2}var o=r.indexOf(t);if(-1!==o){var s=o+t.length,c=r.indexOf(e.directorySeparator,s);if(-1!==c){var l=r.slice(0,o),d=r.slice(s,c);if("file"===l&&(""===d||"localhost"===d)&&u(r.charCodeAt(c+1))){var p=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(r,c+2);if(-1!==p){if(47===r.charCodeAt(p))return~(p+1);if(p===r.length)return~p}}return~(c+1)}return~r.length}return 0}function p(e){var t=d(e);return t<0?~t:t}function _(t){var r=p(t=v(t));return r===t.length?t:(t=E(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function f(t,r,n){if(p(t=v(t))===t.length)return"";var i=(t=E(t)).slice(Math.max(p(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function g(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function m(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return g(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function h(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=x(r,t),p(t))}function y(t){return 0===t.length?"":(t[0]&&k(t[0]))+t.slice(1).join(e.directorySeparator)}function v(t){return-1!==t.indexOf("\\")?t.replace(r,e.directorySeparator):t}function b(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function x(e){for(var t=[],r=1;r0&&t===e.length},e.pathIsAbsolute=o,e.pathIsRelative=s,e.pathIsBareSpecifier=function(e){return!o(e)&&!s(e)},e.hasExtension=function(t){return e.stringContains(f(t),".")},e.fileExtensionIs=c,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==p(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function I(t,r,n,i,o){var s=w(D(n,t),D(n,r),e.equateStringsCaseSensitive,i),c=s[0];if(o&&a(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return F(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return F(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),F(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=b(h(t)),o=b(h(r));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:t(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:t(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:t(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:t(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:t(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:t(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Warning,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:t(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:t(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:t(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:t(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:t(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:t(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:t(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:t(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:t(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:t(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:t(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:t(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:t(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:t(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:t(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:t(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend:t(28e3,e.DiagnosticCategory.Error,"Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend_28000","Should not add return type to the function that is annotated by Extend."),Decorator_name_must_be_one_of_ETS_Components:t(28001,e.DiagnosticCategory.Error,"Decorator_name_must_be_one_of_ETS_Components_28001","Decorator name must be one of ETS Components"),A_struct_declaration_without_the_default_modifier_must_have_a_name:t(28002,e.DiagnosticCategory.Error,"A_struct_declaration_without_the_default_modifier_must_have_a_name_28002","A struct declaration without the 'default' modifier must have a name."),Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles:t(28003,e.DiagnosticCategory.Error,"Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles_28003","Should not add return type to the function that is annotated by Styles."),Unable_to_resolve_signature_of_function_decorator_when_decorators_are_not_valid:t(28004,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_function_decorator_when_decorators_are_not_valid_28004","Unable to resolve signature of function decorator when decorators are not valid."),The_statement_must_be_written_use_the_function_0_under_the_if_condition:t(28005,e.DiagnosticCategory.Warning,"The_statement_must_be_written_use_the_function_0_under_the_if_condition_28005","The statement must be written use the function '{0}' under the if condition."),The_struct_name_cannot_contain_reserved_tag_name_Colon_0:t(28006,e.DiagnosticCategory.Error,"The_struct_name_cannot_contain_reserved_tag_name_Colon_0_28006","The struct name cannot contain reserved tag name: '{0}'."),This_API_has_been_Special_Markings_exercise_caution_when_using_this_API:t(28007,e.DiagnosticCategory.Warning,"This_API_has_been_Special_Markings_exercise_caution_when_using_this_API_28007","This API has been Special Markings. exercise caution when using this API."),Looking_up_in_oh_modules_folder_initial_location_0:t(28008,e.DiagnosticCategory.Message,"Looking_up_in_oh_modules_folder_initial_location_0_28008","Looking up in 'oh_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_oh_modules_folder:t(28009,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_oh_modul_28009","Containing file is not specified and root directory cannot be determined, skipping lookup in 'oh_modules' folder."),Loading_module_0_from_oh_modules_folder_target_file_type_1:t(28010,e.DiagnosticCategory.Message,"Loading_module_0_from_oh_modules_folder_target_file_type_1_28010","Loading module '{0}' from 'oh_modules' folder, target file type '{1}'."),Found_oh_package_json5_at_0:t(28011,e.DiagnosticCategory.Message,"Found_oh_package_json5_at_0_28011","Found 'oh-package.json5' at '{0}'."),oh_package_json5_does_not_have_a_0_field:t(28012,e.DiagnosticCategory.Message,"oh_package_json5_does_not_have_a_0_field_28012","'oh-package.json5' does not have a '{0}' field."),oh_package_json5_has_0_field_1_that_references_2:t(28013,e.DiagnosticCategory.Message,"oh_package_json5_has_0_field_1_that_references_2_28013","'oh-package.json5' has '{0}' field '{1}' that references '{2}'."),Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared:t(28014,e.DiagnosticCategory.Warning,"Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in__28014","Currently module for '{0}' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared."),UI_component_0_cannot_be_used_in_this_place:t(28015,e.DiagnosticCategory.Error,"UI_component_0_cannot_be_used_in_this_place_28015","UI component '{0}' cannot be used in this place."),Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden:t(28016,e.DiagnosticCategory.Warning,"Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden_28016","Importing ArkTS files in JS and TS files is about to be forbidden."),Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden:t(28017,e.DiagnosticCategory.Error,"Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden_28017","Importing ArkTS files in JS and TS files is forbidden.")}}(d||(d={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={abstract:127,accessor:128,any:132,as:129,asserts:130,assert:131,bigint:161,boolean:135,break:81,case:82,catch:83,class:84,continue:87,const:86}).constructor=136,t.debugger=88,t.declare=137,t.default=89,t.delete=90,t.do=91,t.else=92,t.enum=93,t.export=94,t.extends=95,t.false=96,t.finally=97,t.for=98,t.from=159,t.function=99,t.get=138,t.if=100,t.implements=118,t.import=101,t.in=102,t.infer=139,t.instanceof=103,t.interface=119,t.intrinsic=140,t.is=141,t.keyof=142,t.let=120,t.module=143,t.namespace=144,t.never=145,t.new=104,t.null=105,t.number=149,t.object=150,t.package=121,t.private=122,t.protected=123,t.public=124,t.override=162,t.out=146,t.readonly=147,t.require=148,t.global=160,t.return=106,t.satisfies=151,t.set=152,t.static=125,t.string=153,t.struct=85,t.super=107,t.switch=108,t.symbol=154,t.this=109,t.throw=110,t.true=111,t.try=112,t.type=155,t.typeof=113,t.undefined=156,t.unique=157,t.unknown=158,t.var=114,t.void=115,t.while=116,t.with=117,t.yield=126,t.async=133,t.await=134,t.of=163,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,_=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e=2?u:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,h=(m=[],i.forEach((function(e,t){m[e]=t})),m);function y(e){for(var t=[],r=0,n=0;r127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,y(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return h[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&S(s)){r++;continue}}return r}};var N=7;function F(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N=0&&r127&&S(g)){d&&C(g)&&(u=!0),r++;continue}break e}}return d&&(_=i(s,c,l,u,a,_)),_}function L(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=P.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function U(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?d:1===t?l:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=U,e.isIdentifierText=function(e,t,r){var n=z(e,0);if(!J(n,t))return!1;for(var i=V(n);i117},isReservedWord:function(){return m>=81&&m<=117},isUnterminated:function(){return!!(4&y)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=72):(u+=2,m=49):61===b.charCodeAt(u+1)?(u+=2,m=71):(u++,m=48);if(61===b.charCodeAt(u))return u++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=d){y|=4,P(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){y|=4,P(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r=d)return m=1;var e=z(b,u);switch(u+=V(e),e){case 9:case 11:case 12:case 32:for(;u=0&&J(r,t))return u+=3,y|=8,h=X()+ee(),m=te();var n=Y();return n>=0&&J(n,t)?(u+=6,y|=1024,h=String.fromCharCode(n)+ee(),m=te()):(u++,m=0)}if(J(e,t)){for(var i=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length=d){n+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=H(),i=u}return n}function G(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1=d)return P(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u=0?String.fromCharCode(r):(P(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=K(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(P(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(P(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=d?(P(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(P(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function Y(){if(u+5=0&&U(n,t)){u+=3,y|=8,e+=X(),r=u;continue}if(!((n=Y())>=0&&U(n,t)))break;y|=1024,e+=b.substring(r,u),e+=W(n),r=u+=6}}return e+=b.substring(r,u)}function te(){var e=h.length;if(e>=2&&e<=12){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(h);if(void 0!==r)return m=r,85!==r||D||(m=79),m}}return m=79}function re(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=b[u],u++,i=!1}else y|=512,n?(n=!1,i=!0):P(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&P(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function ne(){if(110===b.charCodeAt(u))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),u++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function ie(){var r;f=u,y=0;for(var n=!1;;){if(g=u,u>=d)return m=1;var o=z(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return m=6}switch(o){case 10:case 13:if(y|=1,i){u++;continue}return 13===o&&u+1=0&&J(D,t))return u+=3,y|=8,h=X()+ee(),m=te();var S=Y();return S>=0&&J(S,t)?(u+=6,y|=1024,h=String.fromCharCode(S)+ee(),m=te()):(P(e.Diagnostics.Invalid_character),u++,m=0);case 35:if(0!==u&&"!"===b[u+1])return P(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,m=0;var k=z(b,u+1);if(92===k){u++;var N=Z();if(N>=0&&J(N,t))return u+=3,y|=8,h="#"+X()+ee(),m=80;var M=Y();if(M>=0&&J(M,t))return u+=6,y|=1024,h="#"+String.fromCharCode(M)+ee(),m=80;u--}return J(k,t)?(u++,ae(k,t)):(h="#",P(e.Diagnostics.Invalid_character,u++,V(o))),m=80;default:var R=ae(o,t);if(R)return m=R;if(T(o)){u+=V(o);continue}if(C(o)){y|=1,u+=V(o);continue}var j=V(o);return P(e.Diagnostics.Invalid_character,u,j),u+=j,m=0}}}function ae(e,t){var r=e;if(J(r,t)){for(u+=V(r);u=d)return m=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,m=30):(u++,m=29);if(123===r)return u++,m=18;for(var n=0;u0)break;S(r)||(n=u)}u++}return h=b.substring(f,u),-1===n?12:11}function ce(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return h=$(!0),m=10;default:return ie()}}function le(e,t){var r=u,n=f,i=g,a=m,o=h,s=y,c=e();return c&&!t||(u=r,f=n,g=i,m=a,h=o,y=s),c}function ue(e,t,r){b=e||"",d=void 0===r?b.length:t+r,de(t||0)}function de(t){e.Debug.assert(t>=0),u=t,f=t,g=t,m=0,h=void 0,y=0}};var z=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function V(e){return e>=65536?2:1}var K=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function W(e){return K(e)}e.utf16EncodeAsString=W}(d||(d={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!te(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 259===t.kind&&(t=t.parent),t&&260===t.kind&&(n|=r(t),t=t.parent),t&&242===t.kind&&(n|=r(t)),n}function _(e){return!(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(ue(r))return h(r);switch(r.kind){case 242:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 243:var n=r.expression;switch(225===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 209:return n.name;case 210:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 215:return h(r.expression);case 255:if(ue(r.statement)||oe(r.statement))return h(r.statement)}}}function h(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 353:case 346:var r=t.name;if(164===r.kind)return r.right;break;case 211:case 225:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 351:return y(t);case 345:return m(t);case 277:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 210:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t){if(e.hasDecorators(t))return e.filter(t.modifiers,e.isDecorator)}function T(t){if(e.hasIllegalDecorators(t))return t.illegalDecorators}function C(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return w(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=w(t.parent,r).filter(e.isJSDocParameterTag);if(i=164}function J(e){return e>=0&&e<=163}function U(e){return 8<=e&&e<=14}function z(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function K(e){switch(e){case 127:case 128:case 133:case 86:case 137:case 89:case 94:case 102:case 124:case 122:case 123:case 147:case 125:case 146:case 162:return!0}return!1}function W(t){return!!(16476&e.modifierToFlag(t))}function q(e){return K(e.kind)}function $(e){return!!e&&H(e.kind)}function G(e){switch(e){case 261:case 172:case 174:case 175:case 176:case 216:case 217:return!0;default:return!1}}function H(e){switch(e){case 171:case 177:case 329:case 178:case 179:case 182:case 323:case 183:return!0;default:return G(e)}}function Q(e){var t=e.kind;return 174===t||170===t||172===t||175===t||176===t||179===t||173===t||239===t}function X(e){return e&&(262===e.kind||230===e.kind||263===e.kind)}function Y(e){switch(e.kind){case 172:case 175:case 176:return!0;default:return!1}}function Z(e){var t=e.kind;return 178===t||177===t||169===t||171===t||179===t||175===t||176===t}function ee(e){var t=e.kind;return 302===t||303===t||304===t||172===t||175===t||176===t}function te(e){if(e){var t=e.kind;return 205===t||204===t}return!1}function re(e){switch(e.kind){case 204:case 208:return!0}return!1}function ne(e){switch(e.kind){case 205:case 207:return!0}return!1}function ie(e){switch(e){case 209:case 210:case 212:case 211:case 284:case 285:case 288:case 213:case 207:case 215:case 208:case 230:case 216:case 218:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 227:case 96:case 105:case 109:case 111:case 107:case 234:case 232:case 235:case 101:return!0;default:return!1}}function ae(e){switch(e){case 223:case 224:case 219:case 220:case 221:case 222:case 214:return!0;default:return ie(e)}}function oe(e){return function(e){switch(e){case 226:case 228:case 217:case 225:case 229:case 233:case 231:case 357:case 356:case 237:return!0;default:return ae(e)}}(R(e).kind)}function se(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ce(e){return 261===e||282===e||262===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function le(e){return 251===e||250===e||258===e||245===e||243===e||241===e||248===e||249===e||247===e||244===e||255===e||252===e||254===e||256===e||257===e||242===e||246===e||253===e||355===e||359===e||358===e}function ue(t){return 166===t.kind?t.parent&&350!==t.parent.kind||e.isInJSFile(t):217===(r=t.kind)||206===r||262===r||230===r||173===r||263===r||174===r||266===r||305===r||281===r||261===r||216===r||175===r||273===r||271===r||276===r||264===r||291===r||172===r||171===r||267===r||270===r||274===r||280===r||167===r||302===r||170===r||169===r||176===r||303===r||265===r||166===r||259===r||351===r||344===r||353===r;var r}function de(e){return e.kind>=333&&e.kind<=353}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getDecorators=S,e.getModifiers=function(t){if(e.hasSyntacticModifier(t,126975))return e.filter(t.modifiers,q)},e.getAllDecorators=function(e){var t=[];if(!e)return t;var r=S(e);r&&t.push.apply(t,r);var n=T(e);return n&&t.push.apply(t,n),t},e.getIllegalDecorators=T,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return C(e,!0)},e.getJSDocTypeParameterTags=function(e){return k(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return k(e,!0)},e.hasJSDocParameterTags=function(t){return!!I(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return I(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return O(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return I(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return I(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return I(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return I(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return I(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return I(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return I(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return I(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return I(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return I(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return I(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return I(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return I(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return I(t,e.isJSDocThisTag)},e.getJSDocReturnTag=A,e.getJSDocTemplateTag=function(t){return I(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=N,e.getJSDocType=F,e.getJSDocReturnType=function(t){var r=A(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=N(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=P,e.getJSDocTagsNoCache=function(e){return w(e,!0)},e.getAllJSDocTags=O,e.getAllJSDocTagsOfKind=function(e,t){return P(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 327===t.kind?t.text:(n=330===(r=t).kind?"link":331===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(326===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.canHaveIllegalTypeParameters(t)&&t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=F(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 176===e.kind||175===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=M,e.isOptionalChainRoot=L,e.isExpressionOfOptionalChainRoot=function(e){return L(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!M(e.parent)||L(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 225===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=R,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 251===e.kind||250===e.kind},e.isNamedExportBindings=function(e){return 280===e.kind||279===e.kind},e.isUnparsedTextLike=B,e.isUnparsedNode=function(e){return B(e)||306===e.kind||310===e.kind},e.isJSDocPropertyLikeTag=function(e){return 353===e.kind||346===e.kind},e.isNode=function(e){return j(e.kind)},e.isNodeKind=j,e.isTokenKind=J,e.isToken=function(e){return J(e.kind)},e.isNodeArray=function(t){return e.hasProperty(t,"pos")&&e.hasProperty(t,"end")},e.isLiteralKind=U,e.isLiteralExpression=function(e){return U(e.kind)},e.isLiteralExpressionOfObject=function(e){switch(e.kind){case 208:case 207:case 13:case 216:case 230:return!0}return!1},e.isTemplateLiteralKind=z,e.isTemplateLiteralToken=function(e){return z(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 276:case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||z(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isGeneratedPrivateIdentifier=function(t){return e.isPrivateIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=K,e.isParameterPropertyModifier=W,e.isClassMemberModifier=function(e){return W(e)||125===e||162===e||128===e},e.isModifier=q,e.isEntityName=function(e){var t=e.kind;return 164===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||165===t},e.isBindingName=function(e){var t=e.kind;return 79===t||204===t||205===t},e.isFunctionLike=$,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(H(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&G(e.kind)},e.isBooleanLiteral=function(e){return 111===e.kind||96===e.kind},e.isFunctionLikeKind=H,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&$(t.parent)},e.isClassElement=Q,e.isClassLike=X,e.isStruct=function(e){return e&&263===e.kind},e.isAccessor=function(e){return e&&(175===e.kind||176===e.kind)},e.isAutoAccessorPropertyDeclaration=function(t){return e.isPropertyDeclaration(t)&&e.hasAccessorModifier(t)},e.isMethodOrAccessor=Y,e.isNamedClassElement=function(e){switch(e.kind){case 172:case 175:case 176:case 170:return!0;default:return!1}},e.isModifierLike=function(t){return q(t)||e.isDecorator(t)},e.isTypeElement=Z,e.isClassOrTypeElement=function(e){return Z(e)||Q(e)},e.isObjectLiteralElementLike=ee,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 182:case 183:return!0}return!1},e.isBindingPattern=te,e.isAssignmentPattern=function(e){var t=e.kind;return 207===t||208===t},e.isArrayBindingElement=function(e){var t=e.kind;return 206===t||231===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 259:case 167:case 206:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return re(e)||ne(e)},e.isObjectBindingOrAssignmentPattern=re,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 206:case 302:case 303:case 304:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ne,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 209===t||164===t||203===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 209===t||164===t},e.isCallLikeExpression=function(e){switch(e.kind){case 286:case 285:case 211:case 212:case 213:case 168:case 218:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 211===e.kind||212===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 227===t||14===t},e.isLeftHandSideExpression=function(e){return ie(R(e).kind)},e.isUnaryExpression=function(e){return ae(R(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 224:return!0;case 223:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=oe,e.isAssertionExpression=function(e){var t=e.kind;return 214===t||233===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 247:case 248:case 249:case 245:case 246:return!0;case 255:return r&&e(t.statement,r)}return!1},e.isScopeMarker=se,e.hasScopeMarker=function(t){return e.some(t,se)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 248===e.kind||249===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||oe(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||oe(t)},e.isModuleBody=function(e){var t=e.kind;return 268===t||267===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 268===t||267===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||267===t},e.isNamedImportBindings=function(e){var t=e.kind;return 275===t||274===t},e.isModuleOrEnumDeclaration=function(e){return 267===e.kind||266===e.kind},e.isDeclaration=ue,e.isDeclarationStatement=function(e){return ce(e.kind)},e.isStatementButNotDeclaration=function(e){return le(e.kind)},e.isStatement=function(t){var r=t.kind;return le(r)||ce(r)||function(t){if(240!==t.kind)return!1;if(void 0!==t.parent&&(257===t.parent.kind||298===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return le(t)||ce(t)||240===t},e.isModuleReference=function(e){var t=e.kind;return 283===t||164===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 109===t||79===t||209===t},e.isJsxChild=function(e){var t=e.kind;return 284===t||294===t||285===t||11===t||288===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 291===t||293===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||294===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 286===t||285===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 295===t||296===t},e.isJSDocNode=function(e){return e.kind>=315&&e.kind<=353},e.isJSDocCommentContainingNode=function(t){return 326===t.kind||325===t.kind||327===t.kind||_e(t)||de(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=de,e.isSetAccessor=function(e){return 176===e.kind},e.isGetAccessor=function(e){return 175===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 259:case 167:case 206:case 170:case 302:case 305:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 291===e.kind||293===e.kind||ee(e)},e.isTypeReferenceType=function(e){return 181===e.kind||232===e.kind};var pe=1073741823;function _e(e){return 330===e.kind||331===e.kind||332===e.kind}function fe(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&324===r.kind}e.guessIndentation=function(t){for(var r=pe,n=0,i=t;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||!e.virtual&&(e.pos===e.end&&e.pos>=0&&1!==e.kind)}function f(e){return!_(e)}function g(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?v(t._children[0],r,n):t.virtual?t.pos:e.skipTrivia((r||d(t)).text,t.pos,!1,!1,Te(t))}function b(e,t,r){return void 0===r&&(r=!1),x(e.text,t,r)}function x(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function D(e,t){return void 0===t&&(t=!1),b(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=wt(e);return 259===t.kind&&298===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function N(e){return E(e)&&F(e)}function F(t){switch(t.parent.kind){case 311:return e.isExternalModule(t.parent);case 268:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function w(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(N(t)||e.isModuleDeclaration(t)&&A(t))}))}function P(t,r){switch(t.kind){case 311:case 269:case 298:case 267:case 247:case 248:case 249:case 174:case 172:case 175:case 176:case 261:case 216:case 217:case 170:case 173:return!0;case 240:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 177:case 178:case 171:case 179:case 182:case 183:case 323:case 262:case 263:case 230:case 264:case 265:case 350:case 261:case 172:case 174:case 175:case 176:case 216:case 217:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return P(e,e.parent)}))}function R(e){return e&&e.virtual&&79===e.kind?e.escapedText.toString():e&&0!==c(e)?D(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.autoGenerateFlags?void 0:t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 165:return Tt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function j(t){return e.Debug.checkDefined(B(t))}function J(t){switch(t.kind){case 109:return"this";case 80:case 79:return 0===c(t)?e.idText(t):D(t);case 164:return J(t.left)+"."+J(t.right);case 209:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?J(t.expression)+"."+J(t.name):e.Debug.assertNever(t.name);case 317:return J(t.left)+J(t.right);default:return e.Debug.assertNever(t)}}function U(e,t,r,n,i,a,o){var s=W(e,t);return Cn(e,s.start,s.length,r,n,i,a,o)}function z(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function V(e,t,r,n,i){return z(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function K(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function W(t,r){var n=r;switch(r.kind){case 311:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):K(t,i);case 259:case 206:case 262:case 230:case 263:case 264:case 267:case 266:case 305:case 261:case 216:case 172:case 175:case 176:case 265:case 170:case 169:case 274:n=r.name;break;case 217:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&240===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return K(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=_(n),c=s||e.isJsxText(r)||r.virtual?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function q(e){return 6===e.scriptKind}function $(e){return!!e}function G(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 211===e.kind&&101===e.expression.kind}function Q(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function X(e){return 243===e.kind&&10===e.expression.kind}function Y(e){return!!(1048576&T(e))}function Z(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.changesAffectingProgramStructure=function(t,r){return s(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=s,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},e.setResolvedModule=function(t,r,n,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToPackageName=l,e.packageIdToString=function(e){return"".concat(l(e),"@").concat(e.version)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i,a){e.Debug.assert(t.length===r.length);for(var o=0;o=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=d(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=p,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return g(e,t,X)},e.insertStatementsAfterCustomPrologue=function(e,t){return g(e,t,h)},e.insertStatementAfterStandardPrologue=function(e,t){return m(e,t,X)},e.insertStatementAfterCustomPrologue=function(e,t){return m(e,t,h)},e.getEtsLibs=function(t){var r,n,i=[],a=null!==(n=null===(r=t.getCompilerOptions().ets)||void 0===r?void 0:r.libs)&&void 0!==n?n:[];return a.length&&e.forEach(a,(function(r){i.push(e.sys.resolvePath(r));var n=function(t,r){if(!r)return;for(var n=e.sys.resolvePath(r),i=0,a=t.getSourceFiles();i=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isAmbientPropertyDeclaration=function(e){return!!(16777216&e.flags)||Cr(e,2)},e.isBlockScope=P,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 344:case 351:case 329:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=function(e){return O(e)||ke(e)},e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 272:case 271:case 242:case 262:case 263:case 261:case 267:case 265:case 264:case 266:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 165===e.kind&&!Tt(e.expression)},e.tryGetTextOfPropertyName=B,e.getTextOfPropertyName=j,e.entityNameToString=J,e.createDiagnosticForNode=function(e,t,r,n,i,a){return U(d(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return Cn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=U,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=d(e),i=W(n,e);return V(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=V,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=K,e.getErrorSpanForNode=W,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=q,e.isEmitNodeModulesFiles=$,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=G,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 211===e.kind&&107===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&101===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=Q,e.isPrologueDirective=X,e.isCustomPrologue=Y,e.isHoistedFunction=function(t){return Y(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return Y(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Z)},e.getJSDocCommentRanges=function(t,r){var n=167===t.kind||166===t.kind||216===t.kind||217===t.kind||215===t.kind||259===t.kind||281===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var ee=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var te=/^(\/\/\/\s*/;function re(t){if(180<=t.kind&&t.kind<=203)return!0;switch(t.kind){case 132:case 158:case 149:case 161:case 153:case 135:case 154:case 150:case 156:case 145:return!0;case 115:return 221!==t.parent.kind;case 232:return e.isHeritageClause(t.parent)&&!Kr(t);case 166:return 198===t.parent.kind||193===t.parent.kind;case 79:(164===t.parent.kind&&t.parent.right===t||209===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||164===t.kind||209===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 164:case 209:case 109:var r=t.parent;if(184===r.kind)return!1;if(203===r.kind)return!r.isTypeOf;if(180<=r.kind&&r.kind<=203)return!0;switch(r.kind){case 232:return e.isHeritageClause(r.parent)&&!Kr(r);case 166:case 350:return t===r.constraint;case 170:case 169:case 167:case 259:case 261:case 216:case 217:case 174:case 172:case 171:case 175:case 176:case 177:case 178:case 179:case 214:return t===r.type;case 211:case 212:return e.contains(r.typeArguments,t);case 213:return!1}}return!1}function ne(e){if(e)switch(e.kind){case 206:case 305:case 167:case 302:case 170:case 169:case 303:case 259:return!0}return!1}function ie(e){return 260===e.parent.kind&&242===e.parent.parent.kind}function ae(t){return!!Se(t)&&(e.isBinaryExpression(t)&&1===Re(t))}function oe(e,t,r){return e.properties.filter((function(e){if(302===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function se(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ce(t,r){var n=se(t);return n?oe(n,r):e.emptyArray}function le(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)}function ue(t){return e.findAncestor(t.parent,e.isClassLike)}function de(t,r){for(e.Debug.assert(311!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 165:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 168:167===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 217:if(!r)continue;case 261:case 216:case 267:case 173:case 170:case 169:case 172:case 171:case 174:case 175:case 176:case 177:case 178:case 179:case 266:case 311:return t}}}function pe(e){var t=e.kind;return(209===t||210===t)&&107===e.expression.kind}function _e(t,r,n,i){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 262:case 263:return!0;case 170:return 262===r.kind||263===r.kind;case 175:case 176:case 172:return void 0!==t.body&&(262===r.kind||263===r.kind);case 167:return!(void 0===r.body||174!==r.kind&&172!==r.kind&&176!==r.kind||262!==n.kind&&263!==n.kind);case 261:return e.isArkTsDecorator(t,i)}return!1}function fe(e,t,r){return Nr(e)&&_e(e,t,r)}function ge(e,t,r){return fe(e,t,r)||me(e,t)}function me(t,r){switch(t.kind){case 262:case 263:return e.some(t.members,(function(e){return ge(e,t,r)}));case 172:case 176:case 174:return e.some(t.parameters,(function(e){return fe(e,t,r)}));default:return!1}}function he(e){var t=e.parent;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 107:case 105:case 111:case 96:case 13:case 207:case 208:case 209:case 218:case 210:case 211:case 212:case 213:case 233:case 214:case 237:case 234:case 215:case 216:case 230:case 217:case 221:case 219:case 220:case 223:case 224:case 225:case 226:case 229:case 227:case 231:case 284:case 285:case 288:case 228:case 222:case 235:return!0;case 232:return!e.isHeritageClause(t.parent);case 164:for(;164===t.parent.kind;)t=t.parent;return 184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 317:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&102===t.parent.operatorToken.kind;case 79:if(184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t))return!0;case 8:case 9:case 10:case 14:case 109:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 259:case 167:case 170:case 169:case 305:case 302:case 206:return t.initializer===e;case 243:case 244:case 245:case 246:case 252:case 253:case 254:case 295:case 256:return t.expression===e;case 247:var r=t;return r.initializer===e&&260!==r.initializer.kind||r.condition===e||r.incrementor===e;case 248:case 249:var n=t;return n.initializer===e&&260!==n.initializer.kind||n.expression===e;case 214:case 233:case 238:case 165:case 237:return e===t.expression;case 168:case 294:case 293:case 304:return!0;case 232:return t.expression===e&&!re(t);case 303:return t.objectAssignmentInitializer===e;default:return ye(t)}}function be(e){for(;164===e.kind||79===e.kind;)e=e.parent;return 184===e.kind}function xe(e){return 271===e.kind&&283===e.moduleReference.kind}function De(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function Te(e){return!!e&&!!(8388608&e.flags)}function Ce(t,r){if(211!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(e){return Ae(e,!1)}function ke(e){return Ae(e,!0)}function Ae(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Ce(r?_n(t.initializer):t.initializer,!0)}function Ne(t){return e.isBinaryExpression(t)||pn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Fe(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Wr(t.name)&&Pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function we(t,r){if(e.isCallExpression(t)){var n=pt(t.expression);return 216===n.kind||217===n.kind?t:void 0}return 216===t.kind||230===t.kind||217===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Pe(t,r){return Nt(t)&&Nt(r)?Ft(t)===Ft(r):e.isMemberName(t)&&je(r)&&(109===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?Pe(t,Ke(r)):!(!je(t)||!je(r))&&(qe(t)===qe(r)&&Pe(t.expression,r.expression))}function Ie(e){for(;Vr(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Me(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Le(t){return(e.isPropertyAccessExpression(t)||Je(t))&&Me(t.expression)&&"exports"===qe(t)}function Re(t){var r=function(t){if(e.isCallExpression(t)){if(!Be(t))return 0;var r=t.arguments[0];return Oe(r)||Le(r)?8:Ue(r)&&"prototype"===qe(r)?9:7}if(63!==t.operatorToken.kind||!pn(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text))return 0;var n;if(Ve(t.left.expression,!0)&&"prototype"===qe(t.left)&&e.isObjectLiteralExpression(Ge(t)))return 6;return $e(t.left)}(t);return 5===r||Se(t)?r:0}function Be(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Tt(t.arguments[1])&&Ve(t.arguments[0],!0)}function je(t){return e.isPropertyAccessExpression(t)||Je(t)}function Je(t){return e.isElementAccessExpression(t)&&Tt(t.argumentExpression)}function Ue(t,r){return e.isPropertyAccessExpression(t)&&(!r&&109===t.expression.kind||e.isIdentifier(t.name)&&Ve(t.expression,!0))||ze(t,r)}function ze(e,t){return Je(e)&&(!t&&109===e.expression.kind||Wr(e.expression)||Ue(e.expression,!0))}function Ve(e,t){return Wr(e)||Ue(e,t)}function Ke(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function We(t){if(e.isPropertyAccessExpression(t))return t.name;var r=pt(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function qe(t){var r=We(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function $e(t){if(109===t.expression.kind)return 4;if(Le(t))return 2;if(Ve(t.expression,!0)){if($r(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===qe(r))&&Ue(t))return 1;if(Ve(t,!0)||e.isElementAccessExpression(t)&&kt(t))return 5}return 0}function Ge(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function He(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 211:return H(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 199:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Qe(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return 283===t.moduleReference.kind?t.moduleReference.expression:void 0;case 203:return Q(t)?t.argument.literal:void 0;case 211:return t.arguments[0];case 267:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Xe(e){return 351===e.kind||344===e.kind||345===e.kind}function Ye(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Re(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ze(e){switch(e.kind){case 242:var t=et(e);return t&&t.initializer;case 170:case 302:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&267===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(function(e){return nt(t,e)}));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 302===r.kind||277===r.kind||170===r.kind||243===r.kind&&209===t.kind||252===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ze(r.parent.parent)===t||Ye(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Ye(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0}(r)||Ze(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(e){for(var t=e.parent;;){switch(t.kind){case 225:var r=t.operatorToken.kind;return Jr(r)&&t.left===e?63===r||jr(r)?1:2:0;case 223:case 224:var n=t.operator;return 45===n||46===n?2:0;case 248:case 249:return t.initializer===e?1:0;case 215:case 207:case 229:case 234:e=t;break;case 304:e=t.parent;break;case 303:if(t.name!==e)return 0;e=t.parent;break;case 302:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ut(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function dt(e){return ut(e,215)}function pt(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function _t(t){return Wr(t)||e.isClassExpression(t)}function ft(e){return _t(gt(e))}function gt(t){return e.isExportAssignment(t)?t.expression:t.right}function mt(t){var r=ht(t);if(r&&Se(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function ht(e){var t=bt(e.heritageClauses,95);return t&&t.types.length>0?t.types[0]:void 0}function yt(t){if(Se(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=bt(t.heritageClauses,118);return null==r?void 0:r.types}function vt(e){var t=bt(e.heritageClauses,95);return t?t.types:void 0}function bt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===b(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ne,e.getEffectiveInitializer=Fe,e.getDeclaredExpandoInitializer=function(e){var t=Fe(e);return t&&we(t,$r(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=$r(t.parent.left);return we(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&we(r.right,n);if(i&&Pe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Be(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&we(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=we,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&we(t.right,$r(r))&&Wr(r)&&Pe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Pe,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Me,e.isModuleExportsAccessExpression=Le,e.getAssignmentDeclarationKind=Re,e.isBindableObjectDefinePropertyCall=Be,e.isLiteralLikeAccess=je,e.isLiteralLikeElementAccess=Je,e.isBindableStaticAccessExpression=Ue,e.isBindableStaticElementAccessExpression=ze,e.isBindableStaticNameExpression=Ve,e.getNameOrArgument=Ke,e.getElementOrPropertyAccessArgumentExpressionOrName=We,e.getElementOrPropertyAccessName=qe,e.getAssignmentDeclarationPropertyAccessKind=$e,e.getInitializerOfBinaryExpression=Ge,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Re(t)},e.isSpecialPropertyDeclaration=function(t){return Se(t)&&t.parent&&243===t.parent.kind&&(!e.isElementAccessExpression(t)||Je(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Ne(r)&&!Ne(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 261===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n;switch(t.kind){case 259:return null===(r=e.findAncestor(t.initializer,(function(e){return Ce(e,!0)})))||void 0===r?void 0:r.arguments[0];case 272:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 271:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return He(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=He,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 272:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 271:return t;case 278:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 167:case 172:case 171:case 303:case 302:case 170:case 169:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Xe,e.isTypeAlias=function(t){return Xe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=function(t,r){var n;ne(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),167===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(166===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Xe);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=lt,e.isAssignmentTarget=function(e){return 0!==lt(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 240:case 242:case 253:case 244:case 254:case 269:case 295:case 296:case 255:case 247:case 248:case 249:case 245:case 246:case 257:case 298:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ut(e,194)},e.walkUpParenthesizedExpressions=dt,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&194===e.kind;)t=e,e=e.parent;return[t,e]},e.skipTypeParentheses=function(t){for(;e.isParenthesizedTypeNode(t);)t=t.type;return t},e.skipParentheses=pt,e.isDeleteTarget=function(e){return(209===e.kind||210===e.kind)&&((e=dt(e.parent))&&219===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Re(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Tt(t)&&165===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 170:case 169:case 172:case 171:case 175:case 176:case 305:case 302:case 209:return t.name===e;case 164:return t.right===e;case 206:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return!!(271===t.kind||270===t.kind||273===t.kind&&t.name||274===t.kind||280===t.kind||276===t.kind||281===t.kind||277===t.kind&&ft(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Re(t)&&ft(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&_t(t.parent.right))},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 164:do{t=t.parent}while(164===t.parent.kind);return e(t)}},e.isAliasableExpression=_t,e.exportAssignmentIsAlias=ft,e.getExportAssignmentExpression=gt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 303===e.kind?e.name:302===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=mt,e.getClassExtendsHeritageElement=ht,e.getEffectiveImplementsTypeNodes=yt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?vt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(mt(t)),yt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=vt,e.getHeritageClause=bt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.getRootEtsComponent=function(t){for(;t;){if(e.isEtsComponentExpression(t))return t;t=t.expression}},e.isKeyword=xt,e.isContextualKeyword=Dt,e.isNonContextualKeyword=St,e.isFutureReservedKeyword=function(e){return 118<=e&&e<=126},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&St(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&xt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!Dt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 261:case 216:case 172:e.asteriskToken&&(t|=1);case 217:Cr(e,512)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 261:case 216:case 217:case 172:return void 0!==e.body&&void 0===e.asteriskToken&&Cr(e,512)}return!1},e.isStringOrNumericLiteralLike=Tt,e.isSignedNumericLiteral=Ct,e.hasDynamicName=Et,e.isDynamicName=kt,e.getPropertyNameForPropertyNameNode=At,e.isPropertyNameLiteral=Nt,e.getTextOfIdentifierOrLiteral=Ft,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#".concat(e.getSymbolId(t),"@").concat(r)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 167===wt(e).kind},e.getRootDeclaration=wt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 174===t||216===t||261===t||217===t||172===t||175===t||176===t||267===t||311===t},e.nodeIsSynthesized=Pt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Ot(e),r=212===e.kind&&void 0!==e.arguments;return It(e.kind,t,r)},e.getOperatorAssociativity=It,e.getExpressionPrecedence=function(e){var t=Ot(e),r=212===e.kind&&void 0!==e.arguments;return Mt(e.kind,t,r)},e.getOperator=Ot,function(e){e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={})),e.getOperatorPrecedence=Mt,e.getBinaryOperatorPrecedence=Lt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 294:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,Nn)},lookup:function(r){var i;i=r.file?n.get(r.file.fileName):t;if(!i)return;var a=e.binarySearch(i,r,e.identity,Nn);if(a>=0)return i[a];return},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));if(!t.length)return a;return a.unshift.apply(a,t),a}}};var Rt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Bt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,jt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Jt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Ut=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function zt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Vt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Ut.get(e)||zt(e.charCodeAt(0))}function Kt(e,t){var r=96===t?Jt:39===t?jt:Bt;return e.replace(r,Vt)}e.escapeString=Kt;var Wt=/[^\u0000-\u007F]/g;function qt(e,t){return e=Kt(e,t),Wt.test(e)?e.replace(Wt,(function(e){return zt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=qt;var $t=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Gt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ht=new e.Map(e.getEntries({'"':""","'":"'"}));function Qt(e){return 0===e.charCodeAt(0)?"�":Ht.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Xt(e,t){var r=39===t?Gt:$t;return e.replace(r,Qt)}e.escapeJsxAttributeString=Xt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Yt=[""," "];function Zt(e){for(var t=Yt[1],r=Yt.length;r<=e;r++)Yt.push(Yt[r-1]+t);return Yt[e]}function er(){return Yt[1].length}function tr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function rr(e,t,r){return t.moduleName||ir(e,t.fileName,r&&r.fileName)}function nr(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ir(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=gi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function ar(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?ur(e,a,r,n,i):e,s=or(o);return gi(o)+s}function or(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":e.fileExtensionIsOneOf(t,[".ets"])?".d.ets":".d.ts"}function sr(e){return e.outFile||e.out}function cr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&De(e))&&!e.isDeclarationFile&&(!t.isSourceFileFromExternalLibrary(e)||$(t.getCompilerOptions().emitNodeModulesFiles))&&(r||!(q(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function lr(e,t,r){return ur(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ur(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function dr(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(dr(e.getDirectoryPath(t),r,n),r(t))}function pr(t,r){return e.computeLineOfPosition(t,r)}function _r(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&f(t.body)}))}function fr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&gr(e.parameters[0]);return e.parameters[t?1:0]}}function gr(e){return mr(e.name)}function mr(e){return!!e&&79===e.kind&&hr(e)}function hr(e){return 109===e.originalKeywordKind}function yr(t){if(Se(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!Se(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function vr(e,t,r,n){br(e,t,r.pos,n)}function br(e,t,r,n){n&&n.length&&r!==n[0].pos&&pr(e,r)!==pr(e,n[0].pos)&&t.writeLine()}function xr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l=0&&e.kind<=163?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Lr(e)),!t||4096&e.modifierFlagsCache||!r&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Mr(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return Pr(e,!0)}function Or(e){return Pr(e,!1)}function Mr(t){var r=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Lr(t){var r=e.canHaveModifiers(t)?Rr(t.modifiers):0;return(4&t.flags||79===t.kind&&t.isInJSDocNamespace)&&(r|=1),r}function Rr(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Ur(e){var t=zr(e);return t&&!t.isImplements?t.class:void 0}function zr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:118===t.parent.token}:void 0}function Vr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Jr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Kr(e){return void 0!==Ur(e)}function Wr(e){return 79===e.kind||qr(e)}function qr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Wr(t.expression)}function $r(e){return Ue(e)&&"prototype"===qe(e)}function Gr(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=Zt,e.getIndentSize=er,e.isNightly=function(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=tr,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(tr(t))},e.getResolvedExternalModuleName=rr,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Qe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==nr(t,i.path).indexOf(nr(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return rr(t,i)}},e.getExternalModuleNameFromPath=ir,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?gi(lr(e,t,n.outDir)):gi(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return ar(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=ar,e.getDeclarationEmitExtensionForPath=or,e.getPossibleOriginalInputExtensionForExtension=function(t){return e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},e.outFile=sr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(sr(i)){var a=Mn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&cr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return cr(e,t,n)}))},e.sourceFileMayBeEmitted=cr,e.getSourceFilePathInNewDir=lr,e.getSourceFilePathInNewDirWorker=ur,e.writeFile=function(t,r,n,i,a,o,s){t.writeFile(n,i,a,(function(t){r.add(En(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){dr(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=pr,e.getFirstConstructorWithBody=_r,e.getSetAccessorValueParameter=fr,e.getSetAccessorTypeAnnotationNode=function(e){var t=fr(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(gr(r))return r}},e.parameterIsThisKeyword=gr,e.isThisIdentifier=mr,e.isThisInTypeQuery=function(t){if(!mr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 184===t.parent.kind},e.identifierIsThisKeyword=hr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Et(r)?(n=r,175===r.kind?a=r:176===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&Er(t)===Er(r)&&(At(t.name)===At(r.name)&&(n?i||(i=t):n=t,175!==t.kind||a||(a=t),176!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=yr,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Se(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(326===t.parent.kind&&t.parent.tags.some(Xe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=fr(e);return t&&yr(t)},e.emitNewLineBeforeLeadingComments=vr,e.emitNewLineBeforeLeadingCommentsOfPosition=br,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&pr(e,r)!==pr(e,n)&&t.writeLine()},e.emitComments=xr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(d){var g=pr(r,d.end);if(pr(r,f.pos)>=g+2)break}u.push(f),d=f}if(u.length){g=pr(r,e.last(u).end);pr(r,e.skipTrivia(t,a.pos))>=g+2&&(vr(r,n,a,c),xr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end})}}return l},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,d=s.line;u0){var f=_%er(),g=Zt((_-f)/er());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Dr(t,a,n,o,u,p),u=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Ir(e)},e.hasSyntacticModifiers=function(e){return 0!==Or(e)},e.hasEffectiveModifier=Tr,e.hasSyntacticModifier=Cr,e.isStatic=Er,e.hasIllegalDecorators=function(t){return e.canHaveIllegalDecorators(t)},e.hasStaticModifier=kr,e.hasOverrideModifier=function(e){return Tr(e,16384)},e.hasAbstractModifier=function(e){return Cr(e,256)},e.hasAmbientModifier=function(e){return Cr(e,2)},e.hasAccessorModifier=function(e){return Cr(e,128)},e.hasEffectiveReadonlyModifier=Ar,e.hasDecorators=Nr,e.getSelectedEffectiveModifierFlags=Fr,e.getSelectedSyntacticModifierFlags=wr,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Pr(e,!0,!0)},e.getSyntacticModifierFlags=Or,e.getEffectiveModifierFlagsNoCache=function(e){return Lr(e)|Mr(e)},e.getSyntacticModifierFlagsNoCache=Lr,e.modifiersToFlags=Rr,e.modifierToFlag=Br,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=jr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return jr(e.operatorToken.kind)},e.isAssignmentOperator=Jr,e.tryGetClassExtendingExpressionWithTypeArguments=Ur,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zr,e.isAssignmentExpression=Vr,e.isLeftHandSideOfAssignment=function(e){return Vr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Vr(e,!0)){var t=e.left.kind;return 208===t||207===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Kr,e.isEntityNameExpression=Wr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 164:do{e=e.left}while(79!==e.kind);return e;case 209:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||109===t.kind||107===t.kind||235===t.kind||209===t.kind&&e(t.expression)||215===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=qr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+J(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+At(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=$r,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 164===e.parent.kind&&e.parent.right===e||209===e.parent.kind&&e.parent.name===e},e.isRightSideOfAccessExpression=Gr,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 208===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 207===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Cr(t.declarations[0],1024)}(t)&&t.declarations)for(var r=0,n=t.declarations;r>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,l=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Hr.charAt(r)+Hr.charAt(n)+Hr.charAt(i)+Hr.charAt(a),c+=3;return o}function Xr(t,r){var n=e.isString(r)?r:r.readFile(t);if(n){var i=e.parseConfigFileTextToJson(t,n);return i.error?void 0:i.config}}e.convertToBase64=Qr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Qr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r=t||-1===r),{pos:t,end:r}}function tn(e,t){return en(t,e.end)}function rn(t){var r=e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return r&&!vi(r.end)?tn(t,r.end):t}function nn(e,t,r){return an(on(e,r,!1),t.end,r)}function an(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function on(t,r,n){return vi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function sn(e){return void 0!==e.initializer}function cn(e){return 33554432&e.flags?e.checkFlags:0}function ln(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 215:case 207:return ln(r);case 224:case 223:var n=r.operator;return 45===n||46===n?c():0;case 225:var i=r,a=i.left,o=i.operatorToken;return a===t&&Jr(o.kind)?63===o.kind?1:c():0;case 209:return r.name!==t?0:ln(r);case 302:var s=ln(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 303:return t===r.objectAssignmentInitializer?0:ln(r.parent);default:return 0}function c(){return r.parent&&243===dt(r.parent).kind?1:2}}function un(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function dn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function pn(e){return 209===e.kind||210===e.kind}function _n(e){for(;pn(e);)e=e.expression;return e}function fn(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function gn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function mn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function hn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function yn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function vn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function bn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function xn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function Dn(e){return Zr&&Zr[e.key]||e.message}function Sn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Tn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=xn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function En(e){var t=Dn(e);return arguments.length>1&&(t=xn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function kn(e){return e.file?e.file.path:void 0}function An(t,r){return Nn(t,r)||function(t,r){if(!t.relatedInformation&&!r.relatedInformation)return 0;if(t.relatedInformation&&r.relatedInformation)return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return An(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function Nn(t,r){return e.compareStringsCaseSensitive(kn(t),kn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||Fn(t.messageText,r.messageText)||0}function Fn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function wn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,wn)}function Pn(e){return e.isDeclarationFile?void 0:wn(e)}function In(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts",".mjs",".mts"])||t.isDeclarationFile)||void 0}function On(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function Mn(t){return"number"==typeof t.module?t.module:On(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Ln(t){return t.moduleDetection||(Mn(t)===e.ModuleKind.Node16||Mn(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Rn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(Mn(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Bn(e){return!(!e.declaration&&!e.composite)}function jn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Jn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Un(e,t){return t.strictFlag?jn(e,t.name):e[t.name]}function zn(t,r,n){return void 0!==t&&("node_modules"===r(t)||n&&"oh_modules"===r(t)||e.startsWith(t,"@"))}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=en,e.moveRangeEnd=function(e,t){return en(e.pos,t)},e.moveRangePos=tn,e.moveRangePastDecorators=rn,e.moveRangePastModifiers=function(t){var r=e.canHaveModifiers(t)?e.lastOrUndefined(t.modifiers):void 0;return r&&!vi(r.end)?tn(t,r.end):rn(t)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return en(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return nn(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return an(on(e,r,!1),on(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return an(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=nn,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return an(e.end,on(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=on(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!an(e.pos,e.end,t)},e.positionsAreOnSameLine=an,e.getStartPositionOfRange=on,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 266:case 267:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,sn)},e.isWatchSet=function(t){return t.watch&&e.hasProperty(t,"watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=cn,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,e.isSetAccessorDeclaration)||32768&t.flags&&e.find(t.declarations,e.isGetAccessorDeclaration)||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&cn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===ln(e)},e.isWriteAccess=function(e){return 0!==ln(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Yr||(Yr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=un,e.mutateMap=function(e,t,r){un(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=dn(e);return!!t&&Cr(t,256)}return!1},e.getClassLikeDeclarationOfSymbol=dn,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:D(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){f(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=180&&e<=203||132===e||158===e||149===e||161===e||150===e||135===e||153===e||154===e||115===e||156===e||145===e||232===e||318===e||319===e||320===e||321===e||322===e||323===e||324===e},e.isAccessExpression=pn,e.getNameOfAccessExpression=function(t){return 209===t.kind?t.name:(e.Debug.assert(210===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 275===e.kind||279===e.kind},e.getLeftmostAccessExpression=_n,e.forEachNameInAccessChainWalkingLeft=function(t,r){if(pn(t.parent)&&Gr(t))return function t(n){if(209===n.kind){if(void 0!==(i=r(n.name)))return i}else if(210===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}if(pn(n.expression))return t(n.expression);if(e.isIdentifier(n.expression))return r(n.expression);return}(t.parent)},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 224:e=e.operand;continue;case 225:e=e.left;continue;case 226:e=e.condition;continue;case 213:e=e.tag;continue;case 211:if(t)return e;case 233:case 210:case 209:case 234:case 356:case 237:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return hn},getTokenConstructor:function(){return yn},getIdentifierConstructor:function(){return vn},getPrivateIdentifierConstructor:function(){return hn},getSourceFileConstructor:function(){return hn},getSymbolConstructor:function(){return fn},getTypeConstructor:function(){return gn},getSignatureConstructor:function(){return mn},getSourceMapSourceConstructor:function(){return bn}},e.setObjectAllocator=function(t){Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=xn,e.setLocalizedDiagnosticMessages=function(e){Zr=e},e.maybeSetLocalizedDiagnosticMessages=function(e){!Zr&&e&&(Zr=e())},e.getLocaleSpecificMessage=Dn,e.createDetachedDiagnostic=function(e,t,r,n){z(void 0,t,r);var i=Dn(n);return arguments.length>4&&(i=xn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=xn(r,arguments,2)),r},e.createCompilerDiagnostic=En,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=Dn(t);return arguments.length>2&&(r=xn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=An,e.compareDiagnosticsSkipRelatedInformation=Nn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getSetExternalModuleIndicator=function(t){switch(Ln(t)){case e.ModuleDetectionKind.Force:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(Pn),r.push(In);var n=e.or.apply(void 0,r);return function(e){e.externalModuleIndicator=n(e)}}},e.getEmitScriptTarget=On,e.getEmitModuleKind=Mn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;if(void 0===r)switch(Mn(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=Ln,e.hasJsonModuleEmitEnabled=function(t){switch(Mn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Bn(e)||!e.declarationMap)},e.getESModuleInterop=Rn,e.getAllowSyntheticDefaultImports=function(t){var r=Mn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Rn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Bn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=jn,e.getAllowJSCompilerOption=Jn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?On(e)>=9:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return s(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return s(r,t,e.affectsEmitOptionDeclarations)},e.compilerOptionsAffectDeclarationPath=function(t,r){return s(r,t,e.affectsDeclarationPathOptionDeclarations)},e.getCompilerOptionValue=Un,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r=2&&s.length>=2&&!zn(o[o.length-2],i,a)&&!zn(s[s.length-2],i,a)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),c=!0;return c?[e.getPathFromPathComponents(o),e.getPathFromPathComponents(s)]:void 0}(o,s,t,r,a)||e.emptyArray,l=c[0],u=c[1];l&&u&&n.setSymlinkedDirectory(u,{real:l,realPath:e.toPath(l,t,r)})}}},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Vn=/[^\w\s\/]/g;function Kn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Vn,Kn)};var Wn=[42,63];e.commonPackageFolders=["node_modules","oh_modules","bower_components","jspm_packages"];var qn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),$n={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ti(e,$n.singleAsteriskRegexFragment)}},Gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ti(e,Gn.singleAsteriskRegexFragment)}},Hn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return ti(e,Hn.singleAsteriskRegexFragment)}},Qn={files:$n,directories:Gn,exclude:Hn};function Xn(e,t,r){var n=Yn(e,t,r);if(n&&n.length){var i=n.map((function(e){return"(".concat(e,")")})).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Yn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&ei(e,r,n,Qn[n])}))}function Zn(e){return!/[.*?]/.test(e)}function ei(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Zn(d)&&u.push("**","*");for(var p=0,_=0,f=u;_0;)c+=")?",p--;return c}}function ti(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ri(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Yn(n,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:Xn(n,o,"files"),includeDirectoryPattern:Xn(n,o,"directories"),excludePattern:Xn(r,o,"exclude"),basePaths:ii(t,n,i)}}function ni(e,t){return new RegExp(e,t?"":"i")}function ii(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0)}function bi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||".ets"===e||".d.ets"===e}function xi(t){return e.fileExtensionIs(t,".ets")?".ets":e.find(fi,(function(r){return e.fileExtensionIs(t,r)}))}function Di(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Di)}function Si(e,t){return e.pos=t,e}function Ti(e,t){return e.end=t,e}function Ci(e,t,r){return Ti(Si(e,t),r)}function Ei(e,t){return e&&t&&(e.parent=t),e}function ki(t){return!e.isOmittedExpression(t)}function Ai(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}function Ni(e){return 259===e.kind&&298===e.parent.kind}function Fi(e){return(+e).toString()===e}function wi(e){switch(e.kind){case 166:case 262:case 264:case 265:case 266:case 351:case 344:case 345:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}e.removeFileExtension=gi,e.tryRemoveExtension=mi,e.removeExtension=hi,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,fi,!1)},e.tryParsePattern=yi,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return yi(e)}))},e.positionIsSynthesized=vi,e.extensionIsTS=bi,e.resolutionExtensionIsTSOrJson=function(e){return bi(e)||".json"===e},e.extensionFromPath=function(t){var r=xi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==xi(e)},e.tryGetExtensionFromPath=xi,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:v(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=Di,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(l=f;l>=0;l--){var h=m<<16|o[l],y=h/10|0;o[l]=y,m=h-10*y,y&&!g&&(f=l,g=!0)}_=m+_}return _},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(16777216&t.flags)||be(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 297:return!0;case 209:case 232:return!1;default:return"quit"}}));return 118===(null==r?void 0:r.token)||264===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||209===e.kind;)e=e.parent;if(165!==e.kind)return!1;if(Cr(e.parent,256))return!0;var t=e.parent.parent.kind;return 264===t||185===t}(t)||!(ye(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)},e.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},e.getNodeModulePathParts=function(e,t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf(t,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=e.indexOf(t,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=function(e){var t;return 346===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type},e.isTypeDeclaration=wi,e.canHaveExportModifier=function(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||wi(t)||e.isModuleDeclaration(t)&&!N(t)&&!A(t)},e.isCalledStructDeclaration=function(e){return!!e&&e.some((function(e){return 263===e.kind}))},e.getNameOfDecorator=function(t){var r=t.expression;return e.isIdentifier(r)?r.escapedText.toString():e.isCallExpression(r)&&e.isIdentifier(r.expression)?r.expression.escapedText.toString():void 0}}(d||(d={})),function(e){e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(t){t&&t.length&&(i&&(t=e.getIndentString(n)+t,i=!1),r+=t,c(t))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*e.getIndentSize():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&228===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r,n){var i=e.skipPartiallyEmittedExpressions(r);return!e.isLeftHandSideExpression(i)||212===i.kind&&!i.arguments||!n&&e.isOptionalChain(i)?e.setTextRange(t.createParenthesizedExpression(r),r):r}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(225,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){switch(e.kind){case 182:case 183:case 192:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 190:case 191:return t.createParenthesizedType(e)}return u(e)}function p(e){switch(e.kind){case 190:case 191:return t.createParenthesizedType(e)}return d(e)}function _(e){return 191===e.kind?t.createParenthesizedType(e):p(e)}function f(e){switch(e.kind){case 193:case 196:case 184:return t.createParenthesizedType(e)}return _(e)}function g(e){return m(e)?t.createParenthesizedType(e):e}function m(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?m(t.type):e.isConditionalTypeNode(t)?m(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?m(e.last(t.types)):!!e.isInferTypeNode(t)&&(!!t.typeParameter.constraint&&m(t.typeParameter.constraint))}function h(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function y(e,t){return 0===t?h(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}}(d||(d={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 205:case 207:return o(e);case 204:case 208:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(d||(d={})),function(e){var t,r=0;function n(n,_){var f=8&n?a:o,g=e.memoize((function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(F)})),m=e.memoize((function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(F)})),h=e.memoizeOne((function(e){return function(t,r){return Jt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Bt(e,t)}})),b=e.memoizeOne((function(e){return function(t){return jt(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return P(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return _n(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(_n(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return pn(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(pn(e,r,t.postfix),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return In(e,t,r)}})),k=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=yn(t));return t.tagName!==r||t.comment!==n?f(In(e,r,n),t):t}(e,t,r,n)}})),A=e.memoizeOne((function(e){return function(t,r,n){return On(e,t,r,n)}})),N=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=yn(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(On(e,r,n,i),t):t}(e,t,r,n,i)}})),F={get parenthesizer(){return g()},get converters(){return m()},baseFactory:_,flags:n,createNodeArray:w,createNumericLiteral:K,createBigIntLiteral:W,createStringLiteral:$,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:G,createLiteralLikeNode:function(e,t){switch(e){case 8:return K(t,0);case 9:return W(t);case 10:return $(t,void 0);case 11:return Vn(t,!1);case 12:return Vn(t,!0);case 13:return G(t);case 14:return Wt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:Y,createLoopVariable:function(e){var t=2;e&&(t|=8);return Q("",t,void 0,void 0)},createUniqueName:function(t,r,n,i){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Q(t,3|r,n,i)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);return ee(t)},createUniquePrivateName:function(t,r,n){t&&!e.startsWith(t,"#")&&e.Debug.fail("First character of private identifier must be #: "+t);return te(null!=t?t:"",8|(t?3:1),r,n)},getGeneratedPrivateNameForNode:function(t,r,n){var i=e.isMemberName(t)?e.formatGeneratedName(!0,r,t,n,e.idText):"#generated@".concat(e.getNodeId(t)),a=r||n?16:0,o=te(i,4|a,r,n);return o.original=t,o},createToken:ne,createSuper:function(){return ne(107)},createThis:ie,createNull:function(){return ne(105)},createTrue:ae,createFalse:oe,createModifier:se,createModifiersFromModifierFlags:ce,createQualifiedName:le,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(le(t,r),e):e},createComputedPropertyName:ue,updateComputedPropertyName:function(e,t){return e.expression!==t?f(ue(t),e):e},createTypeParameterDeclaration:de,updateTypeParameterDeclaration:pe,createParameterDeclaration:_e,updateParameterDeclaration:fe,createDecorator:ge,updateDecorator:function(e,t){return e.expression!==t?f(ge(t),e):e},createPropertySignature:me,updatePropertySignature:he,createPropertyDeclaration:ye,updatePropertyDeclaration:ve,createMethodSignature:be,updateMethodSignature:xe,createMethodDeclaration:De,updateMethodDeclaration:Se,createConstructorDeclaration:Ce,updateConstructorDeclaration:Ee,createGetAccessorDeclaration:ke,updateGetAccessorDeclaration:Ae,createSetAccessorDeclaration:Ne,updateSetAccessorDeclaration:Fe,createCallSignature:we,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(we(t,r,n),e):e},createConstructSignature:Pe,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(Pe(t,r,n),e):e},createIndexSignature:Ie,updateIndexSignature:Oe,createClassStaticBlockDeclaration:Te,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.illegalDecorators=t.illegalDecorators,e.modifiers=t.modifiers);return f(e,t)}(Te(t),e):e},createTemplateLiteralTypeSpan:Me,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Me(t,r),e):e},createKeywordTypeNode:function(e){return ne(e)},createTypePredicateNode:Le,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Le(t,r,n),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Re(t,r),e):e},createFunctionTypeNode:Be,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers);return R(e,t)}(Be(t,r,n),e):e},createConstructorTypeNode:je,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?si(t):e.reduceLeft(t,F.createComma)},getInternalName:function(e,t,r){return gi(e,t,r,49152)},getLocalName:function(e,t,r){return gi(e,t,r,16384)},getExportName:mi,getDeclarationName:function(e,t,r){return gi(e,t,r)},getNamespaceMemberName:hi,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return hi(t,gi(r),n,i);return mi(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a))))return function(e,t){switch(e.kind){case 215:return At(e,t);case 214:return Et(e,e.type,t);case 233:return Yt(e,t,e.type);case 237:return rr(e,t,e.type);case 234:return er(e,t);case 356:return ai(e,t)}}(r,t(r.expression,n));var a;return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=Tr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:yi,copyPrologue:function(e,t,r,n){var i=vi(e,t,0,r);return bi(e,t,i,n)},copyStandardPrologue:vi,copyCustomPrologue:bi,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(w(i([yi()],t,!0)),t);return t},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||sr(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=xi(t,e.isPrologueDirective,0),a=xi(t,e.isHoistedFunction,n),o=xi(t,e.isHoistedVariableStatement,a),s=xi(r,e.isPrologueDirective,0),c=xi(r,e.isHoistedFunction,s),l=xi(r,e.isHoistedVariableStatement,c),u=xi(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;u>l&&d.splice.apply(d,i([o,0],r.slice(l,u),!1));l>c&&d.splice.apply(d,i([a,0],r.slice(c,l),!1));c>s&&d.splice.apply(d,i([n,0],r.slice(s,c),!1));if(s>0)if(0===n)d.splice.apply(d,i([0,0],r.slice(0,s),!1));else{for(var p=new e.Map,_=0;_=0;_--){var g=r[_];p.has(g.expression.text)||d.unshift(g)}}if(e.isNodeArray(t))return e.setTextRange(w(d,t.hasTrailingComma),t);return t},updateModifiers:function(t,r){var n,i;i="number"==typeof r?ce(r):r;return e.isTypeParameterDeclaration(t)?pe(t,i,t.name,t.constraint,t.default):e.isParameter(t)?fe(t,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isConstructorTypeNode(t)?ze(t,i,t.typeParameters,t.parameters,t.type):e.isPropertySignature(t)?he(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ve(t,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?xe(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?Se(t,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?Ee(t,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ae(t,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Fe(t,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Oe(t,i,t.parameters,t.type):e.isFunctionExpression(t)?Ft(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?It(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Ht(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isStructDeclaration(t)?Or(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?lr(t,i,t.declarationList):e.isFunctionDeclaration(t)?Fr(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Pr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Lr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Br(t,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Jr(t,i,t.name,t.members):e.isModuleDeclaration(t)?zr(t,i,t.name,t.body):e.isImportEqualsDeclaration(t)?$r(t,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Hr(t,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?on(t,i,t.expression):e.isExportDeclaration(t)?cn(t,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return F;function w(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function P(e){return _.createBaseNode(e)}function I(e){var t=P(e);return t.symbol=void 0,t.localSymbol=void 0,t.locals=void 0,t.nextContainer=void 0,t}function O(t,r,n){var i=I(t);if(n=Si(n),i.name=n,e.canHaveModifiers(i)&&(i.modifiers=Di(r),i.transformFlags|=d(i.modifiers)),n)switch(i.kind){case 172:case 175:case 176:case 170:case 302:if(e.isIdentifier(n)){i.transformFlags|=l(n);break}default:i.transformFlags|=u(n)}return i}function M(e,t,r,n){var i=O(e,t,r);return i.typeParameters=Di(n),i.transformFlags|=d(i.typeParameters),n&&(i.transformFlags|=1),i}function L(e,t,r,n,i,a){var o=M(e,t,r,n);return o.parameters=w(i),o.type=a,o.transformFlags|=d(o.parameters)|u(o.type),a&&(o.transformFlags|=1),o.typeArguments=void 0,o}function R(e,t){return e!==t&&(e.typeArguments=t.typeArguments),f(e,t)}function B(e,t,r,n,i,a,o){var s=L(e,t,r,n,i,a);return s.body=o,s.transformFlags|=-67108865&u(s.body),o||(s.transformFlags|=1),s}function j(e,t,r,n,i){var a=M(e,t,r,n);return a.heritageClauses=Di(i),a.transformFlags|=d(a.heritageClauses),a}function J(e,t,r,n,i,a){var o=j(e,t,r,n,i);return o.members=w(a),o.transformFlags|=d(o.members),o}function U(e,t,r,n){var i=O(e,t,r);return i.initializer=n,i.transformFlags|=u(i.initializer),i}function z(e,t,r,n,i){var a=U(e,t,r,i);return a.type=n,a.transformFlags|=u(n),n&&(a.transformFlags|=1),a}function V(e,t){var r=re(e);return r.text=t,r}function K(e,t){void 0===t&&(t=0);var r=V(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function W(t){var r=V(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=V(10,e);return r.singleQuote=t,r}function $(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function G(e){return V(13,e)}function H(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=_.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Q(e,t,n,i){var a=H(e,void 0);return a.autoGenerateFlags=t,a.autoGenerateId=r,a.autoGeneratePrefix=n,a.autoGenerateSuffix=i,r++,a}function X(e,t,r,n){var i=H(e,r);return t&&(i.typeArguments=w(t)),134===i.originalKeywordKind&&(i.transformFlags|=67108864),n&&(i.hasExtendedUnicodeEscape=n,i.transformFlags|=1024),i}function Y(e,t,r,n){var i=1;t&&(i|=8);var a=Q("",i,r,n);return e&&e(a),a}function Z(t,r,n,i){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),(n||i)&&(r|=16);var a=Q(t?e.isMemberName(t)?e.formatGeneratedName(!1,n,t,i,e.idText):"generated@".concat(e.getNodeId(t)):"",4|r,n,i);return a.original=t,a}function ee(t){var r=_.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=16777216,r}function te(e,t,n,i){var a=ee(e);return a.autoGenerateFlags=t,a.autoGenerateId=r,a.autoGeneratePrefix=n,a.autoGenerateSuffix=i,r++,a}function re(e){return _.createBaseTokenNode(e)}function ne(t){e.Debug.assert(t>=0&&t<=163,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=re(t),n=0;switch(t){case 133:n=384;break;case 124:case 122:case 123:case 147:case 127:case 137:case 86:case 132:case 149:case 161:case 145:case 150:case 102:case 146:case 162:case 153:case 135:case 154:case 115:case 158:case 156:n=1;break;case 107:n=134218752;break;case 125:n=1024;break;case 128:n=16777216;break;case 109:n=16384}return n&&(r.transformFlags|=n),r}function ie(){return ne(109)}function ae(){return ne(111)}function oe(){return ne(96)}function se(e){return ne(e)}function ce(e){var t=[];return 1&e&&t.push(se(94)),2&e&&t.push(se(137)),1024&e&&t.push(se(89)),2048&e&&t.push(se(86)),4&e&&t.push(se(124)),8&e&&t.push(se(122)),16&e&&t.push(se(123)),256&e&&t.push(se(127)),32&e&&t.push(se(125)),16384&e&&t.push(se(162)),64&e&&t.push(se(147)),128&e&&t.push(se(128)),512&e&&t.push(se(133)),32768&e&&t.push(se(102)),65536&e&&t.push(se(146)),t.length?t:void 0}function le(e,t){var r=P(164);return r.left=e,r.right=Si(t),r.transformFlags|=u(r.left)|l(r.right),r}function ue(e){var t=P(165);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|u(t.expression),t}function de(e,t,r,n){var i=O(166,e,t);return i.constraint=r,i.default=n,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.constraint!==n||e.default!==i?f(de(t,r,n,i),e):e}function _e(t,r,n,i,a,o){var s=z(167,t,n,a,o&&g().parenthesizeExpressionForDisallowedComma(o));return s.dotDotDotToken=r,s.questionToken=i,e.isThisIdentifier(s.name)?s.transformFlags=1:(s.transformFlags|=u(s.dotDotDotToken)|u(s.questionToken),i&&(s.transformFlags|=1),16476&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8192),(o||r)&&(s.transformFlags|=1024)),s}function fe(e,t,r,n,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?f(_e(t,r,n,i,a,o),e):e}function ge(e){var t=P(168);return t.expression=g().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|u(t.expression),t}function me(e,t,r,n){var i=O(169,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i.initializer=void 0,i}function he(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?function(e,t){e!==t&&(e.initializer=t.initializer);return f(e,t)}(me(t,r,n,i),e):e}function ye(t,r,n,i,a){var o=z(170,t,r,i,a);return o.questionToken=n&&e.isQuestionToken(n)?n:void 0,o.exclamationToken=n&&e.isExclamationToken(n)?n:void 0,o.transformFlags|=u(o.questionToken)|u(o.exclamationToken)|16777216,(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer)&&(o.transformFlags|=8192),(n||2&e.modifiersToFlags(o.modifiers))&&(o.transformFlags|=1),o}function ve(t,r,n,i,a,o){return t.modifiers!==r||t.name!==n||t.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||t.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||t.type!==a||t.initializer!==o?f(ye(r,n,i,a,o),t):t}function be(e,t,r,n,i,a){var o=L(171,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function xe(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?R(be(t,r,n,i,a,o),e):e}function De(t,r,n,i,a,o,s,c){var l=B(172,t,n,a,o,s,c);return l.asteriskToken=r,l.questionToken=i,l.transformFlags|=u(l.asteriskToken)|u(l.questionToken)|1024,i&&(l.transformFlags|=1),512&e.modifiersToFlags(l.modifiers)?l.transformFlags|=r?128:256:r&&(l.transformFlags|=2048),l.exclamationToken=void 0,l}function Se(e,t,r,n,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return f(e,t)}(De(t,r,n,i,a,o,s,c),e):e}function Te(e){var t=M(173,void 0,void 0,void 0);return t.body=e,t.transformFlags=16777216|u(e),t.illegalDecorators=void 0,t.modifiers=void 0,t}function Ce(e,t,r){var n=B(174,e,void 0,void 0,t,void 0,r);return n.transformFlags|=1024,n.illegalDecorators=void 0,n.typeParameters=void 0,n.type=void 0,n}function Ee(e,t,r,n){return e.modifiers!==t||e.parameters!==r||e.body!==n?function(e,t){e!==t&&(e.illegalDecorators=t.illegalDecorators,e.typeParameters=t.typeParameters,e.type=t.type);return R(e,t)}(Ce(t,r,n),e):e}function ke(e,t,r,n,i){var a=B(175,e,t,void 0,r,n,i);return a.typeParameters=void 0,a}function Ae(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.type!==i||e.body!==a?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return R(e,t)}(ke(t,r,n,i,a),e):e}function Ne(e,t,r,n){var i=B(176,e,t,void 0,r,void 0,n);return i.typeParameters=void 0,i.type=void 0,i}function Fe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return R(e,t)}(Ne(t,r,n,i),e):e}function we(e,t,r){var n=L(177,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Pe(e,t,r){var n=L(178,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ie(e,t,r){var n=L(179,e,void 0,void 0,t,r);return n.transformFlags=1,n}function Oe(e,t,r,n){return e.parameters!==r||e.type!==n||e.modifiers!==t?R(Ie(t,r,n),e):e}function Me(e,t){var r=P(202);return r.type=e,r.literal=t,r.transformFlags=1,r}function Le(e,t,r){var n=P(180);return n.assertsModifier=e,n.parameterName=Si(t),n.type=r,n.transformFlags=1,n}function Re(e,t){var r=P(181);return r.typeName=Si(e),r.typeArguments=t&&g().parenthesizeTypeArguments(w(t)),r.transformFlags=1,r}function Be(e,t,r){var n=L(182,void 0,void 0,e,t,r);return n.transformFlags=1,n.modifiers=void 0,n}function je(){for(var t=[],r=0;r0;default:return!0}}function gi(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(li(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function mi(e,t,r){return gi(e,t,r,8192)}function hi(t,r,n,i){var a=ft(t,e.nodeIsSynthesized(r)?r:li(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function yi(){return e.startOnNewLine(dr($("use strict")))}function vi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n=180&&e<=203)return-2;switch(e){case 211:case 212:case 207:case 204:case 205:return-2147450880;case 267:return-1941676032;case 167:case 214:case 237:case 233:case 356:case 215:case 107:case 209:case 210:default:return-2147483648;case 217:return-2072174592;case 216:case 261:return-1937940480;case 260:return-2146893824;case 262:case 230:return-2147344384;case 174:return-1937948672;case 170:return-2013249536;case 172:case 175:case 176:return-2005057536;case 132:case 149:case 161:case 145:case 153:case 150:case 135:case 154:case 115:case 166:case 169:case 171:case 177:case 178:case 179:case 264:case 265:return-2;case 208:return-2147278848;case 298:return-2147418112}}e.getTransformFlagsSubtreeExclusions=_;var f=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var m,h={createBaseSourceFileNode:function(e){return g(f.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(f.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(f.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(f.createBaseTokenNode(e))},createBaseNode:function(e){return g(f.createBaseNode(e))}};function y(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine,p=t.snippetElement;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=-268435457&n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==l&&(r.constantValue=l);if(u)for(var _=0,f=u;_0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,r){return t(e).snippetElement=r,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e},e.setTypeNode=function(e,r){return t(e).typeNode=r,e},e.getTypeNode=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}}(d||(d={})),function(e){function t(e){for(var t=[],r=1;r=2)return r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n);return t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n)},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&!!(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(d||(d={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 94===e.kind},e.isAsyncModifier=function(e){return 133===e.kind},e.isAssertsKeyword=function(e){return 130===e.kind},e.isAwaitKeyword=function(e){return 134===e.kind},e.isReadonlyKeyword=function(e){return 147===e.kind},e.isStaticModifier=function(e){return 125===e.kind},e.isAbstractModifier=function(e){return 127===e.kind},e.isOverrideModifier=function(e){return 162===e.kind},e.isAccessorModifier=function(e){return 128===e.kind},e.isSuperKeyword=function(e){return 107===e.kind},e.isImportKeyword=function(e){return 101===e.kind},e.isQualifiedName=function(e){return 164===e.kind},e.isComputedPropertyName=function(e){return 165===e.kind},e.isTypeParameterDeclaration=function(e){return 166===e.kind},e.isParameter=function(e){return 167===e.kind},e.isDecorator=function(e){return 168===e.kind},e.isPropertySignature=function(e){return 169===e.kind},e.isPropertyDeclaration=function(e){return 170===e.kind},e.isMethodSignature=function(e){return 171===e.kind},e.isMethodDeclaration=function(e){return 172===e.kind},e.isClassStaticBlockDeclaration=function(e){return 173===e.kind},e.isConstructorDeclaration=function(e){return 174===e.kind},e.isGetAccessorDeclaration=function(e){return 175===e.kind},e.isSetAccessorDeclaration=function(e){return 176===e.kind},e.isCallSignatureDeclaration=function(e){return 177===e.kind},e.isConstructSignatureDeclaration=function(e){return 178===e.kind},e.isIndexSignatureDeclaration=function(e){return 179===e.kind},e.isTypePredicateNode=function(e){return 180===e.kind},e.isTypeReferenceNode=function(e){return 181===e.kind},e.isFunctionTypeNode=function(e){return 182===e.kind},e.isConstructorTypeNode=function(e){return 183===e.kind},e.isTypeQueryNode=function(e){return 184===e.kind},e.isTypeLiteralNode=function(e){return 185===e.kind},e.isArrayTypeNode=function(e){return 186===e.kind},e.isTupleTypeNode=function(e){return 187===e.kind},e.isNamedTupleMember=function(e){return 200===e.kind},e.isOptionalTypeNode=function(e){return 188===e.kind},e.isRestTypeNode=function(e){return 189===e.kind},e.isUnionTypeNode=function(e){return 190===e.kind},e.isIntersectionTypeNode=function(e){return 191===e.kind},e.isConditionalTypeNode=function(e){return 192===e.kind},e.isInferTypeNode=function(e){return 193===e.kind},e.isParenthesizedTypeNode=function(e){return 194===e.kind},e.isThisTypeNode=function(e){return 195===e.kind},e.isTypeOperatorNode=function(e){return 196===e.kind},e.isIndexedAccessTypeNode=function(e){return 197===e.kind},e.isMappedTypeNode=function(e){return 198===e.kind},e.isLiteralTypeNode=function(e){return 199===e.kind},e.isImportTypeNode=function(e){return 203===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 202===e.kind},e.isTemplateLiteralTypeNode=function(e){return 201===e.kind},e.isObjectBindingPattern=function(e){return 204===e.kind},e.isArrayBindingPattern=function(e){return 205===e.kind},e.isBindingElement=function(e){return 206===e.kind},e.isArrayLiteralExpression=function(e){return 207===e.kind},e.isObjectLiteralExpression=function(e){return 208===e.kind},e.isPropertyAccessExpression=function(e){return 209===e.kind},e.isElementAccessExpression=function(e){return 210===e.kind},e.isCallExpression=function(e){return 211===e.kind},e.isNewExpression=function(e){return 212===e.kind},e.isTaggedTemplateExpression=function(e){return 213===e.kind},e.isTypeAssertionExpression=function(e){return 214===e.kind},e.isParenthesizedExpression=function(e){return 215===e.kind},e.isFunctionExpression=function(e){return 216===e.kind},e.isEtsComponentExpression=function(e){return 218===e.kind},e.isArrowFunction=function(e){return 217===e.kind},e.isDeleteExpression=function(e){return 219===e.kind},e.isTypeOfExpression=function(e){return 220===e.kind},e.isVoidExpression=function(e){return 221===e.kind},e.isAwaitExpression=function(e){return 222===e.kind},e.isPrefixUnaryExpression=function(e){return 223===e.kind},e.isPostfixUnaryExpression=function(e){return 224===e.kind},e.isBinaryExpression=function(e){return 225===e.kind},e.isConditionalExpression=function(e){return 226===e.kind},e.isTemplateExpression=function(e){return 227===e.kind},e.isYieldExpression=function(e){return 228===e.kind},e.isSpreadElement=function(e){return 229===e.kind},e.isClassExpression=function(e){return 230===e.kind},e.isOmittedExpression=function(e){return 231===e.kind},e.isExpressionWithTypeArguments=function(e){return 232===e.kind},e.isAsExpression=function(e){return 233===e.kind},e.isSatisfiesExpression=function(e){return 237===e.kind},e.isNonNullExpression=function(e){return 234===e.kind},e.isMetaProperty=function(e){return 235===e.kind},e.isSyntheticExpression=function(e){return 236===e.kind},e.isPartiallyEmittedExpression=function(e){return 356===e.kind},e.isCommaListExpression=function(e){return 357===e.kind},e.isTemplateSpan=function(e){return 238===e.kind},e.isSemicolonClassElement=function(e){return 239===e.kind},e.isBlock=function(e){return 240===e.kind},e.isVariableStatement=function(e){return 242===e.kind},e.isEmptyStatement=function(e){return 241===e.kind},e.isExpressionStatement=function(e){return 243===e.kind},e.isIfStatement=function(e){return 244===e.kind},e.isDoStatement=function(e){return 245===e.kind},e.isWhileStatement=function(e){return 246===e.kind},e.isForStatement=function(e){return 247===e.kind},e.isForInStatement=function(e){return 248===e.kind},e.isForOfStatement=function(e){return 249===e.kind},e.isContinueStatement=function(e){return 250===e.kind},e.isBreakStatement=function(e){return 251===e.kind},e.isReturnStatement=function(e){return 252===e.kind},e.isWithStatement=function(e){return 253===e.kind},e.isSwitchStatement=function(e){return 254===e.kind},e.isLabeledStatement=function(e){return 255===e.kind},e.isThrowStatement=function(e){return 256===e.kind},e.isTryStatement=function(e){return 257===e.kind},e.isDebuggerStatement=function(e){return 258===e.kind},e.isVariableDeclaration=function(e){return 259===e.kind},e.isVariableDeclarationList=function(e){return 260===e.kind},e.isFunctionDeclaration=function(e){return 261===e.kind},e.isClassDeclaration=function(e){return 262===e.kind},e.isStructDeclaration=function(e){return 263===e.kind},e.isInterfaceDeclaration=function(e){return 264===e.kind},e.isTypeAliasDeclaration=function(e){return 265===e.kind},e.isEnumDeclaration=function(e){return 266===e.kind},e.isModuleDeclaration=function(e){return 267===e.kind},e.isModuleBlock=function(e){return 268===e.kind},e.isCaseBlock=function(e){return 269===e.kind},e.isNamespaceExportDeclaration=function(e){return 270===e.kind},e.isImportEqualsDeclaration=function(e){return 271===e.kind},e.isImportDeclaration=function(e){return 272===e.kind},e.isImportClause=function(e){return 273===e.kind},e.isImportTypeAssertionContainer=function(e){return 301===e.kind},e.isAssertClause=function(e){return 299===e.kind},e.isAssertEntry=function(e){return 300===e.kind},e.isNamespaceImport=function(e){return 274===e.kind},e.isNamespaceExport=function(e){return 280===e.kind},e.isNamedImports=function(e){return 275===e.kind},e.isImportSpecifier=function(e){return 276===e.kind},e.isExportAssignment=function(e){return 277===e.kind},e.isExportDeclaration=function(e){return 278===e.kind},e.isNamedExports=function(e){return 279===e.kind},e.isExportSpecifier=function(e){return 281===e.kind},e.isMissingDeclaration=function(e){return 282===e.kind},e.isNotEmittedStatement=function(e){return 355===e.kind},e.isSyntheticReference=function(e){return 360===e.kind},e.isMergeDeclarationMarker=function(e){return 358===e.kind},e.isEndOfDeclarationMarker=function(e){return 359===e.kind},e.isExternalModuleReference=function(e){return 283===e.kind},e.isJsxElement=function(e){return 284===e.kind},e.isJsxSelfClosingElement=function(e){return 285===e.kind},e.isJsxOpeningElement=function(e){return 286===e.kind},e.isJsxClosingElement=function(e){return 287===e.kind},e.isJsxFragment=function(e){return 288===e.kind},e.isJsxOpeningFragment=function(e){return 289===e.kind},e.isJsxClosingFragment=function(e){return 290===e.kind},e.isJsxAttribute=function(e){return 291===e.kind},e.isJsxAttributes=function(e){return 292===e.kind},e.isJsxSpreadAttribute=function(e){return 293===e.kind},e.isJsxExpression=function(e){return 294===e.kind},e.isCaseClause=function(e){return 295===e.kind},e.isDefaultClause=function(e){return 296===e.kind},e.isHeritageClause=function(e){return 297===e.kind},e.isCatchClause=function(e){return 298===e.kind},e.isPropertyAssignment=function(e){return 302===e.kind},e.isShorthandPropertyAssignment=function(e){return 303===e.kind},e.isSpreadAssignment=function(e){return 304===e.kind},e.isEnumMember=function(e){return 305===e.kind},e.isUnparsedPrepend=function(e){return 307===e.kind},e.isSourceFile=function(e){return 311===e.kind},e.isBundle=function(e){return 312===e.kind},e.isUnparsedSource=function(e){return 313===e.kind},e.isJSDocTypeExpression=function(e){return 315===e.kind},e.isJSDocNameReference=function(e){return 316===e.kind},e.isJSDocMemberName=function(e){return 317===e.kind},e.isJSDocLink=function(e){return 330===e.kind},e.isJSDocLinkCode=function(e){return 331===e.kind},e.isJSDocLinkPlain=function(e){return 332===e.kind},e.isJSDocAllType=function(e){return 318===e.kind},e.isJSDocUnknownType=function(e){return 319===e.kind},e.isJSDocNullableType=function(e){return 320===e.kind},e.isJSDocNonNullableType=function(e){return 321===e.kind},e.isJSDocOptionalType=function(e){return 322===e.kind},e.isJSDocFunctionType=function(e){return 323===e.kind},e.isJSDocVariadicType=function(e){return 324===e.kind},e.isJSDocNamepathType=function(e){return 325===e.kind},e.isJSDoc=function(e){return 326===e.kind},e.isJSDocTypeLiteral=function(e){return 328===e.kind},e.isJSDocSignature=function(e){return 329===e.kind},e.isJSDocAugmentsTag=function(e){return 334===e.kind},e.isJSDocAuthorTag=function(e){return 336===e.kind},e.isJSDocClassTag=function(e){return 338===e.kind},e.isJSDocCallbackTag=function(e){return 344===e.kind},e.isJSDocPublicTag=function(e){return 339===e.kind},e.isJSDocPrivateTag=function(e){return 340===e.kind},e.isJSDocProtectedTag=function(e){return 341===e.kind},e.isJSDocReadonlyTag=function(e){return 342===e.kind},e.isJSDocOverrideTag=function(e){return 343===e.kind},e.isJSDocDeprecatedTag=function(e){return 337===e.kind},e.isJSDocSeeTag=function(e){return 352===e.kind},e.isJSDocEnumTag=function(e){return 345===e.kind},e.isJSDocParameterTag=function(e){return 346===e.kind},e.isJSDocReturnTag=function(e){return 347===e.kind},e.isJSDocThisTag=function(e){return 348===e.kind},e.isJSDocTypeTag=function(e){return 349===e.kind},e.isJSDocTemplateTag=function(e){return 350===e.kind},e.isJSDocTypedefTag=function(e){return 351===e.kind},e.isJSDocUnknownTag=function(e){return 333===e.kind},e.isJSDocPropertyTag=function(e){return 353===e.kind},e.isJSDocImplementsTag=function(e){return 335===e.kind},e.isSyntaxList=function(e){return 354===e.kind}}(d||(d={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function l(e,t){switch(void 0===t&&(t=15),e.kind){case 215:return!(16&t&&c(e))&&!!(1&t);case 214:case 233:case 237:return!!(2&t);case 234:return!!(4&t);case 356:return!!(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);l(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function p(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=p(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c0)if(c.length>1)for(var _=0,f=c;_=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],p=0,f=u;p0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(u(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(u(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(v||(v={}));var b=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};function x(e,t){return"object"==typeof e?S(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function D(t,r){return"string"==typeof t?t:function(t,r){return e.isGeneratedPrivateIdentifier(t)?r(t).slice(1):e.isGeneratedIdentifier(t)?r(t):e.isPrivateIdentifier(t)?t.escapedText.slice(1):e.idText(t)}(t,e.Debug.checkDefined(r))}function S(e,t,r,n,i){return t=x(t,i),n=x(n,i),r=D(r,i),"".concat(e?"#":"").concat(t).concat(r).concat(n)}e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new b(t,r,n,i,a,o);return function(t,r){var n={value:void 0},i=[v.enter],a=[t],o=[void 0],c=0;for(;i[c]!==v.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}},e.elideNodes=function(t,r){if(void 0!==r)return 0===r.length?r:e.setTextRange(t.createNodeArray([],r.hasTrailingComma),r)},e.getNodeForGeneratedName=function(t){if(4&t.autoGenerateFlags){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isMemberName(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}return t},e.formatGeneratedNamePart=x,e.formatGeneratedName=S,e.createAccessorPropertyBackingField=function(e,t,r,n){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,n)},e.createAccessorPropertyGetRedirector=function(e,t,r,n){return e.createGetAccessorDeclaration(r,n,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))},e.createAccessorPropertySetRedirector=function(e,t,r,n){return e.createSetAccessorDeclaration(r,n,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}}(d||(d={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t},e.canHaveModifiers=function(e){var t=e.kind;return 166===t||167===t||169===t||170===t||171===t||172===t||174===t||175===t||176===t||179===t||183===t||216===t||217===t||230===t||263===t||242===t||261===t||262===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t},e.canHaveDecorators=function(e){var t=e.kind;return 167===t||170===t||172===t||175===t||176===t||230===t||262===t||263===t}}(d||(d={})),function(e){var t,r,n,o,s,c,l,u;function d(e,t){return t&&e(t)}function p(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}e.forEachChild=R,e.forEachChildRecursively=function(t,r,n){for(var i=B(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=164)for(var u=0,d=B(o);u=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(b,a,l,u>=0?u:void 0),nt((function(){var e=F;for(F|=32768,c.setTextPos(n.pos),He();1!==qe();){var r=c.getStartPos(),a=er(0,Pi);if(i.push(a),r===c.getStartPos()&&He(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=f(t.statements,o+1))}}F=e}),2),s=o>=0?_(t.statements,o):-1};-1!==s;)l();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=u.pos}));d>=0&&e.addRange(b,a,d)}return D=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function _(e,t){for(var r=t;r117}function st(){return 79===qe()||(126!==qe()||!Ee())&&((134!==qe()||!Fe())&&qe()>117)}function ct(t,r,n){return void 0===n&&(n=!0),qe()===t?(n&&He(),!0):!(qe()===t||!M||!je())||(r?we(r):we(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=te;var lt,ut,dt,pt=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function _t(t){var r;if(e.isTaggedTemplateExpression(t))Ue(e.skipTrivia(f,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,g)){var i=e.skipTrivia(f,t.pos);switch(n){case"const":case"let":case"var":return void Ue(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ft(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void Ue(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ft(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void ft(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,pt,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=pt;ri.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}return}(n);a?Ue(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==qe()&&Ue(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else we(e.Diagnostics._0_expected,e.tokenToString(26))}}function ft(e,t,r){qe()===r?we(t):we(e,c.getTokenValue())}function gt(t){return qe()===t?(Qe(),!0):(we(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function mt(t,r,n,i){if(qe()!==r){var a=we(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else He()}function ht(e){return qe()===e&&(He(),!0)}function yt(e){if(qe()===e)return xt()}function vt(e){if(qe()===e)return t=Ke(),r=qe(),Qe(),Et(R.createToken(r),t);var t,r}function bt(t,r,n){return yt(t)||kt(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function xt(){var e=Ke(),t=qe();return He(),Et(R.createToken(t),e)}function Dt(){return 26===qe()||(19===qe()||1===qe()||c.hasPrecedingLineBreak())}function St(){return!!Dt()&&(26===qe()&&He(),!0)}function Tt(){return St()||ct(26)}function Ct(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Et(t,r,n,i){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),F&&(t.flags|=F),K&&(K=!1,t.flags|=131072),i&&(t.virtual=!0),t}function kt(t,r,n,i){r?Je(c.getStartPos(),0,n,i):n&&we(n,i);var a=Ke();return Et(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):282===t?R.createMissingDeclaration():R.createToken(t),a)}function At(e){var t=C.get(e);return void 0===t&&C.set(e,t=e),t}function Nt(t,r,n){if(t){k++;var i=Ke(),a=qe(),o=At(c.getTokenValue()),s=c.hasExtendedUnicodeEscape();return $e(),Et(R.createIdentifier(o,void 0,a,s),i)}if(80===qe())return we(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Nt(!0);if(0===qe()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Nt(!0);if(M&&je()&&24===qe()){k++;i=Ke();return va(R.createIdentifier("".concat(M,"Instance"),void 0,79),i,i)}k++;var l=1===qe(),u=c.isReservedWord(),d=c.getTokenText(),p=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return kt(79,l,r||p,d)}function Ft(e){return Nt(ot(),void 0,e)}function wt(e,t){return Nt(st(),e,t)}function Pt(t){return Nt(e.tokenIsIdentifierOrKeyword(qe()),t)}function It(){return e.tokenIsIdentifierOrKeyword(qe())||10===qe()||8===qe()}function Ot(e){if(10===qe()||8===qe()){var t=mr();return t.text=At(t.text),t}return e&&22===qe()?function(){var e=Ke();ct(22);var t=ve(kn);return ct(23),Et(R.createComputedPropertyName(t),e)}():80===qe()?Lt():Pt()}function Mt(){return Ot(!0)}function Lt(){var e,t,r=Ke(),n=R.createPrivateIdentifier((e=c.getTokenValue(),void 0===(t=E.get(e))&&E.set(e,t=e),t));return He(),Et(n,r)}function Rt(e){return qe()===e&&at(jt)}function Bt(){return He(),!c.hasPrecedingLineBreak()&&zt()}function jt(){switch(qe()){case 86:return 93===He();case 94:return He(),89===qe()?it(Vt):155===qe()?it(Ut):Jt();case 89:return Vt();case 128:case 125:case 138:case 152:return He(),zt();default:return Bt()}}function Jt(){return 41!==qe()&&129!==qe()&&18!==qe()&&zt()}function Ut(){return He(),Jt()}function zt(){return 22===qe()||18===qe()||41===qe()||25===qe()||It()}function Vt(){return He(),84===qe()||Pe()&&85===qe()||99===qe()||119===qe()||127===qe()&&it(Ci)||133===qe()&&it(Ei)}function Kt(t,r){if(tr(t))return!0;switch(t){case 0:case 1:case 3:return!(26===qe()&&r)&&Fi();case 2:return 82===qe()||89===qe();case 4:return it(Ur);case 5:return it(ea)||26===qe()&&!r;case 6:return 22===qe()||It();case 12:switch(qe()){case 22:case 41:case 25:case 24:return!0;default:return It()}case 18:return It();case 9:return 22===qe()||25===qe()||It();case 24:return e.tokenIsIdentifierOrKeyword(qe())||10===qe();case 7:return 18===qe()?it(Wt):r?st()&&!Ht():Cn()&&!Ht();case 8:return Ui();case 10:return 27===qe()||25===qe()||Ui();case 19:return 102===qe()||st();case 15:switch(qe()){case 27:case 24:return!0}case 11:return 25===qe()||En();case 16:return Fr(!1);case 17:return Fr(!0);case 20:case 21:return 27===qe()||sn();case 22:return ya();case 23:return e.tokenIsIdentifierOrKeyword(qe());case 13:return e.tokenIsIdentifierOrKeyword(qe())||18===qe();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Wt(){if(e.Debug.assert(18===qe()),19===He()){var t=He();return 27===t||18===t||95===t||118===t}return!0}function qt(){return He(),st()}function $t(){return He(),e.tokenIsIdentifierOrKeyword(qe())}function Gt(){return He(),e.tokenIsIdentifierOrKeywordOrGreaterThan(qe())}function Ht(){return(118===qe()||95===qe())&&it(Qt)}function Qt(){return He(),En()}function Xt(){return He(),sn()}function Yt(e){if(1===qe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===qe();case 3:return 19===qe()||82===qe()||89===qe();case 7:return 18===qe()||95===qe()||118===qe();case 8:return function(){if(Dt())return!0;if(Ln(qe()))return!0;if(38===qe())return!0;return!1}();case 19:return 31===qe()||20===qe()||18===qe()||95===qe()||118===qe();case 11:return 21===qe()||26===qe();case 15:case 21:case 10:return 23===qe();case 17:case 16:case 18:return 21===qe()||23===qe();case 20:return 27!==qe();case 22:return 18===qe()||19===qe();case 13:return 31===qe()||43===qe();case 14:return 29===qe()&&it(Ea);default:return!1}}function Zt(e,t){var r=A;A|=1<=0)}function ar(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function or(){var e=Ct([],Ke());return e.isMissingList=!0,e}function sr(e,t,r,n){if(ct(r)){var i=ir(e,t);return ct(n),i}return or()}function cr(e,t){for(var r=Ke(),n=e?Pt(t):wt(t),i=Ke();ht(24);){if(29===qe()){n.jsdocDotPos=i;break}i=Ke(),n=Et(R.createQualifiedName(n,ur(e,!1)),r)}return n}function lr(e,t){return Et(R.createQualifiedName(e,t),e.pos)}function ur(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(qe())&&it(Ti))return kt(79,!0,e.Diagnostics.Identifier_expected);if(80===qe()){var n=Lt();return r?n:kt(79,!0,e.Diagnostics.Identifier_expected)}return t?Pt():wt()}function dr(e){var t=Ke();return Et(R.createTemplateExpression(hr(e),function(e){var t,r=Ke(),n=[];do{t=gr(e),n.push(t)}while(16===t.literal.kind);return Ct(n,r)}(e)),t)}function pr(){var e=Ke();return Et(R.createTemplateLiteralType(hr(!1),function(){var e,t=Ke(),r=[];do{e=_r(),r.push(e)}while(16===e.literal.kind);return Ct(r,t)}()),e)}function _r(){var e=Ke();return Et(R.createTemplateLiteralTypeSpan(xn(),fr(!1)),e)}function fr(t){return 19===qe()?(function(e){S=c.reScanTemplateToken(e)}(t),r=yr(qe()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):bt(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function gr(e){var t=Ke();return Et(R.createTemplateSpan(ve(kn),fr(e)),t)}function mr(){return yr(qe())}function hr(t){t&&Ye();var r=yr(qe());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function yr(t){var r=Ke(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?R.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?R.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),He(),Et(n,r)}function vr(){return cr(!0,e.Diagnostics.Type_expected)}function br(){if(!c.hasPrecedingLineBreak()&&29===Ze())return sr(20,xn,29,31)}function xr(){var e=Ke();return Et(R.createTypeReferenceNode(vr(),br()),e)}function Dr(t){switch(t.kind){case 181:return e.nodeIsMissing(t.typeName);case 182:case 183:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Dr(i);case 194:return Dr(t.type);default:return!1}}function Sr(){var e=Ke();return He(),Et(R.createThisTypeNode(),e)}function Tr(){var e,t=Ke();return 109!==qe()&&104!==qe()||(e=Pt(),ct(58)),Et(R.createParameterDeclaration(void 0,void 0,e,void 0,Cr(),void 0),t)}function Cr(){c.setInJSDocType(!0);var e=Ke();if(ht(143)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 19:case 1:case 27:case 5:break e;default:Qe()}return c.setInJSDocType(!1),Et(t,e)}var r=ht(25),n=vn();return c.setInJSDocType(!1),r&&(n=Et(R.createJSDocVariadicType(n),e)),63===qe()?(He(),Et(R.createJSDocOptionalType(n),e)):n}function Er(e){var t,r,n=Ke(),i=sa(),a=void 0!==e?function(e){k++;var t=At(I.type);return va(R.createIdentifier(t),e,e)}(e):wt();ht(95)&&(sn()||!En()?t=xn():r=zn());var o=ht(63)?xn():void 0,s=R.createTypeParameterDeclaration(i,a,t,o);return s.expression=r,void 0!==e?va(s,e,e):Et(s,n)}function kr(){if(29===qe())return sr(19,Er,29,31)}function Ar(e){return Ct([Er(e)],Ke())}function Nr(e,t){if(!(262144&F))return Ct([Dn(e,t)],Ke())}function Fr(t){return 25===qe()||Ui()||e.isModifierKind(qe())||59===qe()||sn(!t)}function wr(e){return Pr(e)}function Pr(t,r){void 0===r&&(r=!0);var n=Ke(),i=We(),a=t?De(ia):Se(ia);if(109===qe()){var o=R.createParameterDeclaration(a,void 0,Nt(!0),void 0,Tn(),void 0);return a&&ze(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Y(Et(o,n),i)}var s=B;B=!1;var c=oa(a,sa()),l=yt(25);if(r||ot()||22===qe()||18===qe()){var u=Y(Et(R.createParameterDeclaration(c,l,function(t){var r=zi(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(qe())&&He(),r}(c),yt(57),Tn(),An()),n),i);return B=s,u}}function Ir(t,r){if(function(t,r){if(38===t)return ct(t),!0;if(ht(58))return!0;if(r&&38===qe())return we(e.Diagnostics._0_expected,e.tokenToString(58)),He(),!0;return!1}(t,r))return be(vn)}function Or(e,t){var r=Ee(),n=Fe();oe(!!(1&e)),ce(!!(2&e));var i=32&e?ir(17,Tr):ir(16,(function(){return t?wr(n):Pr(n,!1)}));return oe(r),ce(n),i}function Mr(e){if(!ct(20))return or();var t=Or(e,!0);return ct(21),t}function Lr(){ht(27)||Tt()}function Rr(e){var t=Ke(),r=We();178===e&&ct(104);var n=kr(),i=Mr(4),a=Ir(58,!0);return Lr(),Y(Et(177===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function Br(){return 22===qe()&&it(jr)}function jr(){if(He(),25===qe()||23===qe())return!0;if(e.isModifierKind(qe())){if(He(),st())return!0}else{if(!st())return!1;He()}return 58===qe()||27===qe()||57===qe()&&(He(),58===qe()||27===qe()||23===qe())}function Jr(e,t,r,n){var i=sr(16,(function(){return wr(!1)}),22,23),a=Tn();Lr();var o=R.createIndexSignature(n,i,a);return o.illegalDecorators=r,Y(Et(o,e),t)}function Ur(){if(20===qe()||29===qe()||138===qe()||152===qe())return!0;for(var t=!1;e.isModifierKind(qe());)t=!0,He();return 22===qe()||(It()&&(t=!0,He()),!!t&&(20===qe()||29===qe()||57===qe()||58===qe()||27===qe()||Dt()))}function zr(){if(20===qe()||29===qe())return Rr(177);if(104===qe()&&it(Vr))return Rr(178);var e=Ke(),t=We(),r=sa();return Rt(138)?Zi(e,t,void 0,r,175,4):Rt(152)?Zi(e,t,void 0,r,176,4):Br()?Jr(e,t,void 0,r):function(e,t,r){var n,i=Mt(),a=yt(57);if(20===qe()||29===qe()){var o=kr(),s=Mr(4),c=Ir(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=Tn(),n=R.createPropertySignature(r,i,a,c),63===qe()&&(n.initializer=An());return Lr(),Y(Et(n,e),t)}(e,t,r)}function Vr(){return He(),20===qe()||29===qe()}function Kr(){return 24===He()}function Wr(){switch(He()){case 20:case 29:case 24:return!0}return!1}function qr(){var e;return ct(18)?(e=Zt(4,zr),ct(19)):e=or(),e}function $r(){return He(),39===qe()||40===qe()?147===He():(147===qe()&&He(),22===qe()&&qt()&&102===He())}function Gr(){var e,t=Ke();ct(18),147!==qe()&&39!==qe()&&40!==qe()||147!==(e=xt()).kind&&ct(147),ct(22);var r,n=function(){var e=Ke(),t=Pt();ct(102);var r=xn();return Et(R.createTypeParameterDeclaration(void 0,t,r,void 0),e)}(),i=ht(129)?xn():void 0;ct(23),57!==qe()&&39!==qe()&&40!==qe()||57!==(r=xt()).kind&&ct(57);var a=Tn();Tt();var o=Zt(4,zr);return ct(19),Et(R.createMappedTypeNode(e,n,i,r,a,o),t)}function Hr(){var t=Ke();if(ht(25))return Et(R.createRestTypeNode(xn()),t);var r=xn();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function Qr(){return 58===He()||57===qe()&&58===He()}function Xr(){return 25===qe()?e.tokenIsIdentifierOrKeyword(He())&&Qr():e.tokenIsIdentifierOrKeyword(qe())&&Qr()}function Yr(){if(it(Xr)){var e=Ke(),t=We(),r=yt(25),n=Pt(),i=yt(57);ct(58);var a=Hr();return Y(Et(R.createNamedTupleMember(r,n,i,a),e),t)}return Hr()}function Zr(){var e=Ke(),t=We(),r=function(){var e;if(127===qe()){var t=Ke();He(),e=Ct([Et(R.createToken(127),t)],t)}return e}(),n=ht(104),i=kr(),a=Mr(4),o=Ir(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),Y(Et(s,e),t)}function en(){var e=xt();return 24===qe()?void 0:e}function tn(e){var t=Ke();e&&He();var r=111===qe()||96===qe()||105===qe()?xt():yr(qe());return e&&(r=Et(R.createPrefixUnaryExpression(40,r),t)),Et(R.createLiteralTypeNode(r),t)}function rn(){return He(),101===qe()}function nn(){p|=2097152;var t=Ke(),r=ht(113);ct(101),ct(20);var n,i=xn();ht(27)&&(n=function(){var t=Ke(),r=c.getTokenPos();ct(18);var n=c.hasPrecedingLineBreak();ct(131),ct(58);var i=Aa(!0);if(!ct(19)){var a=e.lastOrUndefined(b);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Et(R.createImportTypeAssertionContainer(i,n),t)}()),ct(21);var a=ht(24)?vr():void 0,o=br();return Et(R.createImportTypeNode(i,n,a,o,r),t)}function an(){return He(),8===qe()||9===qe()}function on(){switch(qe()){case 132:case 158:case 153:case 149:case 161:case 154:case 135:case 156:case 145:case 150:return at(en)||xr();case 66:c.reScanAsteriskEqualsToken();case 41:return r=Ke(),He(),Et(R.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=Ke();return He(),27===qe()||19===qe()||21===qe()||31===qe()||63===qe()||51===qe()?Et(R.createJSDocUnknownType(),e):Et(R.createJSDocNullableType(xn(),!1),e)}();case 99:return function(){var e=Ke(),t=We();if(it(Ta)){He();var r=Mr(36),n=Ir(58,!1);return Y(Et(R.createJSDocFunctionType(r,n),e),t)}return Et(R.createTypeReferenceNode(Pt(),void 0),e)}();case 53:return function(){var e=Ke();return He(),Et(R.createJSDocNonNullableType(on(),!1),e)}();case 14:case 10:case 8:case 9:case 111:case 96:case 105:return tn();case 40:return it(an)?tn(!0):xr();case 115:return xt();case 109:var e=Sr();return 141!==qe()||c.hasPrecedingLineBreak()?e:(t=e,He(),Et(R.createTypePredicateNode(void 0,t,xn()),t.pos));case 113:return it(rn)?nn():function(){var e=Ke();ct(113);var t=cr(!0),r=c.hasPrecedingLineBreak()?void 0:ha();return Et(R.createTypeQueryNode(t,r),e)}();case 18:return it($r)?Gr():function(){var e=Ke();return Et(R.createTypeLiteralNode(qr()),e)}();case 22:return function(){var e=Ke();return Et(R.createTupleTypeNode(sr(21,Yr,22,23)),e)}();case 20:return function(){var e=Ke();ct(20);var t=xn();return ct(21),Et(R.createParenthesizedType(t),e)}();case 101:return nn();case 130:return it(Ti)?function(){var e=Ke(),t=bt(130),r=109===qe()?Sr():wt(),n=ht(141)?xn():void 0;return Et(R.createTypePredicateNode(t,r,n),e)}():xr();case 15:return pr();default:return xr()}var t,r}function sn(e){switch(qe()){case 132:case 158:case 153:case 149:case 161:case 135:case 147:case 154:case 157:case 115:case 156:case 105:case 109:case 113:case 145:case 18:case 22:case 29:case 51:case 50:case 104:case 10:case 8:case 9:case 111:case 96:case 150:case 41:case 57:case 53:case 25:case 139:case 101:case 130:case 14:case 15:return!0;case 99:return!e;case 40:return!e&&it(an);case 20:return!e&&it(cn);default:return st()}}function cn(){return He(),21===qe()||Fr(!1)||sn()}function ln(){for(var e=Ke(),t=on();!c.hasPrecedingLineBreak();)switch(qe()){case 53:He(),t=Et(R.createJSDocNonNullableType(t,!0),e);break;case 57:if(it(Xt))return t;He(),t=Et(R.createJSDocNullableType(t,!0),e);break;case 22:if(ct(22),sn()){var r=xn();ct(23),t=Et(R.createIndexedAccessTypeNode(t,r),e)}else ct(23),t=Et(R.createArrayTypeNode(t),e);break;default:return t}return t}function un(){if(ht(95)){var e=xe(xn);if(Ae()||57!==qe())return e}}function dn(){var e=Ke();return ct(139),Et(R.createInferTypeNode(function(){var e=Ke(),t=wt(),r=at(un);return Et(R.createTypeParameterDeclaration(void 0,t,r),e)}()),e)}function pn(){var e=qe();switch(e){case 142:case 157:case 147:return function(e){var t=Ke();return ct(e),Et(R.createTypeOperatorNode(e,pn()),t)}(e);case 139:return dn()}return be(ln)}function _n(t){if(hn()){var r=Zr();return ze(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function fn(e,t,r){var n=Ke(),i=51===e,a=ht(e),o=a&&_n(i)||t();if(qe()===e||a){for(var s=[o];ht(e);)s.push(_n(i)||t());o=Et(r(Ct(s,n)),n)}return o}function gn(){return fn(50,pn,R.createIntersectionTypeNode)}function mn(){return He(),104===qe()}function hn(){return 29===qe()||(!(20!==qe()||!it(yn))||(104===qe()||127===qe()&&it(mn)))}function yn(){if(He(),21===qe()||25===qe())return!0;if(function(){if(e.isModifierKind(qe())&&sa(),st()||109===qe())return He(),!0;if(22===qe()||18===qe()){var t=b.length;return zi(),t===b.length}return!1}()){if(58===qe()||27===qe()||57===qe()||63===qe())return!0;if(21===qe()&&(He(),38===qe()))return!0}return!1}function vn(){var e=Ke(),t=st()&&at(bn),r=xn();return t?Et(R.createTypePredicateNode(void 0,t,r),e):r}function bn(){var e=wt();if(141===qe()&&!c.hasPrecedingLineBreak())return He(),e}function xn(){if(40960&F)return he(40960,xn);if(hn())return Zr();var e=Ke(),t=fn(51,gn,R.createUnionTypeNode);if(!Ae()&&!c.hasPrecedingLineBreak()&&ht(95)){var r=xe(xn);ct(57);var n=be(xn);ct(58);var i=be(xn);return Et(R.createConditionalTypeNode(t,r,n,i),e)}return t}function Dn(e,t){var r=40960&F;if(r){ne(!1,r);var n=Sn(e,t);return ne(!0,r),n}return Sn(e,t)}function Sn(e,t){return va(R.createTypeReferenceNode(va(R.createIdentifier(t),e,e)),e,e)}function Tn(){return ht(58)?xn():void 0}function Cn(){switch(qe()){case 109:case 107:case 105:case 111:case 96:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 99:case 84:case 104:case 43:case 68:case 79:return!0;case 85:return Pe();case 101:return it(Wr);default:return st()}}function En(){if(Cn())return!0;switch(qe()){case 39:case 40:case 54:case 53:case 90:case 113:case 115:case 45:case 46:case 29:case 134:case 126:case 80:return!0;case 24:return Me()&&!!P||Le()&&!!I;default:return!!Bn()||st()}}function kn(){var e=Ne();e&&se(!1);for(var t,r=Ke(),n=Nn(!0);t=yt(27);)n=jn(n,t,Nn(!0),r);return e&&se(!0),n}function An(){return ht(63)?Nn(!0):void 0}function Nn(t){if(function(){if(126===qe())return!!Ee()||it(ki);return!1}())return function(){var e=Ke();return He(),c.hasPrecedingLineBreak()||41!==qe()&&!En()?Et(R.createYieldExpression(void 0,void 0),e):Et(R.createYieldExpression(yt(41),Nn(!0)),e)}();var r=function(t){var r=function(){if(20===qe()||29===qe()||133===qe())return it(wn);if(38===qe())return 1;return 0}();if(0===r)return;return 1===r?In(!0,!0):at((function(){return function(t){var r=c.getTokenPos();if(null==N?void 0:N.has(r))return;var n=In(!1,t);n||(N||(N=new e.Set)).add(r);return n}(t)}))}(t)||function(e){if(133===qe()&&1===it(Pn)){var t=Ke(),r=ca();return Fn(t,Mn(0),e,r)}return}(t);if(r)return r;var n=Ke(),i=Mn(0);return 79===i.kind&&38===qe()?Fn(n,i,t,void 0):e.isLeftHandSideExpression(i)&&e.isAssignmentOperator(Xe())?jn(i,xt(),Nn(t),n):Pe()&&e.isCallExpression(i)&&18===qe()?function(e,t){var r=e.expression,n=yi(0);return Et(R.createEtsComponentExpression(r,e.arguments,n),t)}(i,n):function(t,r,n){var i,a=yt(57);if(!a)return t;return Et(R.createConditionalExpression(t,a,he(l,(function(){return Nn(!1)})),i=bt(58),e.nodeIsPresent(i)?Nn(n):kt(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(i,n,t)}function Fn(t,r,n,i){e.Debug.assert(38===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=R.createParameterDeclaration(void 0,void 0,r,void 0,void 0,void 0);Et(a,r.pos);var o=Ct([a],a.pos,a.end),s=bt(38),c=On(!!i,n);return ee(Et(R.createArrowFunction(i,void 0,o,void 0,s,c),t))}function wn(){if(133===qe()){if(He(),c.hasPrecedingLineBreak())return 0;if(20!==qe()&&29!==qe())return 0}var t=qe(),r=He();if(20===t){if(21===r)switch(He()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&133!==r&&it(qt))return 129===He()?0:1;if(!st()&&109!==r)return 0;switch(He()){case 58:return 1;case 57:return He(),58===qe()||27===qe()||63===qe()||21===qe()?1:0;case 27:case 63:case 21:return 2}return 0}if(e.Debug.assert(29===t),!st())return 0;if(1===y){var n=it((function(){var e=He();if(95===e)switch(He()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}));return n?1:0}return 2}function Pn(){if(133===qe()){if(He(),c.hasPrecedingLineBreak()||38===qe())return 0;var e=Mn(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===qe())return 1}return 0}function In(t,r){var n,i=Ke(),a=We(),o=ca(),s=e.some(o,e.isAsyncModifier)?2:0,c=kr();if(ct(20)){if(t)n=Or(s,t);else{var l=Or(s,t);if(!l)return;n=l}if(!ct(21)&&!t)return}else{if(!t)return;n=or()}var u=58===qe(),d=Ir(58,!1);if(!d||t||!Dr(d)){for(var p=d;194===(null==p?void 0:p.kind);)p=p.type;var _=p&&e.isJSDocFunctionType(p);if(t||38===qe()||!_&&18===qe()){var f=qe(),g=bt(38),m=38===f||18===f?On(e.some(o,e.isAsyncModifier),r):wt();if(r||!u||58===qe())return Y(Et(R.createArrowFunction(o,c,n,d,g,m),i),a)}}}function On(e,t){if(18===qe())return yi(e?2:0);if(26!==qe()&&99!==qe()&&84!==qe()&&(!Pe()||85!==qe())&&Fi()&&(18===qe()||99===qe()||84===qe()||Pe()&&85===qe()||59===qe()||!En()))return yi(16|(e?2:0));var r=B;B=!1;var n=e?De((function(){return Nn(t)})):Se((function(){return Nn(t)}));return B=r,n}function Mn(e){var t=Ke();return Rn(e,zn(),t)}function Ln(e){return 102===e||163===e}function Rn(t,r,n){for(;;){Xe();var i=e.getBinaryOperatorPrecedence(qe());if(!(42===qe()?i>=t:i>t))break;if(102===qe()&&ke())break;if(129===qe()||151===qe()){if(c.hasPrecedingLineBreak())break;var a=qe();He(),r=151===a?(o=r,s=xn(),Et(R.createSatisfiesExpression(o,s),o.pos)):Jn(r,xn())}else r=jn(r,xt(),Mn(i),n)}var o,s;return r}function Bn(){return(!ke()||102!==qe())&&e.getBinaryOperatorPrecedence(qe())>0}function jn(e,t,r,n){return Et(R.createBinaryExpression(e,t,r),n)}function Jn(e,t){return Et(R.createAsExpression(e,t),e.pos)}function Un(){var e=Ke();return Et(R.createPrefixUnaryExpression(qe(),Ge(Vn)),e)}function zn(){if(function(){switch(qe()){case 39:case 40:case 54:case 53:case 90:case 113:case 115:case 134:return!1;case 29:if(1!==y)return!1;default:return!0}}()){var t=Ke(),r=Kn();return 42===qe()?Rn(e.getBinaryOperatorPrecedence(qe()),r,t):r}var n=qe(),i=Vn();if(42===qe()){t=e.skipTrivia(f,i.pos);var a=i.end;214===i.kind?Ue(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Ue(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function Vn(){switch(qe()){case 39:case 40:case 54:case 53:return Un();case 90:return e=Ke(),Et(R.createDeleteExpression(Ge(Vn)),e);case 113:return function(){var e=Ke();return Et(R.createTypeOfExpression(Ge(Vn)),e)}();case 115:return function(){var e=Ke();return Et(R.createVoidExpression(Ge(Vn)),e)}();case 29:return function(){var e=Ke();ct(29);var t=xn();ct(31);var r=Vn();return Et(R.createTypeAssertion(t,r),e)}();case 134:if(134===qe()&&(Fe()||it(ki)))return function(){var e=Ke();return Et(R.createAwaitExpression(Ge(Vn)),e)}();default:return Kn()}var e}function Kn(){if(45===qe()||46===qe()){var t=Ke();return Et(R.createPrefixUnaryExpression(qe(),Ge(Wn)),t)}if(1===y&&29===qe()&&it(Gt))return $n(!0);var r=Wn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===qe()||46===qe())&&!c.hasPrecedingLineBreak()){var n=qe();return He(),Et(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function Wn(){var t,r=Ke();return 101===qe()?it(Vr)?(p|=2097152,t=xt()):it(Kr)?(He(),He(),t=Et(R.createMetaProperty(101,Pt()),r),p|=4194304):t=qn():t=107===qe()?function(){var t=Ke(),r=xt();if(29===qe()){var n=Ke(),i=at(ci);void 0!==i&&(Ue(n,Ke(),e.Diagnostics.super_may_not_use_type_arguments),ii()||(r=R.createExpressionWithTypeArguments(r,i)))}if(20===qe()||24===qe()||22===qe())return r;return bt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Et(R.createPropertyAccessExpression(r,ur(!0,!0)),t)}():qn(),oi(r,t)}function qn(){var e=Ke();return ni(e,Me()&&P&&24===qe()?va(R.createIdentifier(P.instance,void 0,79),e,e):Le()&&I&&24===qe()?va(R.createIdentifier(I.instance,void 0,79),e,e):je()&&M&&24===qe()?va(R.createIdentifier("".concat(M,"Instance"),void 0,79),e,e):li(),!0)}function $n(t,r,n){var a,o=Ke(),s=function(e){var t=Ke();if(ct(29),31===qe())return rt(),Et(R.createJsxOpeningFragment(),t);var r,n=Qn(),i=262144&F?void 0:ha(),a=function(){var e=Ke();return Et(R.createJsxAttributes(Zt(13,Yn)),e)}();31===qe()?(rt(),r=R.createJsxOpeningElement(n,i,a)):(ct(43),ct(31,void 0,!1)&&(e?He():rt()),r=R.createJsxSelfClosingElement(n,i,a));return Et(r,t)}(t);if(286===s.kind){var c=Hn(s),l=void 0,u=c[c.length-1];if(284===(null==u?void 0:u.kind)&&!Q(u.openingElement.tagName,u.closingElement.tagName)&&Q(s.tagName,u.closingElement.tagName)){var d=u.children.end,p=Et(R.createJsxElement(u.openingElement,u.children,Et(R.createJsxClosingElement(Et(R.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Ct(i(i([],c.slice(0,c.length-1),!0),[p],!1),c.pos,d),l=u.closingElement}else l=function(e,t){var r=Ke();ct(30);var n=Qn();ct(31,void 0,!1)&&(t||!Q(e.tagName,n)?He():rt());return Et(R.createJsxClosingElement(n),r)}(s,t),Q(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&Q(l.tagName,n.tagName)?ze(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,s.tagName)):ze(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(f,s.tagName)));a=Et(R.createJsxElement(s,c,l),o)}else 289===s.kind?a=Et(R.createJsxFragment(s,Hn(s),function(t){var r=Ke();ct(30),e.tokenIsIdentifierOrKeyword(qe())&&ze(Qn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);ct(31,void 0,!1)&&(t?He():rt());return Et(R.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(285===s.kind),a=s);if(t&&29===qe()){var _=void 0===r?a.pos:r,g=at((function(){return $n(!0,_)}));if(g){var m=kt(27,!1);return e.setTextRangePosWidth(m,g.pos,0),Ue(e.skipTrivia(f,_),g.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Et(R.createBinaryExpression(a,m,g),o)}}return a}function Gn(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))ze(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;Ue(e.skipTrivia(f,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=Ke(),a=R.createJsxText(c.getTokenValue(),12===S),S=c.scanJsxToken(),Et(a,i);case 18:return Xn(!1);case 29:return $n(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function Hn(t){var r=[],n=Ke(),i=A;for(A|=16384;;){var a=Gn(t,S=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&284===(null==a?void 0:a.kind)&&!Q(a.openingElement.tagName,a.closingElement.tagName)&&Q(t.tagName,a.closingElement.tagName))break}return A=i,Ct(r,n)}function Qn(){var e=Ke();tt();for(var t=109===qe()?xt():Pt();ht(24);)t=Et(R.createPropertyAccessExpression(t,ur(!0,!1)),e);return t}function Xn(e){var t,r,n=Ke();if(ct(18))return 19!==qe()&&(t=yt(25),r=kn()),e?ct(19):ct(19,void 0,!1)&&rt(),Et(R.createJsxExpression(t,r),n)}function Yn(){if(18===qe())return function(){var e=Ke();ct(18),ct(25);var t=kn();return ct(19),Et(R.createJsxSpreadAttribute(t),e)}();tt();var t=Ke();return Et(R.createJsxAttribute(Pt(),function(){if(63===qe()){if(10===(S=c.scanJsxAttributeValue()))return mr();if(18===qe())return Xn(!0);if(29===qe())return $n(!0);we(e.Diagnostics.or_JSX_element_expected)}return}()),t)}function Zn(){return He(),e.tokenIsIdentifierOrKeyword(qe())||22===qe()||ii()}function ei(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function ti(t,r,n){var i=ur(!0,!0),a=n||ei(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);(a&&e.isPrivateIdentifier(o.name)&&ze(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(r)&&r.typeArguments)&&Ue(r.typeArguments.pos-1,e.skipTrivia(f,r.typeArguments.end)+1,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access);return Et(o,t)}function ri(t,r,n){var i;if(23===qe())i=kt(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ve(kn);e.isStringOrNumericLiteralLike(a)&&(a.text=At(a.text)),i=a}return ct(23),Et(n||ei(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function ni(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===qe()&&it(Zn)?(i=bt(28),a=e.tokenIsIdentifierOrKeyword(qe())):a=ht(24),a)r=ti(t,r,i);else if(!i&&Ne()||!ht(22)){if(!ii()){if(!i){if(53===qe()&&!c.hasPrecedingLineBreak()){He(),r=Et(R.createNonNullExpression(r),t);continue}var o=at(ci);if(o){r=Et(R.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||232!==r.kind?ai(t,r,i,void 0):ai(t,r.expression,i,r.typeArguments)}else r=ri(t,r,i)}}function ii(){return 14===qe()||15===qe()}function ai(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===qe()?(Ye(),mr()):dr(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Et(i,e)}function oi(t,r){for(var n,i,a,o,s;;){r=ni(t,r,!0);var c=void 0,l=yt(28);if(l&&(c=at(ci),ii()))r=ai(t,r,l,c);else{if(!c&&20!==qe()){if(l){var u=kt(79,!1,e.Diagnostics.Identifier_expected);r=Et(R.createPropertyAccessChain(r,l,u),t)}break}if(l||232!==r.kind||(c=r.typeArguments,r=r.expression),((Re()||Be())&&Ie()||Be())&&e.isPropertyAccessExpression(r)){var d=e.getRootEtsComponent(r);if(d){var p=d.expression.escapedText.toString();(s=e.getTextOfPropertyName(r.name).toString())===(null===(i=null===(n=null==h?void 0:h.ets)||void 0===n?void 0:n.styles)||void 0===i?void 0:i.property)?(me(!0),M=p):(me(!1),M=void 0),c=Nr(t,"".concat(p,"Attribute"))}else je()&&M&&(c=Nr(t,"".concat(M,"Attribute")))}var _=si();r=Et(l||ei(r)?R.createCallChain(r,l,c,_):R.createCallExpression(r,c,_),t)}}return s===(null===(o=null===(a=null==h?void 0:h.ets)||void 0===a?void 0:a.styles)||void 0===o?void 0:o.property)&&(me(!1),M=void 0),r}function si(){ct(20);var e=ir(11,di);return ct(21),e}function ci(){if(!(262144&F)&&29===Ze()){He();var e=ir(20,xn);if(31===Xe())return He(),e&&function(){switch(qe()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||Bn()||!En()}()?e:void 0}}function li(){switch(qe()){case 8:case 9:case 10:case 14:return mr();case 109:case 107:case 105:case 111:case 96:return xt();case 20:return function(){var e=Ke(),t=We();ct(20);var r=ve(kn);return ct(21),Y(Et(R.createParenthesizedExpression(r),e),t)}();case 22:return pi();case 18:return fi();case 133:if(!it(Ei))break;return gi();case 84:return pa(Ke(),We(),void 0,void 0,230);case 99:return gi();case 104:return function(){de(Oe());var t=Ke();if(ct(104),ht(24)){var r=Pt();return Et(R.createMetaProperty(104,r),t)}var n,i=ni(Ke(),li(),!1);232===i.kind&&(n=i.typeArguments,i=i.expression);28===qe()&&we(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(f,i));var a=20===qe()?si():void 0;return de(!1),Et(R.createNewExpression(i,n,a),t)}();case 43:case 68:if(13===(S=c.reScanSlashToken()))return mr();break;case 15:return dr(!1);case 80:return Lt()}return!function(){var e,t;return!!Oe()&&(null!==(t=null===(e=h.ets)||void 0===e?void 0:e.components)&&void 0!==t?t:[]).includes(c.getTokenText())}()||Pe()&&Ce(256)?wt(e.Diagnostics.Expression_expected):(t=Ke(),r=Ft(),n=si(),i=18===qe()?yi(0):void 0,Et(R.createEtsComponentExpression(r,n,i),t));var t,r,n,i}function ui(){return 25===qe()?function(){var e=Ke();ct(25);var t=Nn(!0);return Et(R.createSpreadElement(t),e)}():27===qe()?Et(R.createOmittedExpression(),Ke()):Nn(!0)}function di(){return he(l,ui)}function pi(){var e=Ke(),t=c.getTokenPos(),r=ct(22),n=c.hasPrecedingLineBreak(),i=ir(15,ui);return mt(22,23,r,t),Et(R.createArrayLiteralExpression(i,n),e)}function _i(){var e=Ke(),t=We();if(yt(25)){var r=Nn(!0);return Y(Et(R.createSpreadAssignment(r),e),t)}var n=ia(),i=sa();if(Rt(138))return Zi(e,t,n,i,175,0);if(Rt(152))return Zi(e,t,n,i,176,0);var a,o=yt(41),s=st(),c=Mt(),l=yt(57),u=yt(53);if(o||20===qe()||29===qe())return Qi(e,t,n,i,o,c,l,u);if(s&&58!==qe()){var d=yt(63),p=d?ve((function(){return Nn(!0)})):void 0;(a=R.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{ct(58);var _=ve((function(){return Nn(!0)}));a=R.createPropertyAssignment(c,_)}return a.illegalDecorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,Y(Et(a,e),t)}function fi(){var e=Ke(),t=c.getTokenPos(),r=ct(18),n=c.hasPrecedingLineBreak(),i=ir(12,_i,!0);return mt(18,19,r,t),Et(R.createObjectLiteralExpression(i,n),e)}function gi(){var t=Ne();se(!1);var r=Ke(),n=We(),i=sa();ct(99);var a=yt(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ye(40960,mi):o?function(e){return ye(8192,e)}(mi):s?De(mi):mi(),l=kr(),u=Mr(o|s),d=Ir(58,!1),p=yi(o|s);return se(t),Y(Et(R.createFunctionExpression(i,a,c,l,u,d,p),r),n)}function mi(){return ot()?Ft():void 0}function hi(t,r){var n=Ke(),i=We(),a=c.getTokenPos(),o=ct(18,r);if(o||t){var s=c.hasPrecedingLineBreak(),l=Zt(1,Pi);mt(18,19,o,a);var u=Y(Et(R.createBlock(l,s),n),i);return 63===qe()&&(we(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),He()),u}l=or();return Y(Et(R.createBlock(l,void 0),n),i)}function yi(e,t){var r=Ee();oe(!!(1&e));var n=Fe();ce(!!(2&e));var i=B;B=!1;var a=Ne();a&&se(!1);var o=hi(!!(16&e),t);return a&&se(!0),B=i,oe(r),ce(n),o}function vi(){var e=Ke(),t=We();ct(98);var r,n,i=yt(134);if(ct(20),26!==qe()&&(r=114===qe()||120===qe()||86===qe()?Wi(!0):ye(4096,kn)),i?ct(163):ht(163)){var a=ve((function(){return Nn(!0)}));ct(21),n=R.createForOfStatement(i,r,a,Pi())}else if(ht(102)){a=ve(kn);ct(21),n=R.createForInStatement(r,a,Pi())}else{ct(26);var o=26!==qe()&&21!==qe()?ve(kn):void 0;ct(26);var s=21!==qe()?ve(kn):void 0;ct(21),n=R.createForStatement(r,o,s,Pi())}return Y(Et(n,e),t)}function bi(e){var t=Ke(),r=We();ct(251===e?81:87);var n=Dt()?void 0:wt();return Tt(),Y(Et(251===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function xi(){return 82===qe()?function(){var e=Ke(),t=We();ct(82);var r=ve(kn);ct(58);var n=Zt(3,Pi);return Y(Et(R.createCaseClause(r,n),e),t)}():function(){var e=Ke();ct(89),ct(58);var t=Zt(3,Pi);return Et(R.createDefaultClause(t),e)}()}function Di(){var e=Ke(),t=We();ct(108),ct(20);var r=ve(kn);ct(21);var n=function(){var e=Ke();ct(18);var t=Zt(2,xi);return ct(19),Et(R.createCaseBlock(t),e)}();return Y(Et(R.createSwitchStatement(r,n),e),t)}function Si(){var t=Ke(),r=We();ct(112);var n,i=hi(!1),a=83===qe()?function(){var e,t=Ke();ct(83),ht(20)?(e=Ki(),ct(21)):e=void 0;var r=hi(!1);return Et(R.createCatchClause(e,r),t)}():void 0;return a&&97!==qe()||(ct(97,e.Diagnostics.catch_or_finally_expected),n=hi(!1)),Y(Et(R.createTryStatement(i,a,n),t),r)}function Ti(){return He(),e.tokenIsIdentifierOrKeyword(qe())&&!c.hasPrecedingLineBreak()}function Ci(){return He(),84===qe()&&!c.hasPrecedingLineBreak()}function Ei(){return He(),99===qe()&&!c.hasPrecedingLineBreak()}function ki(){return He(),(e.tokenIsIdentifierOrKeyword(qe())||8===qe()||9===qe()||10===qe())&&!c.hasPrecedingLineBreak()}function Ai(){for(;;)switch(qe()){case 114:case 120:case 86:case 99:case 84:case 93:return!0;case 85:return Pe();case 119:case 155:return He(),!c.hasPrecedingLineBreak()&&st();case 143:case 144:return Ri();case 127:case 128:case 133:case 137:case 122:case 123:case 124:case 147:if(He(),c.hasPrecedingLineBreak())return!1;continue;case 160:return He(),18===qe()||79===qe()||94===qe();case 101:return He(),10===qe()||41===qe()||18===qe()||e.tokenIsIdentifierOrKeyword(qe());case 94:var t=He();if(155===t&&(t=it(He)),63===t||41===t||18===t||89===t||129===t)return!0;continue;case 125:He();continue;default:return!1}}function Ni(){return it(Ai)}function Fi(){switch(qe()){case 59:case 26:case 18:case 114:case 120:case 99:case 84:case 93:case 100:case 91:case 116:case 98:case 87:case 81:case 106:case 117:case 108:case 110:case 112:case 88:case 83:case 97:case 133:case 137:case 119:case 143:case 144:case 155:case 160:return!0;case 85:return Pe();case 101:return Ni()||it(Wr);case 86:case 94:return Ni();case 128:case 124:case 122:case 123:case 125:case 147:return Ni()||!it(Ti);default:return En()}}function wi(){return He(),ot()||18===qe()||22===qe()}function Pi(){switch(qe()){case 26:return t=Ke(),r=We(),ct(26),Y(Et(R.createEmptyStatement(),t),r);case 18:return hi(!1);case 114:return $i(Ke(),We(),void 0,void 0);case 120:if(it(wi))return $i(Ke(),We(),void 0,void 0);break;case 99:return Gi(Ke(),We(),void 0,void 0);case 85:if(Pe())return da(Ke(),We(),void 0,void 0);break;case 84:return ua(Ke(),We(),void 0,void 0);case 100:return function(){var e=Ke(),t=We();ct(100);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=Pi(),o=ht(92)?Pi():void 0;return Y(Et(R.createIfStatement(i,a,o),e),t)}();case 91:return function(){var e=Ke(),t=We();ct(91);var r=Pi();ct(116);var n=c.getTokenPos(),i=ct(20),a=ve(kn);return mt(20,21,i,n),ht(26),Y(Et(R.createDoStatement(r,a),e),t)}();case 116:return function(){var e=Ke(),t=We();ct(116);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=Pi();return Y(Et(R.createWhileStatement(i,a),e),t)}();case 98:return vi();case 87:return bi(250);case 81:return bi(251);case 106:return function(){var e=Ke(),t=We();ct(106);var r=Dt()?void 0:ve(kn);return Tt(),Y(Et(R.createReturnStatement(r),e),t)}();case 117:return function(){var e=Ke(),t=We();ct(117);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=ye(33554432,Pi);return Y(Et(R.createWithStatement(i,a),e),t)}();case 108:return Di();case 110:return function(){var e=Ke(),t=We();ct(110);var r=c.hasPrecedingLineBreak()?void 0:ve(kn);return void 0===r&&(k++,r=Et(R.createIdentifier(""),Ke())),St()||_t(r),Y(Et(R.createThrowStatement(r),e),t)}();case 112:case 83:case 97:return Si();case 88:return function(){var e=Ke(),t=We();return ct(88),Tt(),Y(Et(R.createDebuggerStatement(),e),t)}();case 59:return Oi();case 133:case 119:case 155:case 143:case 144:case 137:case 86:case 93:case 94:case 101:case 122:case 123:case 124:case 127:case 128:case 125:case 147:case 160:if(Ni())return Oi()}var t,r;return function(){var t,r=Ke(),n=We(),i=20===qe(),a=ve(kn);return e.isIdentifier(a)&&ht(58)?t=R.createLabeledStatement(a,Pi()):(St()||_t(a),t=R.createExpressionStatement(a),i&&(n=!1)),Y(Et(t,r),n)}()}function Ii(e){return 137===e.kind}function Oi(){var t,r,n=Ke(),i=We(),a=ia();if(99===qe()||94===qe())if(e.hasEtsExtendDecoratorNames(a,h)){var o=e.getEtsExtendDecoratorsComponentNames(a,h);o.length>0&&(null===(t=h.ets)||void 0===t||t.extend.components.forEach((function(t){var r=t.name,n=t.type,i=t.instance;r===e.last(o)&&(P={name:r,type:n,instance:i})}))),pe(!!P)}else if(e.hasEtsStylesDecoratorNames(a,h)){e.getEtsStylesDecoratorComponentNames(a,h).length>0&&(I=null===(r=h.ets)||void 0===r?void 0:r.styles.component),_e(!!I)}else ue(e.isTokenInsideBuilder(a,h));var s=sa();if(e.some(s,Ii)){var c=function(e){return ye(16777216,(function(){var t=tr(A,e);if(t)return rr(t)}))}(n);if(c)return c;for(var l=0,u=s;l0&&(I=null===(g=h.ets)||void 0===g?void 0:g.styles.component),_e(!!I));var b=Oe();ue(Ie()&&(function(e){var t,r,n,i,a=null!==(i=null===(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.render)||void 0===r?void 0:r.method)||void 0===n?void 0:n.find((function(e){return"build"===e})))&&void 0!==i?i:"build";return 79===e.kind&&e.escapedText===a}(o)||function(t){return e.isTokenInsideBuilder(t,h)}(n)||function(e){var t,r,n,i,a=null!==(i=null===(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.render)||void 0===r?void 0:r.method)||void 0===n?void 0:n.find((function(e){return"pageTransition"===e})))&&void 0!==i?i:"pageTransition";return 79===e.kind&&e.escapedText===a}(o)));var x=a?1:0,D=e.some(i,e.isAsyncModifier)?2:0,S=Le()&&I?Ar(t):kr(),T=Mr(x|D),C=c.getStartPos(),E=function(){var e=Ir(58,!1);!e&&I&&Le()&&(e=va(R.createTypeReferenceNode(va(R.createIdentifier(I.type),C,C)),C,C));return e}(),k=Bi(x|D,u),A=R.createMethodDeclaration(oa(n,i),a,o,s,S,T,E,k);return A.exclamationToken=l,fe(y),ge(v),_e(!1),I=void 0,ue(b),Y(Et(A,t),r)}function Xi(t,r,n,i,a,o){var s=o||c.hasPrecedingLineBreak()?void 0:yt(53),l=Tn(),u=he(45056,An);return function(t,r,n){if(59!==qe()||c.hasPrecedingLineBreak())return 20===qe()?(we(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void He()):void(!r||Dt()?St()||(n?we(e.Diagnostics._0_expected,e.tokenToString(26)):_t(t)):n?we(e.Diagnostics._0_expected,e.tokenToString(26)):we(e.Diagnostics.Expected_for_property_initializer));we(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(a,l,u),Y(Et(R.createPropertyDeclaration(oa(n,i),a,o||s,l,u),t),r)}function Yi(t,r,n,i){var a=yt(41),o=Mt(),s=yt(57);return a||20===qe()||29===qe()?Qi(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):Xi(t,r,n,i,o,s)}function Zi(t,r,n,i,a,o){var s=Mt(),c=kr(),l=Mr(0),u=Ir(58,!1),d=Bi(o),p=175===a?R.createGetAccessorDeclaration(oa(n,i),s,l,u,d):R.createSetAccessorDeclaration(oa(n,i),s,l,d);return p.typeParameters=c,e.isSetAccessorDeclaration(p)&&(p.type=u),Y(Et(p,t),r)}function ea(){var t;if(59===qe())return!0;for(;e.isModifierKind(qe());){if(t=qe(),e.isClassMemberModifier(t))return!0;He()}if(41===qe())return!0;if(It()&&(t=qe(),He()),22===qe())return!0;if(void 0!==t){if(!e.isKeyword(t)||152===t||138===t)return!0;switch(qe()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Dt()}}return!1}function ta(e,t,r,n){bt(125);var i=function(){var e=Ee(),t=Fe();oe(!1),ce(!0);var r=hi(!1);return oe(e),ce(t),r}(),a=Y(Et(R.createClassStaticBlockDeclaration(i),e),t);return a.illegalDecorators=r,a.modifiers=n,a}function ra(){if(Fe()&&134===qe()){var t=Ke(),r=wt(e.Diagnostics.Expression_expected);return He(),oi(t,ni(t,r,!0))}return Wn()}function na(){var e=Ke();if(ht(59)){var t=function(e){var t,r,n,i,a,o,s=null!==(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.extend)||void 0===r?void 0:r.decorator)&&void 0!==n?n:"Extend";79===qe()&&c.getTokenText()===s&&ie(!0,4);var l=null!==(o=null===(a=null===(i=h.ets)||void 0===i?void 0:i.styles)||void 0===a?void 0:a.decorator)&&void 0!==o?o:"Styles";return 79===qe()&&c.getTokenText()===l&&ie(!0,8),ye(16384,e)}(ra);return Et(R.createDecorator(t),e)}}function ia(){for(var t,r,n=Ke();r=na();)t=e.append(t,r);return t&&Ct(t,n)}function aa(t,r,n){var i=Ke(),a=qe();if(86===qe()&&t){if(!at(Bt))return}else{if(r&&125===qe()&&it(Ca))return;if(n&&125===qe())return;if(!e.isModifierKind(qe())||!at(jt))return}return Et(R.createToken(a),i)}function oa(t,r){if(!t)return r;if(!r)return t;var n=R.createNodeArray(e.concatenate(t,r));return e.setTextRangePosEnd(n,t.pos,r.end),n}function sa(t,r){for(var n,i,a=Ke(),o=!1;i=aa(t,r,o);)125===i.kind&&(o=!0),n=e.append(n,i);return n&&Ct(n,a)}function ca(){var e;if(133===qe()){var t=Ke();He(),e=Ct([Et(R.createToken(133),t)],t)}return e}function la(){var t=Ke();if(26===qe())return He(),Et(R.createSemicolonClassElement(),t);var r=We(),n=ia(),i=sa(!0,!0);if(125===qe()&&it(Ca))return ta(t,r,n,i);if(Rt(138))return Zi(t,r,n,i,175,0);if(Rt(152))return Zi(t,r,n,i,176,0);if(136===qe()||10===qe()){var a=Hi(t,r,n,i);if(a)return a}if(Br())return Jr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(qe())||10===qe()||8===qe()||41===qe()||22===qe()){if(e.some(i,Ii)){for(var o=0,s=i;o=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),_(a,t)){var s,l,u,p,g,m=[],h=[];return c.scanRange(t+3,i-5,(function(){var r,n=1,i=t-(a.lastIndexOf("\n",t)+1)+4;function d(e){r||(r=i),m.push(e),i+=e.length}for(Qe();q(5););q(4)&&(n=0,i=0);e:for(;;){switch(qe()){case 59:0===n||1===n?(v(m),g||(g=Ke()),w(S(i)),n=0,r=void 0):d(c.getTokenText());break;case 4:m.push(c.getTokenText()),n=0,i=0;break;case 41:var _=c.getTokenText();1===n||2===n?(n=2,d(_)):(n=1,i+=_.length);break;case 5:var f=c.getTokenText();2===n?m.push(f):void 0!==r&&i+f.length>r&&m.push(f.slice(r-i)),i+=f.length;break;case 1:break e;case 18:n=2;var b=c.getStartPos(),x=A(c.getTextPos()-1);if(x){p||y(m),h.push(Et(R.createJSDocText(m.join("")),null!=p?p:t,b)),h.push(x),m=[],p=c.getTextPos();break}default:n=2,d(c.getTokenText())}Qe()}v(m),h.length&&m.length&&h.push(Et(R.createJSDocText(m.join("")),null!=p?p:t,g)),h.length&&s&&e.Debug.assertIsDefined(g,"having parsed tags implies that the end of the comment span should be set");var D=s&&Ct(s,l,u);return Et(R.createJSDocComment(h.length?Ct(h,t,g):m.length?m.join(""):void 0,D),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(Qe(),1===qe())return!0;if(5!==qe()&&4!==qe())return!1}}function x(){if(5!==qe()&&4!==qe()||!it(b))for(;5===qe()||4===qe();)Qe()}function D(){if((5===qe()||4===qe())&&it(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===qe()||5===qe()||4===qe();)r+=c.getTokenText(),4===qe()?(e=!0,t=!0,r=""):41===qe()&&(e=!1),Qe();return t?r:""}function S(t){e.Debug.assert(59===qe());var i=c.getTokenPos();Qe();var a,o=$(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=Ke(),o=function(){var e=[],t=!1,r=c.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=Qe()}return R.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?Ct(e.concatenate([Et(o,a,s)],l),a):o.text+l;return Et(R.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=B();return Et(R.createJSDocImplementsTag(t,i,T(e,Ke(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=B();return Et(R.createJSDocAugmentsTag(t,i,T(e,Ke(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=j(i,R.createJSDocClassTag,o,t,l);break;case"public":a=j(i,R.createJSDocPublicTag,o,t,l);break;case"private":a=j(i,R.createJSDocPrivateTag,o,t,l);break;case"protected":a=j(i,R.createJSDocProtectedTag,o,t,l);break;case"readonly":a=j(i,R.createJSDocReadonlyTag,o,t,l);break;case"override":a=j(i,R.createJSDocOverrideTag,o,t,l);break;case"deprecated":Z=!0,a=j(i,R.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),Et(R.createJSDocThisTag(t,a,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),Et(R.createJSDocEnumTag(t,a,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return M(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&Ue(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=P();return Et(R.createJSDocReturnTag(r,a,T(t,Ke(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===qe()?r():void 0,o=function(){var e=Ke(),t=[];do{x();var r=W();void 0!==r&&t.push(r),D()}while(q(27));return Ct(t,e)}();return Et(R.createJSDocTemplateTag(t,a,o,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"type":a=L(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=P();D();var s=J();x();var c,l=C(n);if(!o||O(o.type)){for(var u=void 0,p=void 0,_=void 0,f=!1;u=at((function(){return z(n)}));)if(f=!0,349===u.kind){if(p){var g=we(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=u}else _=e.append(_,u);if(f){var m=o&&186===o.type.kind,h=R.createJSDocTypeLiteral(_,m);c=(o=p&&p.typeExpression&&!O(p.typeExpression.type)?p.typeExpression:Et(h,t)).end}}c=c||void 0!==l?Ke():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i));var y=R.createJSDocTypedefTag(r,o,s,l);return Et(y,t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=J();x();var o=C(n),s=function(t){var r,n,i=Ke();for(;r=at((function(){return V(4,t)}));)n=e.append(n,r);return Ct(n||[],i)}(n),c=at((function(){if(q(59)){var e=S(n);if(e&&347===e.kind)return e}})),l=Et(R.createJSDocSignature(void 0,s,c),t);o||(o=T(t,Ke(),n,i));var u=void 0!==o?Ke():l.end;return Et(R.createJSDocCallbackTag(r,l,a,o),t,u)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=22===qe()||it((function(){return 59===Qe()&&e.tokenIsIdentifierOrKeyword(Qe())&&F(c.getTokenValue())}))?void 0:n(),s=void 0!==i&&void 0!==a?T(t,Ke(),i,a):void 0;return Et(R.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return Et(R.createJSDocUnknownTag(t,T(e,Ke(),r,n)),e)}(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),C(r,n.slice(r))}function C(e,t){var r,n,i=Ke(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var d=qe();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||it(E))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var p=c.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:s=2;var _=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(Et(R.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===qe(),d=Qe()}return y(a),v(a),o.length?(a.length&&o.push(Et(R.createJSDocText(a.join("")),null!=r?r:i)),Ct(o,i,c.getTextPos())):a.length?a.join(""):void 0}function E(){var e=Qe();return 5===e||4===e}function A(t){var r=at(N);if(r){Qe(),x();var n=Ke(),i=e.tokenIsIdentifierOrKeyword(qe())?cr(!0):void 0;if(i)for(;80===qe();)et(),Qe(),i=Et(R.createJSDocMemberName(i,wt()),n);for(var a=[];19!==qe()&&4!==qe()&&1!==qe();)a.push(c.getTokenText()),Qe();return Et(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(D(),18===qe()&&59===Qe()&&e.tokenIsIdentifierOrKeyword(Qe())){var t=c.getTokenValue();if(F(t))return t}}function F(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(e){e&&(s?s.push(e):(s=[e],l=e.pos),u=e.end)}function P(){return D(),18===qe()?r():void 0}function I(){var t=q(22);t&&x();var r,n=q(61),i=function(){var e=$();ht(22)&&ct(23);for(;ht(24);){var t=$();ht(22)&&ct(23),e=lr(e,t)}return e}();return n&&(vt(r=61)||kt(r,!1,e.Diagnostics._0_expected,e.tokenToString(r))),t&&(x(),yt(63)&&kn(),ct(23)),{name:i,isBracketed:t}}function O(t){switch(t.kind){case 150:return!0;case 186:return O(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function M(t,r,n,i){var a=P(),o=!a;D();var s=I(),c=s.name,l=s.isBracketed,u=D();o&&!it(N)&&(a=P());var d=T(t,Ke(),i,u),p=4!==n&&function(t,r,n,i){if(t&&O(t.type)){for(var a=Ke(),o=void 0,s=void 0;o=at((function(){return V(n,i,r)}));)346!==o.kind&&353!==o.kind||(s=e.append(s,o));if(s){var c=Et(R.createJSDocTypeLiteral(s,186===t.type.kind),a);return Et(R.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return p&&(a=p,o=!0),Et(1===n?R.createJSDocPropertyTag(r,c,l,a,o,d):R.createJSDocParameterTag(r,c,l,a,o,d),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&Ue(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,Ke(),i,a):void 0;return Et(R.createJSDocTypeTag(n,o,l),t)}function B(){var e=ht(18),t=Ke(),r=function(){var e=Ke(),t=$();for(;ht(24);){var r=$();t=Et(R.createPropertyAccessExpression(t,r),e)}return t}(),n=ha(),i=Et(R.createExpressionWithTypeArguments(r,n),t);return e&&ct(19),i}function j(e,t,r,n,i){return Et(t(r,T(e,Ke(),n,i)),e)}function J(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(qe())){var n=$();if(ht(24)){var i=J(!0);return Et(R.createModuleDeclaration(void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function U(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function z(e){return V(1,e)}function V(t,r,n){for(var i=!0,a=!1;;)switch(Qe()){case 59:if(i){var o=K(t,r);return!(o&&(346===o.kind||353===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!U(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function K(t,r){e.Debug.assert(59===qe());var n=c.getStartPos();Qe();var i,a=$();switch(x(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&M(n,a,t,r)}function W(){var t=Ke(),r=q(22);r&&x();var n,i=$(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),ct(63),n=ye(8388608,Cr),ct(23)),!e.nodeIsMissing(i))return Et(R.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function q(e){return qe()===e&&(Qe(),!0)}function $(t){if(!e.tokenIsIdentifierOrKeyword(qe()))return kt(79,!t,t||e.Diagnostics.Identifier_expected);k++;var r=c.getTokenPos(),n=c.getTextPos(),i=qe(),a=At(c.getTokenValue()),o=Et(R.createIdentifier(a,void 0,i),r,n);return Qe(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){G("file.js",t,99,void 0,1),c.setText(t,n,i),S=c.scan();var a=r(),o=re("file.js",99,1,!1,[],R.createToken(1),0,e.noop),s=e.attachFileToDiagnostics(b,o);return x&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(x,o)),H(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){G("",t,99,void 0,1);var i=ye(8388608,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(b,a);return H(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=S,a=b.length,s=K,c=ye(8388608,(function(){return o(r,n)}));return e.setParent(c,t),262144&F&&(x||(x=[]),x.push.apply(x,b)),S=i,b.length=a,K=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(dt=t.JSDocParser||(t.JSDocParser={}))}(y||(y={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),R(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var l=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-i);return e.createTextChangeRange(l,u)}(t,l);s(t,n,f,u),e.Debug.assert(f.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(f.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(f))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var g=e.textChangeRangeNewSpan(f).length-f.span.length;!function(t,n,o,s,c,l,u,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var f=t.end;if(f>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),R(t,p,_),e.hasJSDocNodes(t))for(var g=0,m=t.jsDoc;go)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_i){h();var m={range:{pos:f.pos+a,end:f.end+a},type:g};l=e.append(l,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return h(),l;function h(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,m.commentDirectives,f.span.start,e.textSpanEnd(f.span),g,p,n,u),m.impliedNodeFormat=t.impliedNodeFormat,m},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(v||(v={})),e.isDeclarationFileName=U,e.processCommentPragmas=z,e.processPragmasIntoFields=V;var K=new e.Map;function W(e){if(K.has(e))return K.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return K.set(e,t),t}var q=/^\/\/\/\s*<(\S+)\s.*?\/>/im,$=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function G(t,r,n){var i=2===r.kind&&q.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function v(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=me(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=me(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=me(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=me(i,t[r]||"",o),r++;break;case"list":var c=g(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return x(c,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function D(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=f,e.parseListTypeOption=g,e.parseCommandLineWorker=y,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return y(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function C(t,r){var n=E(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function E(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,m)}e.parseBuildCommand=function(t){var r=y(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(i([],c,!0),[p],!1).join(" -> "))),{raw:t||J(r,l)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=le(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return pe(R(),e,t,void 0,M,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=_e(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,n):n;o=se(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,s,l):function(t,r,n,i,a){var s,c,l,u,d,p=ce(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(i));break;case"typingOptions":o=c||(c=ue(i));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){if("extends"!==o);else{var d=i?te(i,n):n;u=se(c,r,d,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,s){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(o,(function(e){return e.name===r}))&&(d=e.append(d,n))}},f=j(t,a,!0,_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(i));d&&f&&void 0===f.compilerOptions&&a.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0])));return{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(r,n,a,s,l);if((null===(d=_.options)||void 0===d?void 0:d.paths)&&(_.options.pathsBasePath=a),_.extendedConfigPath){c=c.concat([p]);var f=function(t,r,n,i,a,o){var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=C(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u}));t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles));if(l.parseDiagnostics.length)return void a.push.apply(a,l.parseDiagnostics);return u}(r,_.extendedConfigPath,n,c,l,u);if(f&&f.options){var g,m=f.raw,h=_.raw,y=function(t){!h[t]&&m[t]&&(h[t]=e.map(m[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(g||(g=e.convertToRelativePath(e.getDirectoryPath(_.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};y("include"),y("exclude"),y("files"),void 0===h.compileOnSave&&(h.compileOnSave=m.compileOnSave),_.options=e.assign({},f.options,_.options),_.watchOptions=_.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,_.watchOptions):_.watchOptions||f.watchOptions}}return _}function se(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return pe(L(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=ue(n),a=d(e);return pe(B(),a,t,i,N,r),i}function pe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=_e(c,r[s],n,o):o.push(h(s,a,e.createCompilerDiagnostic))}return i}}function _e(t,r,n,i){if(V(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return _e(t.element,e,n,i)})),(function(e){return!!t.listPreserveFalsyValues||!!e}))}(t,r,n,i);if(!e.isString(a))return he(t,r,i);var o=me(t,r,i);return ee(o)?o:ge(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return fe(i.element,r,e)})),(function(e){return!!i.listPreserveFalsyValues||!!e})):n}return e.isString(t.type)?ge(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function ge(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function me(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function he(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return me(e,i,r);r.push(p(e))}}e.convertToObject=J,e.convertToObjectWorker=U,e.convertToTSConfig=function(t,r,n){var i,o,s,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),d=t.watchOptions&&H(t.watchOptions,F());return a(a({compilerOptions:a(a({},K(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&K(d),references:e.map(t.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:W(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getNameOfCompilerOptionValue=$,e.getCompilerOptionsDiffValue=function(t,r){var n,i,a,s=Q(t);return n=[],a=2,i=Array(a+1).join(" "),o.forEach((function(t){if(s.has(t.name)){var r=s.get(t.name),a=Ae(t);r!==a?n.push("".concat(i).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(i).concat(t.name,": ").concat(a))}})),n.join(r)+r},e.generateTSConfig=function(t,r,n){var i=Q(t);return function(){var t=new e.Map;t.set(e.Diagnostics.Projects,[]),t.set(e.Diagnostics.Language_and_Environment,[]),t.set(e.Diagnostics.Modules,[]),t.set(e.Diagnostics.JavaScript_Support,[]),t.set(e.Diagnostics.Emit,[]),t.set(e.Diagnostics.Interop_Constraints,[]),t.set(e.Diagnostics.Type_Checking,[]),t.set(e.Diagnostics.Completeness,[]);for(var s=0,c=e.optionDeclarations;s0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^".concat(e,"$")}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(function(t,r,n,i,a){var o=e.forEach(i,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(!o)return!1;for(var s=0,c=o;s=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}}(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},x=0,D=i.readDirectory(r,e.flatten(g),_,p,void 0);xr}function De(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Te(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Te(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:xe(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function k(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return C(n,a,o,(function(){return A()}))},clear:function(){n.clear()},update:function(e){E(e,n)}}}function A(){var t=new e.Map,r=new e.Map,n={get:function(e,r){return t.get(i(e,r))},set:function(e,r,a){return t.set(i(e,r),a),n},delete:function(e,r){return t.delete(i(e,r)),n},has:function(e,r){return t.has(i(e,r))},forEach:function(e){return t.forEach((function(t,n){var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)}))},size:function(){return t.size}};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function N(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n)){return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),_e(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(s)<=e.ModuleResolutionKind.NodeNext&&t(l,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,n&d.EsmMode?"ESM":"CJS",b.map((function(e){return"'".concat(e,"'")})).join(", "));var T=e.forEach(p,(function(r){return function(r){var p=function(e,t,r,n){return j(e,t,r,n,!0)},_=e.isOhpm(s.packageManagerType),g=N(r,i,o,p,S);if(g)return ve({resolved:g,isExternalLibraryImport:_?e.pathContainsOHModules(g.path):J(g.path)});if(e.isExternalModuleNameRelative(i)){var m=R(o,i),y=m.path,v=m.parts,b=j(r,y,!1,S,!0);return b&&ve({resolved:b,isExternalLibraryImport:e.contains(v,e.getModuleByPMType(s.packageManagerType))})}var D;if(n&d.Imports&&e.startsWith(i,"#")&&(D=function(r,n,i,a,o,s){var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),ve(void 0);var u=e.getNormalizedAbsolutePath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c)),d=Z(u,a);if(!d)return a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),ve(void 0);if(!d.contents.packageJsonContent.imports)return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,d.packageDirectory),ve(void 0);var p=oe(r,a,o,s,n,d.contents.packageJsonContent.imports,d,!0);if(p)return p;a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,d.packageDirectory);return ve(void 0)}(r,i,o,S,u,f)),!D&&n&d.SelfName&&(D=function(t,r,n,i,a,o){var s,c,l=e.getNormalizedAbsolutePath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s)),u=Z(l,i);if(!u||!u.contents.packageJsonContent.exports)return;if("string"!=typeof u.contents.packageJsonContent.name)return;var d=e.getPathComponents(r),p=e.getPathComponents(u.contents.packageJsonContent.name);if(!e.every(p,(function(e,t){return d[t]===e})))return;var _=d.slice(p.length);return ie(u,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}(r,i,o,S,u,f)),!D){if(h){var T=_?e.Diagnostics.Loading_module_0_from_oh_modules_folder_target_file_type_1:e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1;t(l,T,i,c[r])}D=le(r,i,o,S,u,f)}if(!D)return;var C=D.value;if(!s.preserveSymlinks&&C&&!C.originalPath){var E=B(C.path,l,h),k=x(E,C.path,l),A=k?void 0:C.path;C=a(a({},C),{path:k?C.path:E,originalPath:A})}return{value:C&&{resolved:C,isExternalLibraryImport:!0}}}(r)}));return _(null===(g=null==T?void 0:T.value)||void 0===g?void 0:g.resolved,null===(m=null==T?void 0:T.value)||void 0===m?void 0:m.isExternalLibraryImport,y,v,D,S.resultFromCache)}function R(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function B(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function j(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=K(r,i,a,o);if(u){var p=s?U(u.path,o.compilerOptions.packageManagerType):void 0;return n(p?ee(p,!1,o):void 0,u)}}a||(e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0));if(!(o.features&d.EsmMode))return Q(r,i,a,o,s)}function J(t){return e.stringContains(t,e.nodeModulesPathPart)}function U(t,r){var n=e.getModulePathPartByPMType(r),i=e.normalizePath(t),a=i.lastIndexOf(n);if(-1!==a){var o=a+n.length,s=z(i,o);return 64===i.charCodeAt(o)&&(s=z(i,s)),i.slice(0,s)}}function z(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function V(e,t,r,n){return o(K(e,t,r,n))}function K(t,r,n,i){if(t===c.Json||t===c.TSConfig){var a=e.tryRemoveExtension(r,".json"),o=a?r.substring(a.length):"";return void 0===a&&t===c.Json?void 0:$(a||r,t,o,n,i)}if(!(i.features&d.EsmMode)){var s=$(r,t,"",n,i);if(s)return s}return W(t,r,n,i)}function W(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),$(o,r,s,i,a)}}function q(t,r,n,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?W(t,r,n,i):void 0!==G(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function $(t,r,n,i,a){if(!i){var o=e.getDirectoryPath(t);o&&(i=!e.directoryProbablyExists(o,a.host))}switch(r){case c.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return a.compilerOptions.ets&&l(".d.ets")||l(".d.ts")}case c.TypeScript:case c.TsOnly:var s=r===c.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(s?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(s?l(".d.cts"):void 0);case".json":return t+=".json",s?l(".d.ts"):void 0;default:return a.compilerOptions.ets?l(".ets")||l(".ts")||l(".tsx")||(s?l(".d.ets")||l(".d.ts"):void 0):l(".ts")||l(".tsx")||(s?l(".d.ts")||l(".ets")||l(".d.ets"):void 0)}case c.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case c.TSConfig:case c.Json:return l(".json")}function l(e){var r=G(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function G(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return H(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(function(e){return H(s+e+o,r,n)}))}function H(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function Q(e,t,r,i,a){void 0===a&&(a=!0);var o=a?ee(t,r,i):void 0;return n(o,te(e,t,r,i,o&&o.contents.packageJsonContent,o&&o.contents.versionPaths))}function X(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0||c.indexOf("oh_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,r),d=e.getNormalizedAbsolutePath(u,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=q(i,d,!1,n);if(p)return a=e.appendIfUnique(a,p,(function(e,t){return e.path===t.path})),!0}else if(Array.isArray(r))for(var _=0,f=r;_0;){var i=ee(e.getPathFromPathComponents(n),!1,r);if(i)return i;n.pop()}}function ee(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,d=e.combinePaths(r,e.getPackageJsonByPMType(i.compilerOptions.packageManagerType));if(n)i.failedLookupLocations.push(d);else{var p=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(d);if(void 0!==p)return"boolean"!=typeof p?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,d),i.affectingLocations.push(d),p.packageDirectory===r?p:{packageDirectory:r,contents:p.contents}):(p&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,d),void i.failedLookupLocations.push(d));var _=e.directoryProbablyExists(r,c);if(_&&c.fileExists(d)){var f=e.isOhpm(i.compilerOptions.packageManagerType),g=f?u.parse(c.readFile(d)):e.readJson(d,c);if(l)t(c,f?e.Diagnostics.Found_oh_package_json5_at_0:e.Diagnostics.Found_package_json_at_0,d);var m={packageDirectory:r,contents:{packageJsonContent:g,versionPaths:y(g,i),resolvedEntrypoints:void 0}};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(d,m),i.affectingLocations.push(d),m}_&&l&&t(c,e.Diagnostics.File_0_does_not_exist,d),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(d,_),i.failedLookupLocations.push(d)}}function te(r,n,i,a,l,u){var p;if(l)switch(r){case c.JavaScript:case c.Json:case c.TsOnly:p=h(l,n,a);break;case c.TypeScript:p=m(l,n,a)||h(l,n,a);break;case c.DtsOnly:p=m(l,n,a);break;case c.TSConfig:p=function(e,t,r){return g(e,"tsconfig",t,r)}(l,n,a);break;default:return e.Debug.assertNever(r)}var _=function(r,n,i,a){var s=G(n,i,a);if(s){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t||".ets"===t||".d.ets"===t;case c.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".ets"===t;case c.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t||".d.ets"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(u)return o(u);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var p=r===c.DtsOnly?c.TypeScript:r,_=a.features;"module"!==(null==l?void 0:l.type)&&(a.features&=~d.EsmMode);var f=j(p,n,i,a,!1);return a.features=_,f},f=p?!e.directoryProbablyExists(e.getDirectoryPath(p),a.host):void 0,y=i||!e.directoryProbablyExists(n,a.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(u&&(!p||e.containsPath(n,p))){var b=e.getRelativePathFromDirectory(n,p||v,!1);a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var x=_e(r,b,n,u.paths,void 0,_,f||y,a);if(x)return s(x.value)}var D=p&&s(_(r,p,f,a));return D||(a.features&d.EsmMode?void 0:K(r,v,y,a))}function re(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function ne(t){return e.every(e.getOwnKeys(t),(function(t){return e.startsWith(t,".")}))}function ie(r,n,i,a,o,s){if(r.contents.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.contents.packageJsonContent.exports||Array.isArray(r.contents.packageJsonContent.exports)||"object"==typeof r.contents.packageJsonContent.exports&&(u=r.contents.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(function(t){return e.startsWith(t,".")})))?c=r.contents.packageJsonContent.exports:e.hasProperty(r.contents.packageJsonContent.exports,".")&&(c=r.contents.packageJsonContent.exports["."]),c)return se(n,a,o,s,i,r,!1)(c,"",!1,".")}else if(ne(r.contents.packageJsonContent.exports)){if("object"!=typeof r.contents.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0);var l=oe(n,a,o,s,i,r.contents.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0)}}function ae(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function oe(t,r,n,i,a,o,s,c){var l=se(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(f=o[a],"",!1,a);for(var u=0,p=e.sort(e.filter(e.getOwnKeys(o),(function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")})),ae);u0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var m=f?p.replace(/\*/g,_):p+_;return be(i,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",g,m),be(i,e.Diagnostics.Resolving_module_0_from_1,m,l.packageDirectory+"/"),ve((A=L(i.features,m,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],o)).resolvedModule?{path:A.resolvedModule.resolvedFileName,extension:A.resolvedModule.extension,packageId:A.resolvedModule.packageId,originalPath:A.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0)}var h=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0||h.indexOf("oh_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);var y=e.combinePaths(l.packageDirectory,p),v=e.getPathComponents(_);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0||v.indexOf("oh_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);i.traceEnabled&&t(i.host,e.Diagnostics.Using_0_subpath_1_with_target_2,u?"imports":"exports",g,f?p.replace(/\*/g,_):p+_);var b=F(f?y.replace(/\*/g,_):y+_),x=function(t,a,o,s){var u,d,p,_;if((r===c.TypeScript||r===c.JavaScript||r===c.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&-1===t.indexOf("/oh_modules/")&&(!i.compilerOptions.configFile||e.containsPath(l.packageDirectory,F(i.compilerOptions.configFile.fileName),!P()))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:P}),g=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var m=F(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[]}),(null===(d=(u=i.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",f));g.push(m)}else if(i.requestContainingDirectory){var h=F(e.combinePaths(i.requestContainingDirectory,"index.ts"));m=F(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[h,F(o)]}),(null===(_=(p=i.host).getCurrentDirectory)||void 0===_?void 0:_.call(p))||"",f));g.push(m);for(var y=e.ensureTrailingDirectorySeparator(m);y&&y.length>1;){var v=e.getPathComponents(y);v.pop();var b=e.getPathFromPathComponents(v);g.unshift(b),y=e.ensureTrailingDirectorySeparator(b)}}g.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(s?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,o));for(var x=0,D=g;x=0||ce(i.conditions,T)){be(i,e.Diagnostics.Matched_0_condition_1,u?"imports":"exports",T);var C=p[T];if(A=d(C,_,f,g))return A}else be(i,e.Diagnostics.Saw_non_matching_condition_0,T)}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);for(var E=0,k=p;E=0}function o(t){return e.endsWith(t,"/oh_modules")}function s(t){return e.stringContains(t,e.ohModulesPathPart)}function c(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isCallExpression(o)&&e.isIdentifier(o.expression)&&(null===(a=null===(i=r.ets)||void 0===i?void 0:i.extend.decorator)||void 0===a?void 0:a.includes(o.expression.escapedText.toString()))&&n.push(o.expression.escapedText.toString())})),0!==n.length)}function l(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.styles)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function u(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.render)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function d(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.concurrent)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function p(t){var r=e.getAncestor(t,208);return void 0!==r&&void 0!==r.parent&&e.isPropertyAssignment(r.parent)}function _(t){var r,n,i=t.getEmitResolver();return function(r){if(r.isDeclarationFile)return r;return e.factory.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,a,t))};function a(s){switch(s.kind){case 272:return function(t){if(!t.importClause||t.importClause.isTypeOnly)return t;d();var n=[],i=e.visitNode(t.importClause,o,e.isImportClause);i&&n.push(e.factory.updateImportDeclaration(t,void 0,i,t.moduleSpecifier,void 0));for(var a=function(){var t,n=r.name;r.namespaceImport?t=r.namespaceImport:r.namedImports.length>0&&(t=e.factory.createNamedImports(r.namedImports));var i=[];void 0!==n&&i.push(e.factory.createImportClause(!0,n,void 0));void 0!==t&&i.push(e.factory.createImportClause(!0,void 0,t));return d(),i}(),s=0,c=a;s0?n:void 0}(s);case 271:return function(t){if(t.isTypeOnly)return t;if(e.isExternalModuleImportEqualsDeclaration(t)){return i.isReferencedAliasDeclaration(t)?t:i.isReferenced(t)?e.factory.updateImportEqualsDeclaration(t,t.modifiers,!0,t.name,t.moduleReference):void 0}return t}(s);case 278:return function(t){if(t.isTypeOnly||!t.exportClause||e.isNamespaceExport(t.exportClause))return t;p();var r=[],i=e.visitNode(t.exportClause,l,e.isNamedExportBindings);i&&r.push(e.factory.updateExportDeclaration(t,void 0,t.isTypeOnly,i,t.moduleSpecifier,void 0));var a=function(){var t;n.namedExports.length>0&&(t=e.factory.createNamedExports(n.namedExports));return p(),t}();a&&r.push(e.factory.createExportDeclaration(void 0,!0,a,t.moduleSpecifier));return r.length>0?r:void 0}(s);case 209:case 210:return function(r){var n=i.getConstantValue(r);if(void 0!==n){return"string"==typeof n?e.factory.createStringLiteral(n):e.factory.createNumericLiteral(n)}return e.visitEachChild(r,a,t)}(s);case 305:return function(r){var n=i.getConstantValue(r);if(void 0!==n){var o="string"==typeof n?e.factory.createStringLiteral(n):e.factory.createNumericLiteral(n);return e.factory.updateEnumMember(r,r.name,o)}return e.visitEachChild(r,a,t)}(s);default:return e.visitEachChild(s,a,t)}}function o(t){if(t.isTypeOnly)return t;var n;i.isReferencedAliasDeclaration(t)?n=t.name:i.isReferenced(t)&&function(e){r.name=e.name}(t);var a=e.visitNode(t.namedBindings,s,e.isNamedImportBindings);return n||a?e.factory.updateImportClause(t,!1,n,a):void 0}function s(t){if(274===t.kind)return i.isReferencedAliasDeclaration(t)?t:void(i.isReferenced(t)&&function(e){r.namespaceImport=e}(t));var n=e.visitNodes(t.elements,c,e.isImportSpecifier);return e.some(n)?e.factory.updateNamedImports(t,n):void 0}function c(e){return e.isTypeOnly||i.isReferencedAliasDeclaration(e)?e:void(i.isReferenced(e)&&function(e){r.namedImports.push(e)}(e))}function l(t){var r=e.visitNodes(t.elements,u,e.isExportSpecifier);return e.some(r)?e.factory.updateNamedExports(t,r):void 0}function u(e){return e.isTypeOnly||i.isValueAliasDeclaration(e)?e:void function(e){n.namedExports.push(e)}(e)}function d(){r={name:void 0,namespaceImport:void 0,namedImports:[]}}function p(){n={namedExports:[]}}}e.isInEtsFile=t,e.isInEtsFileWithOriginal=function(t){for(var r;t;)if(void 0!==(t=t.original)&&8===(null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.scriptKind))return!0;return!1},e.getReservedDecoratorsOfEtsFile=function(e,n){var i;return t(e)&&(i=r(e,n)),i},e.getReservedDecoratorsOfStructDeclaration=function(e,t){var n;return 263===e.parent.kind&&(n=r(e,t)),n},e.ensureEtsDecorators=r,e.concatenateDecoratorsAndModifiers=function(t,r){return t?r?e.concatenate(t,r):t:r},e.getEffectiveDecorators=n,e.inEtsStylesContext=function(t,r){var n;if(!(null===(n=r.getCompilerOptions().ets)||void 0===n?void 0:n.styles.component)||8!==e.getSourceFileOfNode(t).scriptKind)return!1;var i=e.getAllDecorators(t);if(0==i.length)return!1;for(var a=0,o=i;a1?(n=t.length-i.length+e.last(a),r=n-t.length==0):r=!1}function a(e){!function(e){e&&e.length&&(r&&(r=!1),t+=e,i(e))}(e)}function o(){t="",r=!0,n=0}return o(),{write:a,rawWrite:function(e){void 0!==e&&(t+=e,i(e))},writeLiteral:function(e){e&&e.length&&a(e)},writeLine:function(e){r&&!e||(n=(t+=" ").length)},increaseIndent:e.noop,decreaseIndent:e.noop,getIndent:function(){return 0},getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return r?0:t.length-n},getText:function(){return t},isAtStartOfLine:function(){return r},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:o,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:a,writeOperator:a,writeParameter:a,writeProperty:a,writePunctuation:a,writeSpace:a,writeStringLiteral:a,writeSymbol:function(e,t){return a(e)},writeTrailingSemicolon:a,writeComment:e.noop,getTextPosWithWriteLine:function(){return r?t.length:t.length+1}}}}(d||(d={})),function(e){var t;function r(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?n(t.body,r):1}function n(t,i){void 0===i&&(i=new e.Map);var a=e.getNodeId(t);if(i.has(a))return i.get(a)||0;i.set(a,void 0);var s=function(t,i){switch(t.kind){case 264:case 265:return 0;case 266:if(e.isEnumConst(t))return 2;break;case 272:case 271:if(!e.hasSyntacticModifier(t,1))return 0;break;case 278:var a=t;if(!a.moduleSpecifier&&a.exportClause&&279===a.exportClause.kind){for(var s=0,c=0,l=a.exportClause.elements;cs&&(s=u),1===s)return s}return s}break;case 268:var d=0;return e.forEachChild(t,(function(t){var r=n(t,i);switch(r){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(r)}})),d;case 267:return r(t,i);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,i);return i.set(a,s),s}function o(t,r){for(var i=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;so)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function s(t){return e.Debug.attachFlowNodeDebugInfo(t),t}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"}(t||(t={}));var c=function(){var t,n,o,c,p,_,f,g,m,h,y,v,b,x,D,S,T,C,E,k,A,N,F,w,P=!1,I=0,O={flags:1},M={flags:1},L=function(){return e.createBinaryExpressionTrampoline(t,r,n,i,a,void 0);function t(t,r){if(r){r.stackIndex++,e.setParent(t,c);var n=N;Ue(t);var i=c;c=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(ue(t)){var o=Z();ve(t,o,o),y=ce(o)}else ve(t,D,S);r.skip=!0}return r}function r(e,t,r){if(!t.skip){var n=o(e);return 27===r.operatorToken.kind&&me(e),n}}function n(e,t,r){t.skip||Be(e)}function i(e,t,r){if(!t.skip){var n=o(e);return 27===r.operatorToken.kind&&me(e),n}}function a(t,r){if(!r.skip){var n=t.operatorToken.kind;if(e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t))if(ye(t.left),63===n&&210===t.left.kind)Y(t.left.expression)&&(y=oe(256,y,t))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==a&&(c=a),r.skip=!1,r.stackIndex--}function o(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Be(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,i){t=r,n=i,o=e.getEmitScriptTarget(n),N=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),w=new e.Set,I=0,F=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Be(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=w,function(){if(m){for(var r=p,n=g,i=f,a=c,o=y,l=0,d=m;l=242&&t.kind<=258&&!n.allowUnreachableCode&&(t.flowNode=y),t.kind){case 246:!function(e){var t=fe(e,ee()),r=Z(),n=Z();ne(t,y),y=t,pe(e.expression,r,n),y=ce(r),_e(e.statement,n,t),ne(t,y),y=ce(n)}(t);break;case 245:!function(e){var t=ee(),r=fe(e,Z()),n=Z();ne(t,y),y=t,_e(e.statement,n,r),ne(r,y),y=ce(r),pe(e.expression,t,n),y=ce(n)}(t);break;case 247:!function(e){var t=fe(e,ee()),r=Z(),n=Z();Be(e.initializer),ne(t,y),y=t,pe(e.condition,r,n),y=ce(r),_e(e.statement,n,t),Be(e.incrementor),ne(t,y),y=ce(n)}(t);break;case 248:case 249:!function(e){var t=fe(e,ee()),r=Z();Be(e.expression),ne(t,y),y=t,249===e.kind&&Be(e.awaitModifier);ne(r,y),Be(e.initializer),260!==e.initializer.kind&&ye(e.initializer);_e(e.statement,r,t),ne(t,y),y=ce(r)}(t);break;case 244:!function(e){var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),y=ce(t),Be(e.thenStatement),ne(n,y),y=ce(r),Be(e.elseStatement),ne(n,y),y=ce(n)}(t);break;case 252:case 256:!function(e){Be(e.expression),252===e.kind&&(k=!0,x&&ne(x,y));y=O}(t);break;case 251:case 250:!function(e){if(Be(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,ge(e,t.breakTarget,t.continueTarget))}else ge(e,v,b)}(t);break;case 257:!function(t){var r=x,n=T,i=Z(),a=Z(),o=Z();t.finallyBlock&&(x=a);ne(o,y),T=o,Be(t.tryBlock),ne(i,y),t.catchClause&&(y=ce(o),ne(o=Z(),y),T=o,Be(t.catchClause),ne(i,y));if(x=r,T=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Be(t.finallyBlock),1&y.flags?y=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,y)),T&&o.antecedents&&ne(T,te(s,o.antecedents,y)),y=i.antecedents?te(s,i.antecedents,y):O)}else y=ce(i)}(t);break;case 254:!function(t){var r=Z();Be(t.expression);var n=v,i=C;v=r,C=y,Be(t.caseBlock),ne(r,y);var a=e.forEach(t.caseBlock.clauses,(function(e){return 296===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0));v=n,C=i,y=ce(r)}(t);break;case 269:!function(e){for(var t=e.clauses,r=G(e.parent.expression),i=O,a=0;a=118&&r.originalKeywordKind<=126?t.bindDiagnostics.push(R(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):134===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):126===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function Ie(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Oe(e){N&&Ie(e,e.name)}function Me(r){if(o<2&&311!==f.kind&&267!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Le(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Re(r,n,i,o){!function(r,n,i){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,a(a({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},o)}function Be(r){if(r){e.setParent(r,c),e.tracing&&(r.tracingPath=t.path);var n=N;if(Ue(r),r.kind>163){var i=c;c=r;var a=Ce(r);0===a?$(r):function(t,r){var n=p,i=_,a=f;if(1&r?(217!==t.kind&&(_=p),p=f=t,32&r&&(p.locals=e.createSymbolTable()),Ee(p)):2&r&&((f=t).locals=void 0),4&r){var o=y,c=v,l=b,u=x,d=T,g=E,m=k,D=16&r&&!e.hasSyntacticModifier(t,512)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||173===t.kind;D||(y=s({flags:2}),144&r&&(y.node=t)),x=D||174===t.kind||e.isInJSFile(t)&&(261===t.kind||216===t.kind)?Z():void 0,T=void 0,v=void 0,b=void 0,E=void 0,k=!1,$(t),t.flags&=-2817,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=y),311===t.kind&&(t.flags|=A,t.endFlowNode=y),x&&(ne(x,y),y=ce(x),(174===t.kind||173===t.kind||e.isInJSFile(t)&&(261===t.kind||216===t.kind))&&(t.returnFlowNode=y)),D||(y=o),v=c,b=l,x=u,T=d,E=g,k=m}else 64&r?(h=!1,$(t),t.flags=h?128|t.flags:-129&t.flags):$(t);p=n,_=i,f=a}(r,a),c=i}else{i=c;1===r.kind&&(c=r),je(r),c=i}N=n}}function je(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 195:return void(h=!0);case 180:break;case 166:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(193===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,526824)):Fe(t,262144,J(t))}else ke(t,262144,526824)}(r);case 167:return it(r);case 259:return nt(r);case 206:return r.flowNode=y,nt(r);case 170:case 169:return function(t){var r=e.isAutoAccessorPropertyDeclaration(t),n=r?13247:0;return at(t,(r?98304:4)|(t.questionToken?16777216:0),n)}(r);case 302:case 303:return at(r,4,0);case 305:return at(r,8,900095);case 177:case 178:case 179:return ke(r,131072,0);case 172:case 171:return at(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 261:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048);Oe(r),N?(Me(r),we(r,16,110991)):ke(r,16,110991)}(r);case 174:return ke(r,16384,0);case 175:return at(r,32768,46015);case 176:return at(r,65536,78783);case 182:case 323:case 329:case 183:return function(t){var r=B(131072,J(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 185:case 328:case 198:return function(e){return Fe(e,2048,"__type")}(r);case 338:return function(t){q(t);var r=e.getHostSignatureFromJSDoc(t);r&&172!==r.kind&&j(r.symbol,r,32)}(r);case 208:return function(e){return Fe(e,4096,"__object")}(r);case 216:case 217:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048);y&&(r.flowNode=y);Oe(r);var n=r.name?r.name.escapedText:"__function";return Fe(r,16,n)}(r);case 211:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var t=tt(e.arguments[0]),r=311===e.parent.parent.kind;t=Xe(t,e.arguments[0],r,!1,!1),Ye(e,t,!1)}(r);case 8:return function(e){if(!Ve(e))return;var t=rt(e.arguments[0],void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(t){var r=1048580;z(t.exports,t,e,r,0)}}(r);case 9:return function(e){var t=tt(e.arguments[0].expression);t&&t.valueDeclaration&&j(t,t.valueDeclaration,32);Ye(e,t,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ve(r)}(r);break;case 230:case 262:case 263:return N=!0,function(r){if(262===r.kind||263===r.kind)we(r,32,899503);else{Fe(r,32,r.name?r.name.escapedText:"__class"),r.name&&w.add(r.name.escapedText)}var n=r.symbol,i=B(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(R(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));n.exports.set(i.escapedName,i),i.parent=n}(r);case 264:return we(r,64,788872);case 265:return we(r,524288,788968);case 266:return function(t){return e.isEnumConst(t)?we(t,128,899967):we(t,256,899327)}(r);case 267:return function(r){if(Ae(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Le(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ne(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Le(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ke(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ne(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(r);case 292:return function(e){return Fe(e,4096,"__jsxAttributes")}(r);case 291:return function(e,t,r){return ke(e,t,r)}(r,4,0);case 271:case 274:case 276:case 281:return ke(r,2097152,2097152);case 270:return function(r){e.some(r.modifiers)&&t.bindDiagnostics.push(R(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(R(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),z(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 273:return function(e){e.name&&ke(e,2097152,2097152)}(r);case 278:return function(t){p.symbol&&p.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),z(p.symbol.exports,p.symbol,t.exportClause,2097152,2097152)):z(p.symbol.exports,p.symbol,t,8388608,0):Fe(t,8388608,J(t))}(r);case 277:return function(t){if(p.symbol&&p.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=z(p.symbol.exports,p.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Fe(t,111551,J(t))}(r);case 311:return Je(r.statements),function(){if(Ae(t),e.isExternalModule(t))ze();else if(e.isJsonSourceFile(t)){ze();var r=t.symbol;z(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 240:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(r.parent))return;case 268:return Je(r.statements);case 346:if(329===r.parent.kind)return it(r);if(328!==r.parent.kind)break;case 353:var _=r;return ke(_,_.isBracketed||_.typeExpression&&322===_.typeExpression.type.kind?16777220:4,0);case 351:case 344:case 345:return(m||(m=[])).push(r)}}function ze(){Fe(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Ve(e){return(!t.externalModuleIndicator||!0===t.externalModuleIndicator)&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||ze()),!0)}function Ke(t){if(Ve(t)){var r=rt(t.left.expression,void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),z(r.exports,r,t.left,n,0)}}}function We(e){z(t.symbol.exports,t.symbol,e,69206016,0)}function qe(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 261:case 216:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=tt(i.expression.expression,_))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?$e(t,n,n.members):z(n.members,n,t,67108868,0),j(n,n.valueDeclaration,32));break;case 174:case 170:case 172:case 175:case 176:case 173:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?$e(t,a.symbol,o):z(o,a.symbol,t,67108868,0,!0);break;case 311:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?z(r.symbol.exports,r.symbol,t,1048580,0):ke(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function $e(e,t,r){z(r,t,e,4,0,!0,!0),Ge(e,t)}function Ge(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function He(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),et(i,t,!0,!0)}function Qe(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),et(t.expression,t,!1,!1)}function Xe(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=rt(n,r,(function(r,n,i){return n?(j(n,r,s),n):z(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&j(r,r.valueDeclaration,32),r}function Ye(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),z(i,r,t,67108864|a,-67108865&o)}}function Ze(t){return e.isBinaryExpression(t.parent)?311===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:311===t.parent.parent.kind}function et(e,t,r,n){var i=tt(e,p)||tt(e,f),a=Ze(t);Ye(t,i=Xe(i,t.expression,a,r,n),r)}function tt(t,r){if(void 0===r&&(r=p),e.isIdentifier(t))return d(r,t.escapedText);var n=tt(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function rt(r,n,i){if(u(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,tt(r),n);var a=rt(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function nt(t){if(N&&Ie(t,t.name),!e.isBindingPattern(t.name)){var r=259===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?we(t,2,111551):e.isParameterDeclaration(t)?ke(t,1,111551):ke(t,1,111550):ke(t,2097152,2097152)}}function it(t){if((346!==t.kind||329===p.kind)&&(!N||16777216&t.flags||Ie(t,t.name),e.isBindingPattern(t.name)?Fe(t,1,"__"+t.parent.parameters.indexOf(t)):ke(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;z(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function at(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(A|=2048),y&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=y),e.hasDynamicName(r)?Fe(r,n,"__computed"):ke(r,n,i)}}();function l(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 264:case 265:return!0;case 267:return 1!==r(t);case 266:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function u(t,r){var n=0,i=e.createQueue();for(i.enqueue(r);!i.isEmpty()&&n<100;){if(n++,r=i.dequeue(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=d(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.enqueue(o),e.isAssignmentExpression(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function d(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),c(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=u}(d||(d={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],_=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol:function(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&(!p[t.id]&&(p[t.id]=t,!h(t.symbol)))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){f(t.target),e.forEach(u(t),f)}(t),32&n&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&n&&(m(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&m(r)}var a;262144&t.flags&&function(e){f(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function g(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o1&&2097152&v.flags&&(t=e.createSymbolTable()).set("export=",v);return F(t),k(d);function b(e){return!!e&&79===e.kind}function x(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(t)],b)}function S(t){var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),a=-1!==n?t[n]:void 0;if(a&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(r.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(i(i([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return x(e)})),(function(t){return e.factory.createExportSpecifier(!1,void 0,t)}))),void 0)],!1)))),t=i(i(i([],t.slice(0,n),!0),[a],!1),t.slice(n+1),!0)),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){d=[];var l=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){W(e,l?1:0)})),t=i(i([],e.filter(t,(function(e){return e!==a&&e!==r})),!0),d,!0)}}return t}function T(t){var r=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(r)>1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=i(i([],n,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=i(i([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=o;c=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(r){return e.canHaveExportModifier(t[r])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=e.isIdentifierText(n,K)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ye(e,t){var n=w(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=he(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))},symbolToNode:function(t,r,i,a,o){return n(i,a,o,(function(n){return function(t,r,n){if(1073741824&r.flags){if(t.valueDeclaration){var i=e.getNameOfDeclaration(t.valueDeclaration);if(i&&e.isComputedPropertyName(i))return i}var a=_i(t).nameType;if(a&&9216&a.flags)return r.enclosingDeclaration=a.symbol.valueDeclaration,e.factory.createComputedPropertyName(O(a.symbol,r,n))}return O(t,r,n)}(t,n,r)}))}};function n(r,n,i,a){var o,c;e.Debug.assert(void 0===r||!(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=s(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(o=l.tracker)||void 0===o?void 0:o.reportTruncationError)||void 0===c||c.call(o)),l.encounteredError?void 0:u}function s(e,t){var r=t.trackSymbol;return a(a({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,n){var i=n.flags,a=function(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(132)):void(n.encounteredError=!0);536870912&n.flags||(t=yl(t));if(1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(k(t.aliasSymbol),f(t.aliasTypeArguments,n)):t===Je?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(132),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===ze?140:132));if(2&t.flags)return e.factory.createKeywordTypeNode(158);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(161);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(135);if(1024&t.flags&&!(1048576&t.flags)){var a=Ea(t.symbol),o=A(a,n,788968);if($s(a)===t)return o;var s=e.symbolName(t.symbol);return e.isIdentifierText(s,0)?G(o,e.factory.createTypeReferenceNode(s,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return A(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var d=t.value;return n.approximateLength+=(""+d).length,e.factory.createLiteralTypeNode(d<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-d)):e.factory.createNumericLiteral(d))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(Ha(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,A(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(157,e.factory.createKeywordTypeNode(154))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(115);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(156);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(145);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||Ga(t.aliasSymbol,n.enclosingDeclaration))){var y=f(t.aliasTypeArguments,n);return!ja(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===e.length(y)&&t.aliasSymbol===Ht.symbol?e.factory.createArrayTypeNode(y[0]):A(t.aliasSymbol,n,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?W(t,$):$(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,x=Zc(t);if(x){var D=hu(t,!0);D&&U_(x,D)||(n.approximateLength+=9,b=x&&l(x,n))}return e.factory.createInferTypeNode(h(t,n,b))}if(4&n.flags&&262144&t.flags&&!Ga(t.symbol,n.enclosingDeclaration)){var S=P(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return A(t.symbol,n,788968);var T=(t===jt||t===Jt)&&_&&_.symbol?(t===Jt?"sub-":"super-")+e.symbolName(_.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(T),void 0)}1048576&t.flags&&t.origin&&(t=t.origin);if(3145728&t.flags){var C=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),K(t);if(4194304&t.flags){var N=t.type;n.approximateLength+=6;var I=l(N,n);return e.factory.createTypeOperatorNode(142,I)}if(134217728&t.flags){var O=t.texts,M=t.types,L=e.factory.createTemplateHead(O[0]),R=e.factory.createNodeArray(e.map(M,(function(t,r){return e.factory.createTemplateLiteralTypeSpan(l(t,n),(r10)return u(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,g=r(t),m=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(g.truncating=!0),g.addedLength=m,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,g)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),g;function h(t){return e.nodeIsSynthesized(t)||e.getParseTreeNode(t)!==t?e.setTextRange(e.factory.cloneNode(e.visitEachChild(t,h,e.nullTransformationContext,y)),t):t}function y(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function q(t){if(qc(t)||t.containsError)return V(t);var r=$c(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return m(r.callSignatures[0],182,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return m(r.constructSignatures[0],183,n)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,lu);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=Va(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(r)),l(Ud(a),n)}var o=n.flags;n.flags|=4194304;var s=Q(r);n.flags=o;var c=e.factory.createTypeLiteralNode(s);return n.approximateLength+=2,e.setEmitFlags(c,1024&n.flags?0:1),c}function $(t){var r=Eu(t);if(t.target===Ht||t.target===Qt){if(2&n.flags){var i=l(r[0],n);return e.factory.createTypeReferenceNode(t.target===Ht?"Array":"ReadonlyArray",[i])}var a=l(r[0],n),o=e.factory.createArrayTypeNode(a);return t.target===Ht?o:e.factory.createTypeOperatorNode(147,o)}if(!(8&t.target.objectFlags)){if(2048&n.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ha(t.symbol,n.enclosingDeclaration))return K(t);var s=t.target.outerTypeParameters,c=(D=0,void 0);if(s)for(var u=s.length;D0){var y=(t.target.typeParameters||e.emptyArray).length;h=f(r.slice(D,y),n)}S=n.flags;n.flags|=16;var v=A(t.symbol,n,788968,h);return n.flags=S,c?G(c,v):v}if(r=e.sameMap(r,(function(e,r){return Ag(e,!!(2&t.target.elementFlags[r]))})),r.length>0){var b=ku(t),x=f(r.slice(0,b),n);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D2)return[l(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),l(t[t.length-1],r)]}for(var i=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,a=[],o=0,s=0,u=t;s0)),a}function S(t,r){var n;return 524384&eC(t).flags&&(n=e.factory.createNodeArray(e.map(ks(t),(function(e){return y(e,r)})))),n}function T(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?N(l,l.length-1,1):void 0,p=i||T(l,0,r),_=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),g=void 0,m=void 0;if(e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==_?void 0:_.impliedNodeFormat)&&(g=E(l[0],r,e.ModuleKind.ESNext),m=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),g||(g=E(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Classic&&(g.indexOf("/node_modules/")>=0||e.isOhpmAndOhModules(V.packageManagerType,g))){var h=g;if(e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeNext){var y=(null==_?void 0:_.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(g=E(l[0],r,y)).indexOf("/node_modules/")>=0||e.isOHModules(g)?g=h:(m=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(y===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}m||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(h))}var v=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=g.length+10,!d||e.isEntityName(d)){if(d)(k=e.isIdentifier(d)?d:d.right).typeArguments=void 0;return e.factory.createImportTypeNode(v,m,d,p,u)}var b=C(d),D=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(v,m,D,p,u),b.indexType)}var S=N(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var k,A=(k=e.isIdentifier(S)?S:S.right).typeArguments;return k.typeArguments=void 0,e.factory.createTypeReferenceNode(S,A);function N(t,n,a){var o,s=n===t.length-1?i:T(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=vo(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&ba(l)){var u=ba(l);e.forEachEntry(u,(function(t,r){if(Fa(t,c)&&!ac(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(d.expression)):p}o=vo(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&dc(l)&&dc(l).get(c.escapedName)&&Fa(dc(l).get(c.escapedName),c)){p=N(t,n-1,a);return e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(_.symbol=c,n>a){p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createQualifiedName(p,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function N(e,t,r){var n=bi(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function P(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Ed(t));if(a)return a}var o=I(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||N(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Ed(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function I(t,r,n,i){var a=x(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=vo(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function O(t,r,n){var i=x(t,r,n);return function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=vo(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ro))return e.factory.createStringLiteral(E(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),K):e.isIdentifierStart(c,K);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(function(e){return e.substring(1)})),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function M(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function L(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function R(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,L),i=function(t,r,n){var i=_i(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(V))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(V)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(O(i.symbol,r,111551))}}(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,M);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(V),n,o)}function B(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function j(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Vl(r.target.typeParameters)}function J(t,r,n,i,a,o){if(!No(r)&&i){var s=B(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(function(t,r,n){var i=o_(t);if(i===n)return!0;if(e.isParameter(r)&&r.questionToken)return $m(n,524288)===i;return!1}(c,s,r)&&j(c,r)){var u=z(t,c,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var p=l(r,t);return t.flags=d,p}function U(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=sa(s,67108863,!0,!0);if(c&&(0!==Ya(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=$s(c),u=262144&c.flags&&!Ga(l.symbol,r.enclosingDeclaration)?P(l,r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function z(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||325===i.kind)return e.factory.createKeywordTypeNode(132);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(158);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(156)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ko(o_(i),a.escapedText),s=o&&t.typeExpression&&o_(t.typeExpression.type)!==o?l(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(132))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(132),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);if(e.isJSDocFunctionType(i)){var u;return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(void 0,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,(function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(132)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,(function(t,n){return e.factory.createParameterDeclaration(void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(132))}if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!j(i,o_(i))||Uu(i)||Pe===Iu(i,788968,!0)))return e.setOriginalNode(l(o_(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=fi(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=Vl(ks(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=FE(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=ua(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.assertions,i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(o_(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=U(i,n,a),_=p.introducesError,f=p.node;if(s=s||_,f!==i)return f}c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1);return e.visitEachChild(i,r,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg".concat(r)}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),se=e.createSymbolTable(),ce=ii(4,"undefined");ce.declarations=[];var le=ii(1536,"globalThis",8);le.exports=se,le.declarations=[],se.set(le.escapedName,le);var ue,de=ii(4,"arguments"),pe=ii(4,"require"),_e={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+D},getTypeCount:function(){return x},getInstantiationCount:function(){return T},getRelationCacheSizes:function(){return{assignable:Rn.size,identity:jn.size,subtype:Mn.size,strictSubtype:Ln.size}},isUndefinedSymbol:function(e){return e===ce},isArgumentsSymbol:function(e){return e===de},isUnknownSymbol:function(e){return e===Pe},getMergedSymbol:Ta,getDiagnostics:OC,getGlobalDiagnostics:function(){return MC(),Pn.getGlobalDiagnostics()},getRecursionIdentity:zf,getUnmatchedProperties:am,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=RD(r);if(wa(fi(r).resolvedSymbol)===t)return n}if(e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&cs(r.parent))return ds(r.parent.symbol);return bs(t)}(t,n):je},getTypeOfSymbol:vs,getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=mi(n.locals,r,111551),o=mi(dc(i.symbol),r,111551);if(a&&o)return[a,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:$s,getPropertiesOfType:Xc,getPropertyOfType:function(t,r){return Sl(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Pv(e.escapeLeadingUnderscores(r),i);return a?Mv(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ko(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return wl(e,0===t?Xe:Ye)},getIndexInfosOfType:Fl,getIndexInfosOfIndexSymbol:fu,getSignaturesOfType:Cl,getIndexTypeOfType:function(e,t){return Pl(e,0===t?Xe:Ye)},getIndexType:function(e){return ep(e)},getBaseTypes:Ms,getBaseTypeOfLiteralType:cg,getWidenedType:jg,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?o_(r):je},getParameterType:Cx,getParameterIdentifierNameAtPosition:function(e,t){var r;if(323===(null===(r=e.declaration)||void 0===r?void 0:r.kind))return;var n=e.parameters.length-(L(e)?1:0);if(t>",0,Le),Jr=gc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Ur=gc(void 0,void 0,void 0,e.emptyArray,je,void 0,0,0),zr=gc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Vr=gc(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),Kr=pu(Ye,Xe,!0),Wr=new e.Map,qr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},$r=mT(Le,Le,Le),Gr=mT(Le,Le,Ve),Hr=mT(ct,Le,We),Qr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return xr||(xr=Qu("AsyncIterator",3,e))||wt},getGlobalIterableType:ad,getGlobalIterableIteratorType:function(e){return Dr||(Dr=Qu("AsyncIterableIterator",1,e))||wt},getGlobalGeneratorType:function(e){return Sr||(Sr=Qu("AsyncGenerator",3,e))||wt},resolveIterationType:xS,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Xr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return gr||(gr=Qu("Iterator",3,e))||wt},getGlobalIterableType:od,getGlobalIterableIteratorType:function(e){return mr||(mr=Qu("IterableIterator",1,e))||wt},getGlobalGeneratorType:function(e){return hr||(hr=Qu("Generator",3,e))||wt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Yr=new e.Map,Zr=!1,en=new e.Map,tn=0,rn=0,nn=0,an=!1,on=0,sn=Yp(""),cn=Zp(0),ln=e_({negative:!1,base10Value:"0"}),un=[],dn=[],pn=[],_n=0,fn=10,gn=[],mn=[],hn=[],yn=[],vn=[],bn=[],xn=[],Dn=[],Sn=[],Tn=[],Cn=[],En=[],kn=[],An=[],Nn=[],Fn=[],wn=[],Pn=e.createDiagnosticCollection(),In=e.createDiagnosticCollection(),On=Id(e.arrayFrom(b.keys(),Yp)),Mn=new e.Map,Ln=new e.Map,Rn=new e.Map,Bn=new e.Map,jn=new e.Map,Jn=new e.Map,Un=e.createSymbolTable();Un.set(ce.escapedName,ce);var zn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===V.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]],Vn={fileNeedCheck:!1,checkPayload:void 0,currentFileName:""};return function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c1)}function _i(e){if(33554432&e.flags)return e;var t=w(e);return mn[t]||(mn[t]=new A)}function fi(e){var t=F(e);return hn[t]||(hn[t]=new N)}function gi(t){return 311===t.kind&&!e.isExternalOrCommonJsModule(t)}function mi(r,n,i,a){if(i){var o=Ta(r.get(n));if(o){if(e.Debug.assert(!(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!function(r,n){if(!n||!r.declarations||!r.declarations.length)return!0;var i=e.getEtsLibs(t),a=e.getSourceFileOfNode(n).fileName.trim();if(!a)return!0;var o=null===e.sys||void 0===e.sys?void 0:e.sys.resolvePath(a);return!(!(null==o?void 0:o.endsWith(".ets"))&&!i.includes(o)&&!r.declarations.filter((function(t){if(!e.getSourceFileOfNode(t).fileName)return!0;var r=null===e.sys||void 0===e.sys?void 0:e.sys.resolvePath(e.getSourceFileOfNode(t).fileName);return-1===i.indexOf(r)})).length)}(o,a))return;if(o.flags&i)return o;if(2097152&o.flags)if(Zi(o)&i)return o}}}function hi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||Nm(n)||16777216&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(206===r.kind){var c=e.getAncestor(n,206);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!_f(Jh(l,r,Dg(r))))return!0}}return!1}(a,vs(Ca(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else{if(!(170===r.kind&&!e.isStatic(r))||e.getContainingClass(t)!==e.getContainingClass(r))return!0}return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 217:return!0;case 170:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 240:switch(r.parent.kind){case 175:case 172:case 176:return!0;default:return!1}default:return!1}}))}}function yi(t,r,n){var i=e.getEmitScriptTarget(V),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=fi(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 217:case 216:case 261:case 174:return!1;case 172:case 175:case 176:case 302:return s(t.name);case 170:return e.hasStaticModifier(t)?i<99||!q:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function vi(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function bi(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),xi(e,t,r,n,i,a,o,s,mi)}function xi(t,r,n,i,a,o,s,c,l){var u,d,p,_,f,g,h,y,v,b=t,x=!1,D=t,S=!1;e:for(;t;){if("const"===r&&vi(t))return;if(t.locals&&!gi(t)&&(_=l(t.locals,r,n))){var T=!0;if(e.isFunctionLike(t)&&f&&f!==t.body?(n&_.flags&788968&&326!==f.kind&&(T=!!(262144&_.flags)&&(f===t.type||167===f.kind||346===f.kind||347===f.kind||166===f.kind)),n&_.flags&3&&(yi(_,t,f)?T=!1:1&_.flags&&(T=167===f.kind||f===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):192===t.kind&&(T=f===t.trueType),T)break e;_=void 0}switch(x=x||Si(t,f),t.kind){case 311:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 267:var C=Ca(t)&&(null===(u=Ca(t))||void 0===u?void 0:u.exports)||U;if(311===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=C.get("default")){var E=e.getLocalSymbolForExportDefault(_);if(E&&_.flags&n&&E.escapedName===r)break e;_=void 0}var k=C.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,281)||e.getDeclarationOfKind(k,280)))break}if("default"!==r&&(_=l(C,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=_.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 266:if(_=l((null===(p=Ca(t))||void 0===p?void 0:p.exports)||U,r,8&n))break e;break;case 170:if(!e.isStatic(t)){var A=Ia(t.parent);A&&A.locals&&l(A.locals,r,111551&n)&&(e.Debug.assertNode(t,e.isPropertyDeclaration),h=t)}break;case 262:case 230:case 264:if(_=l(Ca(t).members||U,r,788968&n)){if(!Ei(_,t)){_=void 0;break}if(f&&e.isStatic(f))return void(i&&Xn(D,e.Diagnostics.Static_members_cannot_reference_class_type_parameters));break e}if(230===t.kind&&32&n){var N=t.name;if(N&&r===N.escapedText){_=t.symbol;break e}}break;case 232:if(f===t.expression&&95===t.parent.token){var F=t.parent.parent;if(e.isClassLike(F)&&(_=l(Ca(F).members,r,788968&n)))return void(i&&Xn(D,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 165:if(v=t.parent.parent,(e.isClassLike(v)||264===v.kind)&&(_=l(Ca(v).members,r,788968&n)))return void(i&&Xn(D,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 217:if(e.getEmitScriptTarget(V)>=2)break;case 172:case 174:case 175:case 176:case 261:if(3&n&&"arguments"===r){_=de;break e}break;case 216:if(3&n&&"arguments"===r){_=de;break e}if(16&n){var w=t.name;if(w&&r===w.escapedText){_=t.symbol;break e}}break;case 168:t.parent&&167===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||262===t.parent.kind)&&(t=t.parent);break;case 351:case 344:case 345:var P=e.getJSDocRoot(t);P&&(t=P.parent);break;case 167:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&(y||(y=t));break;case 206:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 193:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){_=t.typeParameter.symbol;break e}}}Ti(t)&&(g=t),f=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!_||g&&_===g.symbol||(_.isReferenced|=n),!_){if(f&&(e.Debug.assert(311===f.kind),f.commonJsModuleIndicator&&"exports"===r&&n&f.symbol.flags))return f.symbol;s||(_=l(se,r,n,b))}if(!_&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return pe;function O(){return!(!h||q&&e.getEmitScriptTarget(V)>=9)&&(Xn(D,D&&h.type&&e.textRangeContainsPositionInclusive(h.type,D.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(h.name),Ci(a)),!0)}if(_){if(!i||!O())return i&&m((function(){if(D&&(2&n||(32&n||384&n)&&!(111551&~n))){var t=wa(_);(2&t.flags||32&t.flags||384&t.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||266===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||hi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Xn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Xn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Xn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(V)&&(a=Xn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}(t,D)}if(_&&S&&!(111551&~n)&&!(8388608&b.flags)){var i=Ta(_);e.length(i.declarations)&&e.every(i.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Zn(!V.allowUmdGlobalAccess,D,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&y&&!x&&!(111551&~n)){var a=Ta(pc(_)),o=e.getRootDeclaration(y);a===Ca(y)?Xn(D,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):a.valueDeclaration&&a.valueDeclaration.pos>y.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Xn(D,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(D))}if(_&&D&&111551&n&&2097152&_.flags&&!(111551&_.flags)&&!e.isValidTypeOnlyAliasUseSite(D)){var s=ra(_,111551);if(s){var c=281===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(r);Di(Xn(D,c,u),s,u)}}})),_}else i&&m((function(){if(!(D&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||RC(t)||Nm(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=Ca(a.parent);if(!o)break;if(Sl(vs(o),r))return Xn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ci(n),ao(o)),!0;if(a===i&&!e.isStatic(a))if(Sl($s(o).thisType,r))return Xn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ci(n)),!0}a=a.parent}return!1}(D,r,a)||O()||ki(D)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Xi(bi(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Sl($s(a),s))return Xn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(D,r,n)||function(t,r){if(Ni(r)&&281===t.parent.kind)return Xn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(D,r)||function(t,r,n){if(111127&n){if(Xi(bi(t,r,1024,void 0,void 0,!1)))return Xn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(Xi(bi(t,r,1536,void 0,void 0,!1)))return Xn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)||function(t,r,n){if(111551&n){if(Ni(r))return!function(t){var r=t.parent.parent,n=r.parent;if(r&&n){var i=e.isHeritageClause(r)&&95===r.token,a=e.isInterfaceDeclaration(n);return i&&a}return!1}(t)?Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)):Xn(t,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(r)),!0;var i=Xi(bi(t,r,788544,void 0,void 0,!1)),a=i&&Zi(i);if(i&&void 0!==a&&!(111551&a)){var o=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=$s(r);return!!(1048576&i.flags)&&oD(i,384,!0)}return!1}(t,i)?Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,o):Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,o,"K"===o?"P":"K"):Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,o),!0}}return!1}(D,r,n)||function(t,r,n){if(788584&n){var i=Xi(bi(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Xn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)))){var t=void 0,o=void 0;if(a&&(o=function(t){for(var r=Ci(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",p=t.exports.get("export=").valueDeclaration,_=Xn(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ao(t),d);p&&e.addRelatedInfo(_,e.createDiagnosticForNode(p,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,d))}else e.isImportClause(r)?function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Xn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ao(t),ao(r.symbol));else{var o=Xn(r.name,e.Diagnostics.Module_0_has_no_default_export,ao(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=la(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(t,r):Wi(t,t,r,e.isImportOrExportSpecifier(r)&&r.propertyName||r.name);return ea(r,a,void 0,!1),a}function Vi(t){switch(t.kind){case 273:return t.parent.moduleSpecifier;case 271:return e.isExternalModuleReference(t.moduleReference)?t.moduleReference.expression:void 0;case 274:case 281:return t.parent.parent.moduleSpecifier;case 276:return t.parent.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(t)}}function Ki(t,r,n){var i;void 0===n&&(n=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=la(t,a),s=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(s)){var c=fa(o,a,!1,"default"===s.escapedText&&!(!V.allowSyntheticDefaultImports&&!e.getESModuleInterop(V)));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?Sl(vs(c),s.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Xi(Sl(o_(r),t))}}(c,s.escapedText),l=Xi(l,n);var u=function(e,t,r,n){if(1536&e.flags){var i=ba(e).get(t.escapedText),a=Xi(i,n);return ea(r,i,a,!1),a}}(c,s,r,n);if(void 0===u&&"default"===s.escapedText){var d=null===(i=o.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Ji(a)||Ui(d,o,n,a))&&(u=_a(o,n)||Xi(o,n))}var p=u&&l&&u!==l?function(t,r){if(t===Pe&&r===Pe)return Pe;if(790504&t.flags)return t;var n=ii(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(l,u):u||l;return p||Wi(o,c,t,s),p}}}function Wi(t,r,n,a){var o,s=oa(t,n),c=e.declarationNameToString(a),l=Hv(a,r);if(void 0!==l){var u=ao(l),d=Xn(a,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,s,c,u);l.valueDeclaration&&e.addRelatedInfo(d,e.createDiagnosticForNode(l.valueDeclaration,e.Diagnostics._0_is_declared_here,u))}else(null===(o=t.exports)||void 0===o?void 0:o.has("default"))?Xn(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,s,c):function(t,r,n,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=a.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)Fa(d,l)?function(t,r,n,i){if(W>=e.ModuleKind.ES2015){Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{if(e.isInJSFile(t))Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n);else Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}}(t,r,n,o):Xn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n);else{var p=u?e.find(Rl(u),(function(e){return!!Fa(e,l)})):void 0,_=p?Xn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,n,ao(p)):Xn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,n);l.declarations&&e.addRelatedInfo.apply(void 0,i([_],e.map(l.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)})),!1))}}else Xn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n)}(n,a,c,t,s)}function qi(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function $i(t,r,n){if("default"===e.idText(t.propertyName||t.name)){var i=Vi(t),a=i&&la(t,i);if(a)return zi(a,t,!!n)}var o=t.parent.parent.moduleSpecifier?Ki(t.parent.parent,t,n):sa(t.propertyName||t.name,r,!1,n);return ea(t,void 0,o,!1),o}function Gi(t,r){if(e.isClassExpression(t))return bD(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=sa(t,901119,!0,r);return n||(bD(t),fi(t).resolvedSymbol)}}function Hi(t,r){switch(void 0===r&&(r=!1),t.kind){case 271:case 259:return Mi(t,r);case 273:return function(e,t){var r=la(e,e.parent.moduleSpecifier);if(r)return zi(r,e,t)}(t,r);case 274:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=la(e,r),i=fa(n,r,t,!1);return ea(e,n,i,!1),i}(t,r);case 280:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&la(e,r),i=r&&fa(n,r,t,!1);return ea(e,n,i,!1),i}(t,r);case 276:case 206:return function(t,r){if(e.isImportSpecifier(t)&&"default"===e.idText(t.propertyName||t.name)){var n=Vi(t),i=n&&la(t,n);if(i)return zi(i,t,r)}var a=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,o=qi(a),s=Ki(a,o||t,r),c=t.propertyName||t.name;return o&&s&&e.isIdentifier(c)?Xi(Sl(vs(s),c.escapedText),r):(ea(t,void 0,s,!1),s)}(t,r);case 281:return $i(t,901119,r);case 277:case 225:return function(t,r){var n=Gi(e.isExportAssignment(t)?t.expression:t.right,r);return ea(t,void 0,n,!1),n}(t,r);case 270:return function(e,t){var r=_a(e.parent.symbol,t);return ea(e,void 0,r,!1),r}(t,r);case 303:return sa(t.name,901119,!0,r);case 302:return Gi(t.initializer,r);case 210:case 209:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return Gi(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Qi(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Xi(e,t){return!t&&Qi(e)?Yi(e):e}function Yi(t){e.Debug.assert(!!(2097152&t.flags),"Should only get Alias here.");var r=_i(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=Pe);else{r.aliasTarget=Ie;var n=Pi(t);if(!n)return e.Debug.fail();var i=Hi(n);r.aliasTarget===Ie?r.aliasTarget=i||Pe:Xn(n,e.Diagnostics.Circular_definition_of_import_alias_0,ao(t))}return r.aliasTarget}function Zi(t){for(var r,n=t.flags;2097152&t.flags;){var i=Yi(t);if(i===Pe)return 67108863;if(i===t||(null==r?void 0:r.has(i)))break;2097152&i.flags&&(r?r.add(i):r=new e.Set([t,i])),n|=i.flags,t=i}return n}function ea(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Ca(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return _i(a).typeOnlyDeclaration=t,!0;var o=_i(a);return ta(o,r,i)||ta(o,n,i)}function ta(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:_i(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function ra(e,t){if(2097152&e.flags){var r=_i(e);return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Zi(Yi(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}}function na(e){var t=Ca(e),r=Yi(t);r&&((r===Pe||111551&Zi(r)&&!sE(r)&&!ra(t,111551))&&ia(t))}function ia(t){var r=_i(t);if(!r.referenced){r.referenced=!0;var n=Pi(t);if(!n)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(n)&&111551&Zi(Xi(t))&&bD(n.moduleReference)}}function aa(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||164===t.parent.kind?sa(t,1920,!1,r):(e.Debug.assert(271===t.parent.kind),sa(t,901119,!1,r))}function oa(e,t){return e.parent?oa(e.parent,t)+"."+ao(e):ao(e,t,void 0,36)}function sa(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:km(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(ju(t.parent)){var n=function(t){if(e.findAncestor(t,(function(t){return e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"})))return;var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isPrototypePropertyAssignment(r.expression)){if(i=Ca(r.expression.left))return ca(i)}if(r&&e.isFunctionExpression(r)&&e.isPrototypePropertyAssignment(r.parent)&&e.isExpressionStatement(r.parent.parent)){if(i=Ca(r.parent.left))return ca(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=Ca(r.parent.parent.left))return ca(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=Ca(n))&&i.valueDeclaration}}(t.parent);if(n)return bi(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Ta(bi(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return Ta(l)}else{if(164!==t.kind&&209!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=164===t.kind?t.left:t.expression,d=164===t.kind?t.right:t.name,p=sa(u,s,n,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Pe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&ux(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=la(_,_);if(f){var g=_a(f);g&&(p=g)}}if(!(o=Ta(mi(ba(p),d.escapedText,r)))){if(!n){var m=oa(p),h=e.declarationNameToString(d),y=Hv(d,p);if(y)return void Xn(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,h,ao(y));var v=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),b=Wt&&788968&r&&v&&!e.isTypeOfExpression(v.parent)&&function(t){var r=e.getFirstIdentifier(t),n=bi(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Sl(vs(n),r.parent.right.escapedText)))return;r=r.parent}return n}}(v);if(b)return void Xn(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&r&&e.isQualifiedName(t.parent)){var x=Ta(mi(ba(p),d.escapedText,788968));if(x)return void Xn(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ao(x),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Xn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,h)}return}}return e.Debug.assert(!(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||277===t.parent.kind)&&ea(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Yi(o)}}function ca(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function la(t,r,n){var i=e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ua(t,r,n?void 0:i)}function ua(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?da(t,r.text,n,r,i):void 0}function da(r,n,i,a,o){var s,c,l,u,d,p,_,f;(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&Xn(a,R=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var g=-1!==n.lastIndexOf(".so");if(!g||e.isInETSFile(r)&&V.needDoArkTsLinter&&!V.isCompatibleVersion){var m=jl(n,!0);if(m)return m;var h=e.getSourceFileOfNode(r),y=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),v=y&&e.isStringLiteralLike(y)?e.getModeForUsageLocation(h,y):h.impliedNodeFormat,b=e.getResolvedModule(h,n,v);if(V.needDoArkTsLinter&&h&&3===h.scriptKind&&b&&(".ets"===b.extension||".d.ets"===b.extension))Xn(a,V.isCompatibleVersion?e.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden:e.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden,n);var x=b&&e.getResolutionDiagnostic(V,b),D=b&&(!x||x===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(b.resolvedFileName);if(D){if(x&&Xn(a,x,n,b.resolvedFileName),D.symbol){if(b.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(b.extension)&&pa(!1,a,b,n),e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeNext){var S=h.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),T=e.findAncestor(r,(function(t){return e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t)})),C=T&&e.isImportTypeNode(T)?null===(_=T.assertions)||void 0===_?void 0:_.assertClause:null==T?void 0:T.assertClause;if(S&&D.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(C))if(e.findAncestor(r,e.isImportEqualsDeclaration))Xn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{var E=void 0,k=e.tryGetExtensionFromPath(h.fileName);if(".ts"===k||".js"===k||".tsx"===k||".jsx"===k){var A=h.packageJsonScope,N=".ts"===k?".mts":".js"===k?".mjs":void 0;E=A&&!A.contents.packageJsonContent.type?N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,N,e.combinePaths(A.packageDirectory,e.getPackageJsonByPMType(V.packageManagerType))):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(A.packageDirectory,e.getPackageJsonByPMType(V.packageManagerType))):N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,N):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Pn.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(E,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return Ta(D.symbol)}i&&Xn(a,e.Diagnostics.File_0_is_not_a_module,D.fileName)}else{if(Vt){var F=e.findBestPatternMatch(Vt,(function(e){return e.pattern}),n);if(F){var w=Kt&&Kt.get(n);return Ta(w?w:F.symbol)}}if(b&&!e.resolutionExtensionIsTSOrJson(b.extension)&&void 0===x||x===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Xn(a,R=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,b.resolvedFileName):pa(Y&&!!i,a,b,n);else if(i){if(b){var P=t.getProjectReferenceRedirect(b.resolvedFileName);if(P)return void Xn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,P,b.resolvedFileName)}if(x)Xn(a,x,n,b.resolvedFileName);else{var I=e.tryExtractTSExtension(n),O=e.pathIsRelative(n)&&!e.hasExtension(n),M=e.getEmitModuleResolutionKind(V),L=M===e.ModuleResolutionKind.Node16||M===e.ModuleResolutionKind.NodeNext;if(I){var R=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,B=e.removeExtension(n,I);W>=e.ModuleKind.ES2015&&(B+=".mts"===I?".mjs":".cts"===I?".cjs":".js"),Xn(a,R,I,B)}else if(!V.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(V))Xn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(v===e.ModuleKind.ESNext&&L&&O){var j=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(h.path)),J=null===(f=zn.find((function(e){var r=e[0];e[1];return t.fileExists(j+r)})))||void 0===f?void 0:f[1];J?Xn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+J):Xn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(g){U=e.createDiagnosticForNode(a,e.Diagnostics.Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared,n);Pn.add(U)}else Xn(a,i,n)}}}}else{var U=e.createDiagnosticForNode(a,e.Diagnostics.Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared,n);Pn.add(U)}}function pa(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!f().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Zn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function _a(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===Pe||t===r||1===r.exports.size||2097152&t.flags)return t;var n=_i(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:si(t);i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable());return r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?ci(i.exports.get(t),e):e)})),_i(i).cjsExportMerged=i,n.cjsExportMerged=i}(Ta(Xi(t.exports.get("export="),r)),Ta(t));return Ta(n)||t}}function fa(t,r,n,i){var a,o=_a(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,311))){var s=W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Xn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=vs(o),d=cx(u,o,t,l);if(d)return ga(o,d,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),_=p&&ji(Bi(l),p.impliedNodeFormat);if(e.getESModuleInterop(V)||_){var f=Tl(u,0);if(f&&f.length||(f=Tl(u,1)),f&&f.length||Sl(u,"default",!0)||_)return ga(o,lx(u,o,t,l),c)}}}return o}function ga(t,r,n){var i=ii(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=$c(r);return i.type=Va(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function ma(e){return void 0!==e.exports.get("export=")}function ha(e){return Rl(xa(e))}function ya(e,t){var r=xa(t);if(r)return r.get(e)}function va(t){return!(131068&t.flags||1&e.getObjectFlags(t)||$f(t)||_g(t))}function ba(e){return 6256&e.flags?uc(e,"resolvedExports"):1536&e.flags?xa(e):e.exports||U}function xa(e){var t=_i(e);return t.resolvedExports||(t.resolvedExports=Sa(e))}function Da(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Xi(o)!==Xi(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Sa(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c=d?u.substr(0,d-3)+"...":u}function co(e,t){var r=uo(e.symbol)?so(e,e.symbol.valueDeclaration):so(e),n=uo(t.symbol)?so(t,t.symbol.valueDeclaration):so(t);return r===n&&(r=lo(e),n=lo(t)),[r,n]}function lo(e){return so(e,void 0,64)}function uo(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!R_(t.valueDeclaration)}function po(e){return void 0===e&&(e=0),848330091&e}function _o(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Bs(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function fo(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(130):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&oe.typeToTypeNode(t.type,r,70222336|po(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function go(e){return 8===e?"private":16===e?"protected":"public"}function mo(t){return t&&t.parent&&268===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function ho(t){return 311===t.kind||e.isAmbientModule(t)}function yo(t,r){var n=_i(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(V))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(vo(n.symbol,r),"]")}}function vo(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],ho)!==e.findAncestor(r.enclosingDeclaration,ho)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=_i(t).nameType;if(a&&384&a.flags){var o=yo(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&259===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 230:case 216:case 217:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),230===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=yo(t,r);return void 0!==s?s:e.symbolName(t)}function bo(t){if(t){var r=fi(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 344:case 351:case 345:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 206:return bo(t.parent.parent);case 259:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 267:case 262:case 263:case 264:case 265:case 261:case 266:case 271:if(e.isExternalModuleAugmentation(t))return!0;var r=Eo(t);return 1&e.getCombinedModifierFlags(t)||271!==t.kind&&311!==r.kind&&16777216&r.flags?bo(r):gi(r);case 170:case 169:case 175:case 176:case 172:case 171:if(e.hasEffectiveModifier(t,24))return!1;case 174:case 178:case 177:case 179:case 167:case 268:case 182:case 183:case 185:case 181:case 186:case 187:case 190:case 191:case 194:case 200:return bo(t.parent);case 273:case 274:case 276:return!1;case 166:case 311:case 270:return!0;default:return!1}}()),r.isVisible}return!1}function xo(t,r){var n,i,a;return t.parent&&277===t.parent.kind?n=bi(t,t.escapedText,2998271,void 0,t,!1):281===t.parent.kind&&(n=$i(t.parent,2998271)),n&&((a=new e.Set).add(w(n)),function t(n){e.forEach(n,(function(n){var o=wi(n)||n;if(r?fi(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=bi(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,w(c))&&t(c.declarations)}}))}(n.declarations)),i}function Do(e,t){var r=So(e,t);if(r>=0){for(var n=un.length,i=r;i=0;r--){if(To(un[r],pn[r]))return-1;if(un[r]===e&&pn[r]===t)return r}return-1}function To(e,t){switch(t){case 0:return!!_i(e).type;case 5:return!!fi(e).resolvedEnumType;case 2:return!!_i(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!_i(e).writeType}}function Co(){return un.pop(),pn.pop(),dn.pop()}function Eo(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 259:case 260:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function ko(e,t){var r=Sl(e,t);return r?vs(r):void 0}function Ao(e){return e&&!!(1&e.flags)}function No(e){return e===je||!!(1&e.flags&&e.aliasSymbol)}function Fo(e,t){if(0!==t)return zo(e,!1,t);var r=Ca(e);return r&&_i(r).type||zo(e,!1,t)}function wo(t,r,n){if(131072&(t=gh(t,(function(e){return!(98304&e.flags)}))).flags)return Ct;if(1048576&t.flags)return yh(t,(function(e){return wo(e,r,n)}));for(var a=Id(e.map(r,Gd)),o=[],s=[],c=0,l=Xc(t);c=2?(i=Le,ld(od(!0),[i])):rr;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Le:Zo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||By(t))}),a.length-1)+1,u=yd(c,e.map(a,(function(e,t){return e===s?4:t>=l?2:1})));return r&&((u=Tu(u)).pattern=t,u.objectFlags|=131072),u}function ts(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),204===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=131200;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=pu(Xe,Le,!1);else{var s=Gd(t);if(nc(s)){var c=cc(s),l=ii(4|(e.initializer?16777216:0),c);l.type=Zo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=Va(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=131072),s}(t,r,n):es(t,r,n)}function rs(e,t){return is(zo(e,!0,0),e,t)}function ns(e){var t,r=Ca(e),n=(t=!1,sr||(sr=$u("SymbolConstructor",t)));return n&&r&&r===n}function is(t,r,n){return t?(4096&t.flags&&ns(r.parent)&&(t=r_(r)),n&&Vg(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Ca(r)&&(t=ot),jg(t)):(t=e.isParameter(r)&&r.dotDotDotToken?rr:Le,n&&(as(r)||zg(r,t)),t)}function as(t){var r=e.getRootDeclaration(t);return lS(167===r.kind?r.parent:r)}function os(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return o_(r)}function ss(t){var r=_i(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=$s(Ea(t))).typeParameters?Su(r,e.map(r.typeParameters,(function(e){return Le}))):r;var r;if(t===pe)return Le;if(134217728&t.flags&&t.valueDeclaration){var n=Ca(e.getSourceFileOfNode(t.valueDeclaration)),i=ii(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Va(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return ee?Ve:Le;var l=KC(c);return Ao(l)||l===Ve?l:je}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?jg(lg(JD(s.statements[0].expression))):Ct;if(e.isAccessor(s))return us(t);if(!Do(t,0))return 512&t.flags&&!(67108864&t.flags)?_s(t):ms(t);if(277===s.kind)o=is(os(s)||bD(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Go(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return _s(t);o=e.isBinaryExpression(s.parent)?Go(t):os(s)||Le}else if(e.isPropertyAssignment(s))o=os(s)||kD(s);else if(e.isJsxAttribute(s))o=os(s)||Qy(s);else if(e.isShorthandPropertyAssignment(s))o=os(s)||ED(s.name,0);else if(e.isObjectLiteralMethod(s))o=os(s)||AD(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=rs(s,!0);else if(e.isEnumDeclaration(s))o=_s(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=fs(t)}if(!Co())return 512&t.flags&&!(67108864&t.flags)?_s(t):ms(t);return o}(t);r.type||(r.type=n)}return r.type}function cs(t){if(t)switch(t.kind){case 175:return e.getEffectiveReturnTypeNode(t);case 176:return e.getEffectiveSetAccessorTypeAnnotationNode(t);case 170:return e.Debug.assert(e.hasAccessorModifier(t)),e.getEffectiveTypeAnnotationNode(t)}}function ls(e){var t=cs(e);return t&&o_(t)}function us(t){var r=_i(t);if(!r.type){if(!Do(t,0))return je;var n=e.getDeclarationOfKind(t,175),i=e.getDeclarationOfKind(t,176),a=e.tryCast(e.getDeclarationOfKind(t,170),e.isAutoAccessorPropertyDeclaration),o=n&&e.isInJSFile(n)&&jo(n)||ls(n)||ls(i)||ls(a)||n&&n.body&&Jx(n)||a&&a.initializer&&rs(a,!0);o||(i&&!lS(i)?Zn(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ao(t)):n&&!lS(n)?Zn(Y,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ao(t)):a&&!lS(a)&&Zn(Y,a,e.Diagnostics.Member_0_implicitly_has_an_1_type,ao(t),"any"),o=Le),Co()||(cs(n)?Xn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)):cs(i)||cs(a)?Xn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)):n&&Y&&Xn(n,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ao(t)),o=Le),r.type=o}return r.type}function ds(t){var r,n=_i(t);if(!n.writeType){if(!Do(t,8))return je;var i=null!==(r=e.getDeclarationOfKind(t,176))&&void 0!==r?r:e.tryCast(e.getDeclarationOfKind(t,170),e.isAutoAccessorPropertyDeclaration),a=ls(i);Co()||(cs(i)&&Xn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)),a=Le),n.writeType=a||us(t)}return n.writeType}function ps(t){var r=Is(Bs(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function _s(t){var r=_i(t),n=r;if(!r.type){var i=t.valueDeclaration&&Xb(t.valueDeclaration,!1);if(i){var a=Qb(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Le;if(r&&(225===r.kind||e.isAccessExpression(r)&&225===r.parent.kind))return Go(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=_a(t);if(n!==t){if(!Do(t,0))return je;var i=Ta(t.exports.get("export=")),a=Go(i,i===n?void 0:n);return Co()?a:ms(t)}}var o=Ra(16,t);if(32&t.flags){var s=ps(t);return s?Ud([o,s]):o}return G&&16777216&t.flags?Dg(o):o}(t)}return r.type}function fs(e){var t=_i(e);return t.type||(t.type=Ws(e))}function gs(t){var r=_i(t);if(!r.type){var n=Yi(t),i=t.declarations&&Hi(Pi(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(function(t){return e.isExportAssignment(t)?os(t):void 0}));r.type=(null==i?void 0:i.declarations)&&CC(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,Jh(a,Re,We)}(i):CC(t.declarations)?Re:a||(111551&Zi(n)?vs(n):je)}return r.type}function ms(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Xn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)),je):(Y&&(167!==r.kind||r.initializer)&&Xn(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ao(t)),Le)}function hs(t){var r=_i(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Id(r.deferralConstituents):Ud(r.deferralConstituents)),r.type}function ys(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?function(t){var r=_i(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?Id(r.deferralWriteConstituents):Ud(r.deferralWriteConstituents)),r.writeType}(t)||hs(t):t.writeType||t.type:vs(t):98304&t.flags?1&r?function(e){var t=_i(e);return t.writeType||(t.writeType=P_(ys(t.target),t.mapper))}(t):ds(t):vs(t)}function vs(t){var r=e.getCheckFlags(t);return 65536&r?hs(t):1&r?function(e){var t=_i(e);return t.type||(t.type=P_(vs(t.target),t.mapper))}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!Do(t,0))return r.containsError=!0,je;var n=P_(jc(r.target||r),x_(r.mapper,Lc(r),t.keyType)),i=G&&16777216&t.flags&&!iD(n,49152)?Dg(n,!0):524288&t.checkFlags?Fg(n):n;Co()||(Xn(u,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ao(t),so(r)),i=je),t.type=i}return t.type}(t):8192&r?function(e){var t=_i(e);t.type||(t.type=im(e.propertyType,e.mappedType,e.constraintType));return t.type}(t):7&t.flags?ss(t):9136&t.flags?_s(t):8&t.flags?fs(t):98304&t.flags?us(t):2097152&t.flags?gs(t):je}function bs(e){return Ag(vs(e),!!(16777216&e.flags))}function xs(t,r){return void 0!==t&&void 0!==r&&!!(4&e.getObjectFlags(t))&&t.target===r}function Ds(t){return 4&e.getObjectFlags(t)?t.target:t}function Ss(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Ds(n);return i===r||e.some(Ms(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function Ts(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=il(e);return!!t&&As(t)}return!1}function Fs(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function ws(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Cl(t,1),(function(t){return(a||i>=Vl(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Ps(t,r,n){var i=ws(t,r,n),a=e.map(r,o_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?nu(t,a,e.isInJSFile(n)):t}))}function Is(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=Fs(t);if(!i)return t.resolvedBaseConstructorType=We;if(!Do(t,1))return je;var a=JD(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),JD(n.expression)),2621440&a.flags&&$c(a),!Co())return Xn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ao(t.symbol)),t.resolvedBaseConstructorType=je;if(!(1&a.flags||a===Qe||Ns(a))){var o=Xn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,so(a));if(262144&a.flags){var s=yu(a),c=Ve;if(s){var l=Cl(s,1);l[0]&&(c=Zl(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ao(a.symbol),so(c)))}return t.resolvedBaseConstructorType=je}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Os(t,r){Xn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,so(r,void 0,2))}function Ms(t){if(!t.baseTypesResolved){if(Do(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Ls(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=_l(Is(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Fs(t),a=r.symbol?$s(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=Eu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Au(i,r.symbol);else if(1&r.flags)n=r;else{var o=Ps(r,i.typeArguments,i);if(!o.length)return Xn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Zl(o[0])}if(No(n))return t.resolvedBaseTypes=e.emptyArray;var s=yl(n);if(!Rs(s)){var c=Dl(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,so(s));return Pn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Ss(s,t))return Xn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,so(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)u=Pg(d,Ud(e.mapDefined(c,(function(e){return e.thisParameter&&vs(e.thisParameter)}))));(l=hc(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=function(t){if(t!==p){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=r.typeParameters&&e.some(_,(function(e){return!!e.typeParameters&&!Sc(r.typeParameters,e.typeParameters)}))?void 0:e.map(_,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=p_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Ax(e),i=Ax(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Fx(e)||Fx(t),l=c&&!Fx(a),u=new Array(s+(l?1:0)),d=0;d=Nx(a)&&d>=Nx(o),h=d>=n?void 0:xx(e,d),y=d>=i?void 0:xx(t,d),v=ii(1|(m&&!g?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=g?dd(f):f,u[d]=v}if(l){var b=ii(1,"args");b.type=dd(Cx(o,s)),o===t&&(b.type=P_(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Ud([vs(e),P_(vs(t),r)]);return Pg(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),l=gc(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));l.compositeKind=1048576,l.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(l.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?v_(t.mapper,n):n);return l}(t,r)})),!_)return"break"}},g=0,m=t;g0})),n=e.map(t,As);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function kc(t){for(var r,n,i,a=t.types,o=Ec(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=t.types[c];if(!o[c]){var u=Cl(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var t=mc(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=_&&c<=f){var g=f?au(p,Kl(s,p.typeParameters,_,o)):mc(p);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,l.push(g)}}return l}(p)),t.constructSignatures=a}}}function wc(e,t,r){return P_(e,p_([t.indexType,t.objectType],[Zp(0),yd([r])]))}function Pc(t){if(4194304&t.flags){var r=_l(t.type);return fg(r)?Sd(r):ep(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Pc(n);if(i!==n)return w_(t,b_(t.root.checkType,i,t.mapper))}return t}if(1048576&t.flags)return yh(t,Pc);if(2097152&t.flags){var a=t.types;return 2===a.length&&76&a[0].flags&&a[1]===At?t:Ud(e.sameMap(t.types,Pc))}return t}function Ic(t){return 4096&e.getCheckFlags(t)}function Oc(e,t,r,n){for(var i=0,a=Xc(e);i2?(I.checkFlags|=65536,I.deferralParent=t,I.deferralConstituents=C,I.deferralWriteConstituents=S):(I.type=u?Id(C):Ud(C),S&&(I.writeType=u?Id(S):Ud(S))),I}}function ml(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;o||(o=gl(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o);return o}function hl(t,r,n){var i=ml(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function yl(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,yl);if(r===t.types)return t;var n=Id(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(Qc(t),vl)?33554432:0)),33554432&t.objectFlags?ct:t):t}function vl(e){return bl(e)||xl(e)}function bl(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&vs(t).flags))}function xl(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Dl(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(Qc(r),bl);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,so(r,void 0,536870912),ao(n));var i=e.find(Qc(r),xl);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,so(r,void 0,536870912),ao(i))}return t}function Sl(e,t,r,n){if(524288&(e=fl(e)).flags){var i=$c(e),a=i.members.get(t);if(a&&Pa(a,n))return a;if(r)return;var o=i===Pt?qt:i.callSignatures.length?$t:i.constructSignatures.length?Gt:void 0;if(o){var s=Hc(o,t);if(s)return s}return Hc(Wt,t)}if(3145728&e.flags)return hl(e,t,r)}function Tl(t,r){if(3670016&t.flags){var n=$c(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Cl(e,t){return Tl(fl(e),t)}function El(t,r){return e.find(t,(function(e){return e.keyType===r}))}function kl(t,r){for(var n,i,a,o=0,s=t;o=0),n>=Nx(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Ul(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&322===n.type.kind}function zl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Vl(e){var t=0;if(e)for(var r=0;r=n&&o<=a){for(var s=t?t.slice():[],c=o;cl.arguments.length&&!f||Bl(p)||(o=i.length)}if((175===t.kind||176===t.kind)&&sc(t)&&(!c||!s)){var g=175===t.kind?176:175,m=e.getDeclarationOfKind(Ca(t),g);m&&(s=(r=GE(m))&&r.symbol)}var h=174===t.kind?Bs(Ta(t.parent.symbol)):void 0,y=h?h.localTypeParameters:Ll(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!$l(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0})),o=ii(3,"args",32768);a?o.type=dd(o_(a.type)):(o.checkFlags|=65536,o.deferralParent=ct,o.deferralConstituents=[rr],o.deferralWriteConstituents=[rr]);a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,256)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,256))&&(a|=4),n.resolvedSignature=gc(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function ql(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&fb(o_(r.typeExpression))}}function $l(t){var r=fi(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===de.escapedName&&TE(r)===de;case 170:case 172:case 175:case 176:return 165===r.name.kind&&t(r.name);case 209:case 210:return t(r.expression);case 302:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Gl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(!e.isFunctionExpressionOrArrowFunction(i)&&!e.isObjectLiteralMethod(i)&&ql(i)||Wl(i))}}return r}function Hl(e){var t=la(e,e);if(t){var r=_a(t);if(r)return vs(r)}return Le}function Ql(e){if(e.thisParameter)return vs(e.thisParameter)}function Xl(t){if(!t.resolvedTypePredicate){if(t.target){var r=Xl(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,zl(o.kind,o.parameterName,o.parameterIndex,P_(o.type,s))):jr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function ru(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]),r=_g(t)?mg(t):t;return r&&Pl(r,Ye)}}function nu(e,t,r,n){var i=iu(e,Kl(t,e.typeParameters,Vl(e.typeParameters),r));if(n){var a=gb(Zl(i));if(a){var o=mc(a);o.typeParameters=n;var s=mc(i);return s.resolvedReturnType=lu(o),s}}return i}function iu(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=bu(r),a=n.get(i);return a||n.set(i,a=au(t,r)),a}function au(e,t){return S_(e,function(e,t){return p_(e.typeParameters,t)}(e,t),!0)}function ou(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return S_(e,y_(e.typeParameters),!0)}(e)):e}function su(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return nu(t,e.map(t.typeParameters,(function(e){return e.target&&!Zc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function cu(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=y_(r),i=p_(r,e.map(r,(function(e){return Zc(e)||Ve}))),a=e.map(r,(function(e){return P_(e,i)||Ve})),o=0;o1&&(t+=":"+a),n+=a}return t}function xu(e,t){return e?"@".concat(w(e))+(t?":".concat(bu(t)):""):""}function Du(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Xn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,so(n,void 0,2),o,i.length),!s)return je}return 181===t.kind&&gd(t,e.length(t.typeArguments)!==i.length)?Cu(n,t,void 0):Su(n,e.concatenate(n.outerTypeParameters,Kl(Vu(t),i,o,s)))}return Ju(t,r)?n:je}function Nu(t,r,n,i){var a=$s(t);if(a===ze&&k.has(t.escapedName)&&r&&1===r.length)return ip(t,r[0]);var o=_i(t),s=o.typeParameters,c=bu(r)+xu(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=I_(a,p_(s,Kl(r,s,Vl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function Fu(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function wu(e){return e.parent?"".concat(wu(e.parent),".").concat(e.escapedName):e.escapedName}function Pu(e){var t=(164===e.kind?e.right:209===e.kind?e.name:e).escapedText;if(t){var r=164===e.kind?Pu(e.left):209===e.kind?Pu(e.expression):void 0,n=r?"".concat(wu(r),".").concat(t):t,i=Oe.get(n);return i||(Oe.set(n,i=ii(524288,t,1048576)),i.parent=r,i.declaredType=Je),i}return Pe}function Iu(t,r,n){var i=function(t){switch(t.kind){case 181:return t.typeName;case 232:var r=t.expression;if(e.isEntityNameExpression(r))return r}}(t);if(!i)return Pe;var a=sa(i,r,n);return a&&a!==Pe?a:n?Pe:Pu(i)}function Ou(t,r){if(r===Pe)return je;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Ca(n);if(i)return Qb(i,t)}}}(r)||r).flags)return Au(t,r);if(524288&r.flags)return function(t,r){if(1048576&e.getCheckFlags(r)){var n=Vu(t),i=xu(r,n),a=Me.get(i);return a||((a=La(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Me.set(i,a)),a}var o=$s(r),s=_i(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=Vl(s);if(cs.length)return Xn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ao(r),l,s.length),je;var u=Jp(t),d=!u||!Fu(r)&&Fu(u)?void 0:u;return Nu(r,Vu(t),d,Up(d))}return Ju(t,r)?o:je}(t,r);var n=Gs(r);if(n)return Ju(t,r)?Qp(n):je;if(111551&r.flags&&ju(t)){var i=function(e,t){var r=fi(e);if(!r.resolvedJSDocType){var n=vs(t),i=n;if(t.valueDeclaration){var a=203===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=Ou(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(Iu(t,788968),vs(r))}return je}function Mu(e,t){if(3&t.flags||t===e||!fp(e)&&!fp(t))return e;var r="".concat(Ed(e),">").concat(Ed(t)),n=Ee.get(r);if(n)return n;var i=Oa(33554432);return i.baseType=e,i.constraint=t,Ee.set(r,i),i}function Lu(e){return Ud([e.constraint,e.baseType])}function Ru(e){return 187===e.kind&&1===e.elements.length}function Bu(e,t,r){return Ru(t)&&Ru(r)?Bu(e,t.elements[0],r.elements[0]):kp(o_(t))===kp(e)?o_(r):void 0}function ju(e){return!!(8388608&e.flags)&&(181===e.kind||203===e.kind)}function Ju(t,r){return!t.typeArguments||(Xn(t,e.Diagnostics.Type_0_is_not_generic,r?ao(r):t.typeName?e.declarationNameToString(t.typeName):c),!1)}function Uu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Ju(t),Xe;case"Number":return Ju(t),Ye;case"Boolean":return Ju(t),at;case"Void":return Ju(t),st;case"Undefined":return Ju(t),We;case"Null":return Ju(t),He;case"Function":case"function":return Ju(t),qt;case"array":return r&&r.length||Y?void 0:rr;case"promise":return r&&r.length||Y?void 0:Rx(Le);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=o_(r[0]),i=o_(r[1]),a=n===Xe||n===Ye?[pu(n,i,!1)]:e.emptyArray;return Va(void 0,U,e.emptyArray,e.emptyArray,a)}return Le}return Ju(t),Y?void 0:Le}}}function zu(t){var r=fi(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Pe,r.resolvedType=bD(t.parent.expression);var n=void 0,i=void 0,a=788968;ju(t)&&((i=Uu(t))||((n=Iu(t,a,!0))===Pe?n=Iu(t,900095):Iu(t,a),i=Ou(t,n))),i||(i=Ou(t,n=Iu(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Vu(t){return e.map(t.typeArguments,o_)}function Ku(e){var t=fi(e);if(!t.resolvedType){var r=gx(e);t.resolvedType=Qp(jg(r))}return t.resolvedType}function Wu(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return Vd(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ve})))?yh(r[o],(function(n){return xd(t,e.replaceElement(r,o,n))})):je}for(var s=[],c=[],l=[],d=-1,p=-1,_=-1,f=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||qc(c))y(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(_g(c)){var d=Eu(c);if(d.length+s.length>=1e4)return Xn(u,e.isPartOfTypeNode(u)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:je};e.forEach(d,(function(e,t){var r;return y(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else y(Yf(c)&&Pl(c,Ye)||je,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g=0&&p<_&&(s[p]=Id(e.sameMap(s.slice(p,_+1),(function(e,t){return 8&c[p+t]?Dp(e,Ye):e}))),s.splice(p+1,_-p),c.splice(p+1,_-p),null==l||l.splice(p+1,_-p));var h=vd(c,t.readonly,l);return h===wt?Ct:c.length?Su(h,s):h;function y(e,t,r){1&t&&(d=c.length),4&t&&p<0&&(p=c.length),6&t&&(_=c.length),s.push(2&t?Uo(e,!0):e),c.push(t),l&&r?l.push(r):l=void 0}}function Dd(t,r,n){void 0===n&&(n=0);var i=t.target,a=ku(t)-n;return r>i.fixedLength?function(e){var t=mg(e);return t&&dd(t)}(t)||yd(e.emptyArray):yd(Eu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Sd(t){return Id(e.append(e.arrayOf(t.target.fixedLength,(function(e){return Yp(""+e)})),ep(t.target.readonly?Qt:Ht)))}function Td(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Cd(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Ed(e){return e.id}function kd(t,r){return e.binarySearch(t,r,Ed,e.compareValues)>=0}function Ad(t,r){var n=e.binarySearch(t,r,Ed,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Nd(t,r,n){var i=n.flags;if(1048576&i)return Fd(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Be&&(r|=8388608),!G&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Ed,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Fd(e,t,r){for(var n=0,i=r;n=0&&kd(o,We)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||Xp(a)&&kd(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,_p);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return fm(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){if(t.length<2)return t;var n=bu(t),i=ke.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!qc(e)&&uf($c(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var d=61603840&l.flags?e.find(Xc(l),(function(e){return ag(vs(e))})):void 0,p=d&&Qp(vs(d)),_=0,f=t;_1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Xn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,d&&61603840&g.flags){var m=ko(g,d.escapedName);if(m&&ag(m)&&Qp(m)!==p)continue}if(hf(l,g,Ln)&&(!(1&e.getObjectFlags(Ds(l)))||!(1&e.getObjectFlags(Ds(g)))||$_(l,g))){e.orderedRemoveItemAt(t,s);break}}}}return ke.set(n,t),t}(o,!!(524288&s)),!o))return je;if(0===o.length)return 65536&s?4194304&s?He:Qe:32768&s?4194304&s?We:qe:ct}if(!a&&1048576&s){var l=[];wd(l,t);for(var d=[],p=function(t){e.some(l,(function(e){return kd(e.types,t)}))||d.push(t)},_=0,f=o;_0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r||16384&i.flags&&32768&r||pf(i)&&470302716&r)&&e.orderedRemoveItemAt(t,n)}}(s,o)),262144&o&&(s[s.indexOf(We)]=Ge),0===s.length)return Ve;if(1===s.length)return s[0];var c=bu(s)+xu(r,n),l=ye.get(c);if(!l){if(1048576&o)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(32768&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Ud(i);131072&l.flags||r.push(l)}return r}(s);l=Id(d,1,r,n,e.some(d,(function(e){return!!(2097152&e.flags)}))&&Wd(d)>Wd(s)?Pd(2097152,s):void 0)}else l=function(e,t,r){var n=Oa(2097152);return n.objectFlags=Du(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(s,r,n);ye.set(c,l)}return l}function zd(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function Vd(t){var r=zd(t);return!(r>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Xn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Kd(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Kd(e.origin):Wd(e.types):1}function Wd(t){return e.reduceLeft(t,(function(e,t){return e+Kd(t)}),0)}function qd(e,t){var r=Oa(4194304);return r.type=e,r.stringsOnly=t,r}function $d(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=qd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=qd(e,!1))}function Gd(t){return e.isPrivateIdentifier(t)?ct:e.isIdentifier(t)?Yp(e.unescapeLeadingUnderscores(t.escapedText)):Qp(e.isComputedPropertyName(t)?zy(t):JD(t))}function Hd(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=_i(pc(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?Yp("default"):a&&Gd(a)||(e.isKnownSymbol(t)?void 0:Yp(e.symbolName(t)))}if(i&&i.flags&r)return i}return ct}function Qd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(function(e){return Qd(e,r)})))}function Xd(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=Ma(4194304);return t.type=e,t}(t):void 0,a=e.map(Xc(t),(function(e){return Hd(e,r)})),o=e.map(Fl(t),(function(e){return e!==Kr&&Qd(e.keyType,r)?e.keyType===Xe&&8&r?_t:e.keyType:ct}));return Id(e.concatenate(a,o),1,void 0,void 0,i)}function Yd(e){var t=function(e){return 262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=P_(e,Dt))}(e);return yl(t)!==t}function Zd(t){return!!(58982400&t.flags||fg(t)||qc(t)&&(r=t,n=Lc(r),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===n:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.baseType)&&t(r.constraint):!!(268435456&r.flags)&&t(r.type))}(Bc(r)||n))||1048576&t.flags&&e.some(t.types,Yd)||2097152&t.flags&&iD(t,465829888)&&e.some(t.types,pf));var r,n}function ep(t,r,n){return void 0===r&&(r=te),Zd(t=yl(t))?$d(t,r):1048576&t.flags?Ud(e.map(t.types,(function(e){return ep(e,r,n)}))):2097152&t.flags?Id(e.map(t.types,(function(e){return ep(e,r,n)}))):32&e.getObjectFlags(t)?function(e,t,r){var n=Lc(e),i=Rc(e),a=Bc(e.target||e);if(!a&&!r)return i;var o=[];if(Uc(e)){if(mp(i))return $d(e,t);Oc(_l(zc(e)),8576,t,c)}else ph(Pc(i),c);mp(i)&&ph(i,c);var s=r?gh(Id(o),(function(e){return!(5&e.flags)})):Id(o);return 1048576&s.flags&&1048576&i.flags&&bu(s.types)===bu(i.types)?i:s;function c(t){var r=a?P_(a,x_(e.mapper,n,t)):t;o.push(r===Xe?_t:r)}}(t,r,n):t===Be?Be:2&t.flags?ct:131073&t.flags?gt:Xd(t,(n?128:402653316)|(r?0:12584),r===te&&!n)}function tp(e){if(te)return e;var t=(Ar||(Ar=Gu("Extract",2,!0)||Pe),Ar===Pe?void 0:Ar);return t?Nu(t,[e,Xe]):Xe}function rp(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return Vd(r)?yh(r[n],(function(i){return rp(t,e.replaceElement(r,n,i))})):je;if(e.contains(r,Be))return Be;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c=0)return x(wl(r,Ye)),yh(r,(function(e){var t=mg(e)||We;return 1&o?Id([t,We]):t}))}}if(!(98304&n.flags)&&aD(n,402665900)){if(131073&r.flags)return r;var f=Ol(r,n)||wl(r,Xe);if(f)return 2&o&&f.keyType!==Ye?void(c&&Xn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,so(n),so(t))):a&&f.keyType===Xe&&!aD(n,12)?(Xn(_=dp(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,so(n)),1&o?Id([f.type,We]):f.type):(x(f),1&o&&!(r.symbol&&384&r.symbol.flags&&n.symbol&&1024&n.flags&&Ea(n.symbol)===r.symbol)?Id([f.type,We]):f.type);if(131072&n.flags)return ct;if(sp(r))return Le;if(c&&!sD(r)){if(bm(r)){if(Y&&384&n.flags)return Pn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,so(r))),We;if(12&n.flags){var g=e.map(r.properties,(function(e){return vs(e)}));return Id(e.append(g,We))}}if(r.symbol===le&&void 0!==l&&le.exports.has(l)&&418&le.exports.get(l).flags)Xn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),so(r));else if(Y&&!V.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Vv(l,r)){var m=so(r);Xn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,m,m+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Pl(r,Ye))Xn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var h=void 0;if(void 0!==l&&(h=$v(l,r)))void 0!==h&&Xn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,so(r),h);else{var y=function(t,r,n){function i(e){var r=Hc(t,e);if(r){var i=fb(vs(r));return!!i&&Nx(i)>=1&&q_(n,Cx(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,c,n);if(void 0!==y)Xn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,so(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+so(n)+"]",so(r));else if(8192&n.flags){var b=oa(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+b+"]",so(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,so(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,so(n),so(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,so(i),so(r)),Pn.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}if(sp(r))return Le;if(a){_=dp(a);384&n.flags?Xn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,so(r)):12&n.flags?Xn(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,so(r),so(n)):Xn(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,so(n))}return Ao(n)?n:void 0;function x(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Xn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,so(r))}}function dp(e){return 210===e.kind?e.argumentExpression:197===e.kind?e.indexType:165===e.kind?e.expression:e}function pp(e){return!!(77&e.flags)||_p(e)}function _p(t){return!!(134217728&t.flags)&&e.every(t.types,pp)||!!(268435456&t.flags)&&pp(t.type)}function fp(e){return!!hp(e)}function gp(e){return!!(4194304&hp(e))}function mp(e){return!!(8388608&hp(e))}function hp(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,(function(e,t){return e|hp(t)}),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|hp(t.baseType)|hp(t.constraint)),12582912&t.objectFlags):(58982400&t.flags||qc(t)||fg(t)?4194304:0)|(465829888&t.flags&&!_p(t)?8388608:0)}function yp(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===Ot?t:t[n];t[n]=Ot;var i=yp(t.objectType,r),a=yp(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return yp(Dp(t,e),n)}));return n?Ud(i):Id(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=vp(i,a,r);if(s)return t[n]=s}if(fg(i)&&296&a.flags){var c=hg(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(qc(i)){var l=Bc(i);if(!l||q_(l,Lc(i)))return t[n]=yh(xp(i,t.indexType),(function(e){return yp(e,r)}))}return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Ip(e),a=Op(e);if(131072&a.flags&&kp(i)===kp(r)){if(1&r.flags||q_(M_(r),M_(n)))return yp(i,t);if(bp(r,n))return ct}else if(131072&i.flags&&kp(a)===kp(r)){if(!(1&r.flags)&&q_(M_(r),M_(n)))return ct;if(1&r.flags||bp(r,n))return yp(a,t)}return e}(t,r):t}function vp(t,r,n){if(1048576&t.flags||2097152&t.flags&&!Zd(t)){var i=e.map(t.types,(function(e){return yp(Dp(e,r),n)}));return 2097152&t.flags||n?Ud(i):Id(i)}}function bp(e,t){return!!(131072&Id([Cc(e,t),ct]).flags)}function xp(e,t){var r=p_([Lc(e)],[t]),n=v_(e.mapper,r);return P_(jc(e.target||e),n)}function Dp(e,t,r,n,i,a){return void 0===r&&(r=0),Tp(e,t,r,n,i,a)||(n?je:Ve)}function Sp(t,r){return fh(t,(function(t){if(384&t.flags){var n=cc(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:j,instantiationCount:B}),Xn(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),je;T++,B++,j++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return __(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=l_(s,r);return c!==s?bd(t.target,c):t}return 1024&o?function(t,r){var n=P_(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=P_(t.constraintType,r);if(!(4194304&i.flags))return t;var a=rm(P_(t.source,r),n,i);if(a)return a;return t}(t,r):function(t,r,n,i){var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=fi(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=Cs(a,!0);if(Hb(a)){var u=Ll(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(d,(function(e){return C_(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var p=v_(t.mapper,r),_=e.map(c,(function(e){return __(e,p)})),f=n||t.aliasSymbol,g=n?i:l_(t.aliasTypeArguments,r),m=bu(_)+xu(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(bu(c)+xu(s.aliasSymbol,s.aliasTypeArguments),s));var h=s.instantiations.get(m);if(!h){var y=p_(c,_);h=4&s.objectFlags?Cu(t.target,t.node,y,f,g):32&s.objectFlags?k_(s,y,f,g):F_(s,y,f,g),s.instantiations.set(m,h)}return h}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=l_(u,r);if(d===u&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:l_(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?Ud(d,p,_):Id(d,1,p,_)}if(4194304&a)return ep(P_(t.type,r));if(134217728&a)return rp(t.texts,l_(t.types,r));if(268435456&a)return ip(t.symbol,P_(t.type,r));if(8388608&a){p=n||t.aliasSymbol,_=n?i:l_(t.aliasTypeArguments,r);return Dp(P_(t.objectType,r),P_(t.indexType,r),t.accessFlags,void 0,p,_)}if(16777216&a)return w_(t,v_(t.mapper,r),n,i);if(33554432&a){var f=P_(t.baseType,r),g=P_(t.constraint,r);return 8650752&f.flags&&fp(g)?Mu(f,g):3&g.flags||q_(M_(f),M_(g))?f:8650752&f.flags?Mu(f,g):Ud([g,f])}return t}(t,r,n,i);return j--,a}function O_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=P_(e,bt))}function M_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=P_(e,vt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function L_(e,t){return pu(e.keyType,P_(e.type,t),e.isReadonly,e.declaration)}function R_(t){switch(e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 216:case 217:case 172:case 261:return B_(t);case 208:return e.some(t.properties,R_);case 207:return e.some(t.elements,R_);case 226:return R_(t.whenTrue)||R_(t.whenFalse);case 225:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(R_(t.left)||R_(t.right));case 302:return R_(t.initializer);case 215:return R_(t.expression);case 292:return e.some(t.properties,R_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,R_);case 291:var r=t.initializer;return!!r&&R_(r);case 294:var n=t.expression;return!!n&&R_(n)}return!1}function B_(t){return e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&240!==t.body.kind&&R_(t.body)}(t)}function j_(t){return(e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&B_(t)}function J_(t){if(524288&t.flags){var r=$c(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Ra(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Ud(e.map(t.types,J_));return t}function U_(e,t){return hf(e,t,jn)}function z_(e,t){return hf(e,t,jn)?-1:0}function V_(e,t){return hf(e,t,Rn)?-1:0}function K_(e,t){return hf(e,t,Mn)?-1:0}function W_(e,t){return hf(e,t,Mn)}function q_(e,t){return hf(e,t,Rn)}function $_(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return $_(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return $_(t,e)})):58982400&t.flags?$_(il(t)||Ve,r):r===Wt?!!(67633152&t.flags):r===qt?!!(524288&t.flags)&&Wm(t):Ss(t,Ds(r))||$f(r)&&!Gf(r)&&$_(t,Qt)}function G_(e,t){return hf(e,t,Bn)}function H_(e,t){return G_(e,t)||G_(t,e)}function Q_(e,t,r,n,i,a){return xf(e,t,Rn,r,n,i,a)}function X_(e,t,r,n,i,a){return Y_(e,t,Rn,r,n,i,a,void 0)}function Y_(e,t,r,n,i,a,o,s){return!!hf(e,t,r)||(!n||!ef(i,e,t,r,a,o,s))&&xf(e,t,r,n,a,o,s)}function Z_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Z_))}function ef(t,r,n,i,o,c,l){if(!t||Z_(n))return!1;if(!xf(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=Cl(r,0),l=Cl(r,1),u=0,d=[l,c];u1,y=gh(g,ng),v=gh(g,(function(e){return!ng(e)}));if(h){if(y!==ct){var b=yd(Xy(d,0)),x=function(t,r){var n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return iu:Nx(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=hb(t,r=su(r),void 0,s));var d=Ax(t),p=Px(t),_=Px(r);(p||_)&&P_(p||_,c);var f=r.declaration?r.declaration.kind:0,g=!(3&n)&&H&&172!==f&&171!==f&&174!==f,m=-1,h=Ql(t);if(h&&h!==st){var y=Ql(r);if(y){if(!(T=!g&&s(h,y,!1)||s(y,h,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=T}}for(var v=p||_?Math.min(d,u):Math.max(d,u),b=p||_?v-1:-1,x=0;x=Nx(t)&&x=3&&32768&r[0].flags&&65536&r[1].flags&&e.some(r,pf)?67108864:0)}return!!(67108864&t.objectFlags)}return!1}(r))return!0}return!1}function hf(e,t,r){if(Xp(e)&&(e=e.regularType),Xp(t)&&(t=t.regularType),e===t)return!0;if(r!==jn){if(r===Bn&&!(131072&t.flags)&&mf(t,e,r)||mf(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(Lf(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&xf(e,t,r,void 0)}function yf(t,r){return 2048&e.getObjectFlags(t)&&Gy(r.escapedName)}function vf(t,r){for(;;){var n=Xp(t)?t.regularType:4&e.getObjectFlags(t)?t.node?Su(t.target,Eu(t)):Zf(t)||t:3145728&t.flags?bf(t,r):33554432&t.flags?r?t.baseType:Lu(t):25165824&t.flags?yp(t,r):t;if(n===t)return n;t=n}}function bf(t,r){var n=yl(t);if(n!==t)return n;if(2097152&t.flags&&e.some(t.types,pf)){var i=e.sameMap(t.types,(function(e){return vf(e,r)}));if(i!==t.types)return Ud(i)}return t}function xf(t,r,n,a,o,s,l){var d,p,_,f,g,m,h,y=0,v=0,b=0,x=0,D=!1,S=0,T=!1;e.Debug.assert(n!==jn||!a,"no error reporting in identity checking");var C=U(t,r,3,!!a,o);if(h&&M(),D){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:v,targetDepth:b});var k=Xn(a||u,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,so(t),so(r));l&&(l.errors||(l.errors=[])).push(k)}else if(d){if(s){var A=s();A&&(e.concatenateDiagnosticMessageChains(A,d),d=A)}var N=void 0;if(o&&a&&!C&&t.symbol){var F=_i(t.symbol);if(F.originatingImport&&!e.isImportCall(F.originatingImport))if(xf(vs(F.target),r,n,void 0)){var w=e.createDiagnosticForNode(F.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);N=e.append(N,w)}}k=e.createDiagnosticForNodeFromMessageChain(a,d,N);p&&e.addRelatedInfo.apply(void 0,i([k],p,!1)),l&&(l.errors||(l.errors=[])).push(k),l&&l.skipLogging||Pn.add(k)}return a&&l&&l.skipLogging&&0===C&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==C;function P(e){d=e.errorInfo,m=e.lastSkippedInfo,h=e.incompatibleStack,S=e.overrideNextErrorInfo,p=e.relatedInfo}function I(){return{errorInfo:d,lastSkippedInfo:m,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:S,relatedInfo:null==p?void 0:p.slice()}}function O(e,t,r,n,i){S++,m=void 0,(h||(h=[])).push([e,t,r,n,i])}function M(){var t=h||[];h=void 0;var r=m;if(m=void 0,1===t.length)return L.apply(void 0,t[0]),void(r&&B.apply(void 0,i([void 0],r,!1)));for(var n="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var l=""+c[0];n=0===n.length?"".concat(l):e.isIdentifierText(l,e.getEmitScriptTarget(V))?"".concat(n,".").concat(l):"["===l[0]&&"]"===l[l.length-1]?"".concat(n).concat(l):"".concat(n,"[").concat(l,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else{var d=s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",p=s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(d).concat(n,"(").concat(p,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(s.code))}}n?L(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):a.shift();for(var _=0,f=a;_0||QC(l)),f=!!(2048&e.getObjectFlags(l));if(_&&!function(e,t,r){for(var n=0,i=Xc(e);n0&&U(Zl(h[0]),u,1,!1)||y.length>0&&U(Zl(y[0]),u,1,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,m):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,m)}return 0}K(l,u);var v=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?W(l,u,o,c):Q(l,u,o,c,i);if(v)return v}return o&&z(t,r,l,u,s),0}function z(t,r,n,i,o){var s,c,l=!!Zf(t),u=!!Zf(r);n=t.aliasSymbol||l?t:n,i=r.aliasSymbol||u?r:i;var p=S>0;if(p&&S--,524288&n.flags&&524288&i.flags){var _=d;j(n,i,!0),d!==_&&(p=!!d)}if(524288&n.flags&&131068&i.flags)!function(t,r){var n=uo(t.symbol)?so(t,t.symbol.valueDeclaration):so(t),i=uo(r.symbol)?so(r,r.symbol.valueDeclaration):so(r);(Xt===t&&Xe===r||Yt===t&&Ye===r||Zt===t&&at===r||td()===t&&ot===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,i);else if(n.symbol&&524288&n.flags&&Wt===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&i.flags){var f=i.types,g=ev(E.IntrinsicAttributes,a),h=ev(E.IntrinsicClassAttributes,a);if(!No(g)&&!No(h)&&(e.contains(f,g)||e.contains(f,h)))return}else d=Dl(d,r);if(o||!p){if(B(o,n,i),262144&n.flags&&(null===(c=null===(s=n.symbol)||void 0===s?void 0:s.declarations)||void 0===c?void 0:c[0])&&!Yc(n)){var y=D_(n);if(y.constraint=P_(i,f_(n,y)),ol(y)){var v=so(i,n.symbol.declarations[0]);R(e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,v))}}}else m=[n,i]}function K(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&32768)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function W(t,r,i,a){if(1048576&t.flags)return n===Bn?H(t,r,i&&!(131068&t.flags),a):function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return bh(t,-32769);return t}(e,t),s=0;s=o.types.length&&a.length%o.types.length==0){var l=U(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=U(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return $(Ig(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=t.types,o=0,s=a;o25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:o}),0}for(var l=new Array(a.length),u=new e.Set,d=0;d=_-x)?t.target.elementFlags[C]:4,k=r.target.elementFlags[T];if(8&k&&!(8&E))return a&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&E&&!(12&k))return a&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&k&&!(1&E))return a&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(D&&((12&E||12&k)&&(D=!1),D&&(null==s?void 0:s.has(""+T))))){var A=_g(t)?T=_-x?Ag(y[C],!!(E&k&2)):hg(t,b,x)||ct:y[0],N=v[T];if(!(q=U(A,8&E&&4&k?dd(N):Ag(N,!!(2&k)),3,a,void 0,l)))return a&&(_>1||p>1)&&(T=_-x||p-b-x==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,b,p-x-1,T)),0;u&=q}}return u}if(12&r.target.combinedFlags)return 0}var F=!(n!==Mn&&n!==Ln||bm(t)||tg(t)||_g(t)),w=om(t,r,F,!1);if(w)return a&&function(e,t){var r=Tl(e,0),n=Tl(e,1),i=Gc(e);if((r.length||n.length)&&!i.length)return!!(Cl(t,0).length&&r.length||Cl(t,1).length&&n.length);return!0}(t,r)&&function(t,r,n,a){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var l=n.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,l);if(u&&Sl(t,u)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),_=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void L(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Ci(l),Ci(""===p.escapedText?c:p),Ci(""===_.escapedText?c:_))}}var f=e.arrayFrom(am(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===f.length){var g=ao(n,void 0,0,20);L.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,g],co(t,r),!1)),e.length(n.declarations)&&R(e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,g)),s&&d&&S++}else j(t,r,!1)&&(f.length>5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,so(t),so(r),e.map(f.slice(0,4),(function(e){return ao(e)})).join(", "),f.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,so(t),so(r),e.map(f,(function(e){return ao(e)})).join(", ")),s&&d&&S++)}(t,r,w,F),0;if(bm(r))for(var P=0,I=X(Xc(t),s);P0||Cl(t,n=1).length>0;if(i)return e.find(r.types,(function(e){return Cl(e,n).length>0}))}(t,r)||function(t,r){var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a=i&&(n=s,i=l)}}}return n}(t,r)}function Ef(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,kf)}function Af(e){return e===Ht||e===Qt||8&e.objectFlags?z:Ff(e.symbol,e.typeParameters)}function Nf(e){return Ff(e,_i(e).typeParameters)}function Ff(t,r){void 0===r&&(r=e.emptyArray);var n=_i(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:Ed($s(t))}),n.variances=e.emptyArray;for(var i=[],a=function(e){var r=If(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=it;it=function(e){return e?o=!0:a=!0};var c=wf(t,e,Lt),l=wf(t,e,Rt);3===(n=(q_(l,c)?1:0)|(q_(c,l)?2:0))&&q_(wf(t,e,Bt),c)&&(n=4),it=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;ot.id){var a=e;e=t,t=a}var o=r?":"+r:"";return Mf(e)&&Mf(t)?function(e,t,r,n){var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=Eu(e);o";continue}r+="-"+l.id}return r}}(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Rf(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=n)for(var i=zf(e),a=0,o=0,s=0;s=o&&++a>=n)return!0;o=c.id}}return!1}function zf(t){if(524288&t.flags&&!xm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(_g(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function Vf(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(eC(t)!==eC(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Xx(t)!==Xx(r)?0:n(vs(t),vs(r))}function Kf(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Ax(e),i=Ax(t),a=Nx(e),o=Nx(t),s=Fx(e),c=Fx(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=p_(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=_c(a,e.last(Eu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function eg(e){return G?e===ut:e===qe}function tg(e){var t=Xf(e);return!!t&&eg(t)}function rg(e){return _g(e)||!!Sl(e,"0")}function ng(e){return Yf(e)||rg(e)}function ig(e){return!(240512&e.flags)}function ag(e){return!!(109440&e.flags)}function og(t){var r=al(t);return 2097152&r.flags?e.some(r.types,ag):ag(r)}function sg(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,ag):ag(t))}function cg(e){return 1024&e.flags?Vs(e):402653312&e.flags?Xe:256&e.flags?Ye:2048&e.flags?Ze:512&e.flags?at:1048576&e.flags?function(e){var t,r="B".concat(Ed(e));return null!==(t=Kn(r))&&void 0!==t?t:Wn(r,yh(e,cg))}(e):e}function lg(e){return 1024&e.flags&&Xp(e)?Vs(e):128&e.flags&&Xp(e)?Xe:256&e.flags&&Xp(e)?Ye:2048&e.flags&&Xp(e)?Ze:512&e.flags&&Xp(e)?at:1048576&e.flags?yh(e,lg):e}function ug(e){return 8192&e.flags?ot:1048576&e.flags?yh(e,ug):e}function dg(e,t){return TD(e,t)||(e=ug(lg(e))),Qp(e)}function pg(e,t,r,n){e&&ag(e)&&(e=dg(e,t?LT(r,t,n):void 0));return e}function _g(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function fg(e){return _g(e)&&!!(8&e.target.combinedFlags)}function gg(e){return fg(e)&&1===e.target.elementFlags.length}function mg(e){return hg(e,e.target.fixedLength)}function hg(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=ku(e)-r;if(t-1&&(bi(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Zn(Y,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Y?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Y?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 206:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 323:return void Xn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 261:case 172:case 171:case 175:case 176:case 216:case 217:if(Y&&!t.name)return void Xn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Y?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 198:return void(Y&&Xn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Y?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Zn(Y,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Vg(t,r,n){m((function(){!(Y&&65536&e.getObjectFlags(r))||n&&Ly(t)||Ug(r)||zg(t,r,n)}))}function Kg(e,t,r){var n=Ax(e),i=Ax(t),a=wx(e),o=wx(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Ql(e);if(l){var u=Ql(t);u&&r(l,u)}for(var d=0;d0){for(var h=_,y=f;!((y=v(h).indexOf(m,y))>=0);){if(++h===e.length)return;y=0}b(h,y),f+=m.length}else if(f0)for(var D=0,S=r;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,xm);if(r.length){var n=Id(r,2);return e.concatenate(e.filter(t,(function(e){return!xm(e)})),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=Zc(n))&&iD(16777216&i.flags?tl(i):i,406978556)),s=!o&&t.topLevel&&(t.isFixed||!tm(Zl(r),t.typeParameter)),c=o?e.sameMap(a,Qp):s?e.sameMap(a,lg):a;return jg(416&t.priority?Id(c,2):qf(c))}function Tm(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?Sm(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(function(e){return W_(c,e)}))?Dm(a):c;else if(c)o=c;else if(1&t.flags)o=lt;else{var l=ll(a.typeParameter);l&&(o=P_(l,(n=function(t,r){var n=t.inferences.slice(r);return p_(e.map(n,(function(e){return e.typeParameter})),e.map(n,(function(){return Ve})))}(t,r),i=t.nonFixingMapper,n?h_(5,n,i):i)))}}else o=sm(a);a.inferredType=o||Cm(!!(2&t.flags));var u=Zc(a.typeParameter);if(u){var d=P_(u,t.nonFixingMapper);o&&t.compareTypes(o,_c(d,o))||(a.inferredType=o=d)}}return a.inferredType}function Cm(e){return e?Le:Ve}function Em(e){for(var t=[],r=0;r=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function jm(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Ed(Qp(t)));return n!==Ve?n:void 0}function Jm(e,t){var r=Bm(e),n=r&&ko(t,r);return n&&jm(e,n)}function Um(e,t){return wm(e,t)||Om(e,t)}function zm(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&o=2||!(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||298===r.valueDeclaration.parent.kind)return;var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=Xh(n);if(a){if(i){var o=!0;if(e.isForStatement(n))if((u=e.getAncestor(r.valueDeclaration,260))&&u.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=fi(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(fi(a).flags|=65536)}var u;if(e.isForStatement(n))(u=e.getAncestor(r.valueDeclaration,260))&&u.parent===n&&function(t,r){var n=t;for(;215===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(223===n.parent.kind||224===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}if(!i)return!1;return!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(fi(r.valueDeclaration).flags|=4194304);fi(r.valueDeclaration).flags|=524288}i&&(fi(r.valueDeclaration).flags|=262144)}(t,n);var c=function(t,r){var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(259===i.kind&&2&e.getCombinedNodeFlags(n)||167===i.kind){var a=fi(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=Fo(i,0),s=o&&yh(o,al);if(a.flags&=-268435457,s&&1048576&s.flags&&(167!==i.kind||!zh(t)))return 131072&(u=Jh(n.parent,s,s,void 0,r.flowNode)).flags?ct:Bo(n,u)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var c=n.parent;if(c.parameters.length>=2&&j_(c)){var l=Ry(c);if(l&&1===l.parameters.length&&L(l)){var u,d=fl(vs(l.parameters[0]));if(1048576&d.flags&&fh(d,_g)&&!zh(t))return Dp(u=Jh(c,d,d,void 0,r.flowNode),Zp(c.parameters.indexOf(n)-(e.getThisParameter(c)?1:0)))}}}}return vs(t)}(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Xn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ao(n)),je;if(Xx(a))return 3&a.flags?Xn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ao(n)):Xn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ao(n)),je}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=Pi(n)}if(!s)return c;c=$h(c,t,r);for(var d=167===e.getRootDeclaration(s).kind,p=Uh(s),_=Uh(t),f=_!==p,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&th(t.parent.parent),m=134217728&n.flags;_!==p&&(216===_.kind||217===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(Kh(a)&&c!==nr||d&&!zh(a));)_=Uh(_);var h=d||u||f||g||m||function(t,r){if(e.isBindingElement(r)){var n=e.findAncestor(t,e.isBindingElement);return n&&e.getRootDeclaration(n)===e.getRootDeclaration(r)}}(t,s)||c!==Re&&c!==nr&&(!G||!!(16387&c.flags)||Nm(t)||281===t.parent.kind)||234===t.parent.kind||259===s.kind&&s.exclamationToken||16777216&s.flags,y=h?d?function(e,t){if(Do(t.symbol,2)){var r=G&&167===t.kind&&t.initializer&&16777216&qm(e)&&!(16777216&qm(JD(t.initializer)));return Co(),r?$m(e,524288):e}return ms(t.symbol),e}(c,s):c:c===Re||c===nr?We:Dg(c),v=Jh(t,c,y,_);if(Fh(t)||c!==Re&&c!==nr){if(!h&&!_f(c)&&_f(v))return Xn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ao(n)),c}else if(v===Re||v===nr)return Y&&(Xn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ao(n),so(v)),Xn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ao(n),so(v))),eT(v);return l?cg(v):v}function Xh(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function Yh(e,t){(fi(e).flags|=2,170===t.kind||174===t.kind)?fi(t.parent).flags|=4:fi(t).flags|=4}function Zh(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Zh)}function ey(e){return Is($s(Ca(e)))===Qe}function ty(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!ey(i)&&t.flowNode&&!Bh(t.flowNode,!1)&&Xn(t,n)}function ry(t){var r=Nm(t),n=e.getThisContainer(t,!0),i=!1;switch(174===n.kind&&ty(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),217===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.hasDecorators(r.parent)&&Xn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 267:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 174:iy(t,n)&&Xn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 165:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&K<2&&Yh(t,n);var a=ny(t,!0,n);if(Z){var o=vs(le);if(a===o&&i)Xn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Xn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=ny(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Le}function ny(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!dy(t)||e.getThisParameter(n))){var a=Ql(Wl(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&323===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return o_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return o_(i.typeExpression)}(n);if(!a){var o=function(t){if(216===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(172===t.kind&&208===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(216===t.kind&&302===t.parent.kind&&208===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.left.expression;if(216===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=JD(o).symbol;s&&s.members&&16&s.flags&&(a=$s(s).thisType)}else Hb(n)&&(a=$s(Ta(n.symbol)).thisType);a||(a=cy(n))}if(a)return Jh(t,a)}if(e.isClassLike(n.parent)){var c=Ca(n.parent);return Jh(t,e.isStatic(n)?vs(c):$s(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=Ca(n);return l&&vs(l)}if(n.externalModuleIndicator)return We;if(r)return vs(le)}}function iy(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":167===t.kind&&t.parent===r}))}function ay(t){var r=211===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1,o=!1;if(!r){for(;i&&217===i.kind;)e.hasSyntacticModifier(i,512)&&(o=!0),i=e.getSuperContainer(i,!0),a=K<2;i&&e.hasSyntacticModifier(i,512)&&(o=!0)}var s=function(t){if(!t)return!1;if(r)return 174===t.kind;if(e.isClassLike(t.parent)||208===t.parent.kind)return e.isStatic(t)?172===t.kind||171===t.kind||175===t.kind||176===t.kind||170===t.kind||173===t.kind:172===t.kind||171===t.kind||175===t.kind||176===t.kind||170===t.kind||169===t.kind||174===t.kind;return!1}(i),c=0;if(!s){var l=e.findAncestor(t,(function(e){return e===i?"quit":165===e.kind}));return l&&165===l.kind?Xn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Xn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||208===i.parent.kind)?Xn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Xn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),je}if(r||174!==n.kind||ty(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(c=512,!r&&K>=2&&K<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(fi(t).flags|=134217728)}))):c=256,fi(t).flags|=c,172===i.kind&&o&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?fi(i).flags|=4096:fi(i).flags|=2048),a&&Yh(t.parent,i),208===i.parent.kind)return K<2?(Xn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),je):Le;var u=i.parent;if(!e.getClassExtendsHeritageElement(u))return Xn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),je;var d=$s(Ca(u)),p=d&&Ms(d)[0];return p?174===i.kind&&iy(t,i)?(Xn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),je):512===c?Is(d):_c(p,d.thisType):je}function oy(t){return 4&e.getObjectFlags(t)&&t.target===tr?Eu(t)[0]:void 0}function sy(t){return yh(t,(function(t){return 2097152&t.flags?e.forEach(t.types,oy):oy(t)}))}function cy(t){if(217!==t.kind){if(j_(t)){var r=Ry(t);if(r){var n=r.thisParameter;if(n)return vs(n)}}var i=e.isInJSFile(t);if(Z||i){var a=function(e){return 172!==e.kind&&175!==e.kind&&176!==e.kind||208!==e.parent.kind?216===e.kind&&302===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ky(a,void 0),s=a,c=o;c;){var l=sy(c);if(l)return P_(l,Yg(wy(a)));if(302!==s.parent.kind)break;c=ky(s=s.parent.parent,void 0)}return jg(o?Sg(o):bD(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(225===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(u);if(_.commonJsModuleIndicator&&Am(p)===_.symbol)return}return jg(bD(p))}}}}}function ly(t){var r=t.parent;if(j_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=kb(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return xb(i,a,i.length,Le,void 0,0);var o=fi(n),s=o.resolvedSignature;o.resolvedSignature=Jr;var c=a=i?Dp(vs(n.parameters[i]),Zp(r-i),256):Cx(n,r)}function my(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return Am(t);if(e.isPropertyAccessExpression(t)){var r=RD(t.expression);return e.isPrivateIdentifier(t.name)?i(r,t.name):Sl(r,t.name.escapedText)}if(e.isElementAccessExpression(t)){var n=bD(t.argumentExpression);if(!nc(n))return;return Sl(r=RD(t.expression),cc(n))}return;function i(e,t){var r=Pv(t.escapedText,t);return r&&Mv(e,r)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&P_(o_(c),_i(a).mapper)||(e.isPropertyDeclaration(o)?o.initializer&&RD(t.left):void 0):0===i?RD(t.left):yy(t);case 5:if(hy(t,i))return yy(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return o_(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=bi(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return vy(o_(p),_)}return}}return e.isInJSFile(s)?void 0:RD(t.left)}return RD(t.left);case 1:case 6:case 3:case 2:var f=void 0;2!==i&&(f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration),f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var g=f&&e.getEffectiveTypeAnnotationNode(f);return g?o_(g):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=Fy(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?RD(i):s;case 55:case 27:return t===o?Fy(n,r):void 0;default:return}}function hy(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=bi(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function yy(t){if(!t.symbol)return RD(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=o_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=ry(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&vy(a,o)||void 0}}function vy(t,r,n){return yh(t,(function(t){var i,a;if(qc(t)&&!t.declaration.nameType){var o=Rc(t),s=il(o)||o,c=n||Yp(e.unescapeLeadingUnderscores(r));if(q_(c,s))return xp(t,c)}else if(3670016&t.flags){var l=Sl(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&So(a,0)>=0?void 0:vs(l);if(_g(t)){var u=mg(t);if(u&&e.isNumericLiteralName(r)&&+r>=0)return u}return null===(i=kl(Nl(t),n||Yp(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function by(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return xy(t,r)}function xy(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&uy(t,r);if(i)return i;var a=ky(n,r);if(a){if(sc(t)){var o=Ca(t);return vy(a,o.escapedName,_i(o).nameType)}if(t.name){var s=Gd(t.name);return yh(a,(function(e){var t;return null===(t=kl(Nl(e),s))||void 0===t?void 0:t.type}),!0)}}}function Dy(e,t){return e&&(vy(e,""+t)||yh(e,(function(e){return fT(1,e,We,void 0,!1)}),!0))}function Sy(t,r){var n=t.parent;return e.isJsxAttributeLike(n)?Fy(t,r):e.isJsxElement(n)?function(t,r,n){var i=ky(t.openingElement.tagName,n),a=av(nv(t));if(i&&!Ao(i)&&a&&""!==a){var o=e.getSemanticJsxChildren(t.children),s=o.indexOf(r),c=vy(i,a);return c&&(1===o.length?c:yh(c,(function(e){return Yf(e)?Dp(e,Zp(s)):e}),!0))}}(n,t,r):void 0}function Ty(t,r){if(e.isJsxAttribute(t)){var n=ky(t.parent,r);if(!n||Ao(n))return;return vy(n,t.name.escapedText)}return Fy(t.parent,r)}function Cy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 111:case 96:case 105:case 79:case 156:return!0;case 209:case 215:return Cy(e.expression);case 294:return!e.expression||Cy(e.expression)}return!1}function Ey(t,r){return function(t,r){var n=Bm(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&302===e.kind&&e.symbol.escapedName===n&&Cy(e.initializer)})),a=i&&jD(i.initializer);return a&&jm(t,a)}(r,t)||Ef(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&302===e.kind&&Cy(e.initializer)&&Lm(r,e.symbol.escapedName)})),(function(e){return[function(){return jD(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Xc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Lm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),q_,r)}function ky(t,r){var n=Ay(e.isObjectLiteralMethod(t)?by(t,r):Fy(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=yh(n,_l,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?Ey(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return Ef(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&291===e.kind&&Lm(r,e.symbol.escapedName)&&(!e.initializer||Cy(e.initializer))})),(function(e){return[e.initializer?function(){return jD(e.initializer)}:function(){return rt},e.symbol.escapedName]})),e.map(e.filter(Xc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Lm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),q_,r)}(t,i):i}}function Ay(t,r,n){if(t&&iD(t,465829888)){var i=wy(r);if(i&&1&n&&e.some(i.inferences,PD))return Ny(t,i.nonFixingMapper);if(null==i?void 0:i.returnMapper){var a=Ny(t,i.returnMapper);return 1048576&a.flags&&kd(a.types,tt)&&kd(a.types,nt)?gh(a,(function(e){return e!==tt&&e!==nt})):a}}return t}function Ny(t,r){return 465829888&t.flags?P_(t,r):1048576&t.flags?Id(e.map(t.types,(function(e){return Ny(e,r)})),0):2097152&t.flags?Ud(e.map(t.types,(function(e){return Ny(e,r)}))):t}function Fy(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 259:case 167:case 170:case 169:case 206:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=uy(n,r);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name)&&n.name.elements.length>0)return ts(n.name,!0,!1)}}(t,r);case 217:case 252:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=_y(n,r);if(i){var a=e.getFunctionFlags(n);if(1&a){var o=!!(2&a);1048576&i.flags&&(i=gh(i,(function(e){return!!LT(1,e,o)})));var s=LT(1,i,!!(2&a));if(!s)return;i=s}if(2&a){var c=yh(i,DS);return c&&Id([c,Bx(c)])}return i}}}(t,r);case 228:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=e.getFunctionFlags(n),a=_y(n,r);if(a){var o=!!(2&i);return!t.asteriskToken&&1048576&a.flags&&(a=gh(a,(function(e){return!!LT(1,e,o)}))),t.asteriskToken?a:LT(0,a,o)}}}(n,r);case 222:return function(e,t){var r=Fy(e,t);if(r){var n=DS(r);return n&&Id([n,Bx(n)])}}(n,r);case 211:case 218:if(e.isInEtsFile(n)&&101===n.expression.kind)return Xe;case 212:return fy(n,t);case 214:case 233:return e.isConstTypeReference(n.type)?o(n):o_(n.type);case 225:return my(t,r);case 302:case 303:return xy(n,r);case 304:return Fy(n.parent,r);case 207:var i=n;return Dy(ky(i,r),e.indexOfNode(i.elements,t));case 226:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Fy(r,t):void 0}(t,r);case 238:return e.Debug.assert(227===n.parent.kind),function(e,t){if(213===e.parent.kind)return fy(e.parent,t)}(n.parent,t);case 215:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):o_(a.typeExpression.type):Fy(n,r);case 234:return Fy(n,r);case 237:return o_(n.type);case 277:return os(n);case 294:return Sy(n,r);case 291:case 293:return Ty(n,r);case 286:case 285:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return gy(t,0)}(n,r)}}function o(e){return Fy(e,r)}}function wy(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Py(t,r){return 0!==Sb(r)?function(e,t){var r=Ox(e,Ve);r=Iy(t,nv(t),r);var n=ev(E.IntrinsicAttributes,t);No(n)||(r=Cc(n,r));return r}(t,r):function(t,r){var n=nv(r),i=(o=n,iv(E.ElementAttributesPropertyNameContainer,o)),a=void 0===i?Ox(t,Ve):""===i?Zl(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return Nu(a,Kl([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Su(o,Kl([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function Oy(t){return e.getStrictOptionValue(V,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?Sc(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=p_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Ax(e),i=Ax(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Fx(e)||Fx(t),l=c&&!Fx(a),u=new Array(s+(l?1:0)),d=0;d=Nx(a)&&d>=Nx(o),h=d>=n?void 0:xx(e,d),y=d>=i?void 0:xx(t,d),v=ii(1|(m&&!g?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=g?dd(f):f,u[d]=v}if(l){var b=ii(1,"args");b.type=dd(Cx(o,s)),o===t&&(b.type=P_(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Id([vs(e),P_(vs(t),r)]);return Pg(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),l=gc(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));l.compositeKind=2097152,l.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(l.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?v_(t.mapper,n):n);return l}(t,r):void 0:t})):void 0}function My(t,r){var n=Cl(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n0&&(s=Wp(s,j(),t.symbol,g,u),o=[],a=e.createSymbolTable(),h=!1,y=!1,v=!1),$y(N=yl(JD(E.expression)))){var M=Kp(N,u);if(i&&Yy(M,i,E),S=o.length,No(s))continue;s=Wp(s,M,t.symbol,g,u)}else Xn(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=je;continue}e.Debug.assert(175===E.kind||176===E.kind),NC(E)}!A||8576&A.flags?a.set(k.escapedName,k):q_(A,ft)&&(q_(A,Ye)?y=!0:q_(A,ot)?v=!0:h=!0,n&&(m=!0)),o.push(k)}if(l){var L=e.findAncestor(c.pattern.parent,(function(e){return 259===e.kind||225===e.kind||167===e.kind}));if(304!==e.findAncestor(t,(function(e){return e===L||304===e.kind})).kind)for(var R=0,B=Xc(c);R0&&(s=Wp(s,j(),t.symbol,g,u),o=[],a=e.createSymbolTable(),h=!1,y=!1),yh(s,(function(e){return e===Ct?j():e}))):j();function j(){var r=[];h&&r.push(Ky(t,S,o,Xe)),y&&r.push(Ky(t,S,o,Ye)),v&&r.push(Ky(t,S,o,ot));var i=Va(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|g,f&&(i.objectFlags|=4096),m&&(i.objectFlags|=512),n&&(i.pattern=t),i}}function $y(t){var r=vg(yh(t,al));return!!(126615553&r.flags||3145728&r.flags&&e.every(r.types,$y))}function Gy(t){return e.stringContains(t,"-")}function Hy(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Qy(e,t){return e.initializer?ED(e.initializer,t):rt}function Xy(e,t){for(var r=[],n=0,i=e.children;n0&&(c=Wp(c,E(),i.symbol,d,!1),s=e.createSymbolTable()),Ao(h=yl(bD(g.expression,r)))&&(l=!0),$y(h)?(c=Wp(c,h,i.symbol,d,!1),o&&Yy(h,o,g)):(Xn(g.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?Ud([n,h]):h)}l||s.size>0&&(c=Wp(c,E(),i.symbol,d,!1));var b=284===t.parent.kind?t.parent:void 0;if(b&&b.openingElement===t&&b.children.length>0){var x=Xy(b,r);if(!l&&p&&""!==p){u&&Xn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(p));var D=ky(t.attributes,void 0),S=D&&vy(D,p),T=ii(4,p);T.type=1===x.length?x[0]:S&&_h(S,rg)?yd(x):dd(Id(x)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(p),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var C=e.createSymbolTable();C.set(p,T),c=Wp(c,Va(i.symbol,C,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,d,!1)}}return l?Le:n&&c!==Et?Ud([n,c]):n||(c===Et?E():c);function E(){d|=re;var t=Va(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|d,t}}(t.parent,r)}function ev(e,t){var r=nv(t),n=r&&ba(r),i=n&&mi(n,e,788968);return i?$s(i):je}function tv(t){var r=fi(t);if(!r.resolvedSymbol){var n=ev(E.IntrinsicElements,t);if(No(n))return Y&&Xn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(E.IntrinsicElements)),r.resolvedSymbol=Pe;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Sl(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Pl(n,Xe)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Xn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+E.IntrinsicElements),r.resolvedSymbol=Pe)}return r.resolvedSymbol}function rv(t){var r=t&&e.getSourceFileOfNode(t),n=r&&fi(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(V,r),V);if(i){var a=da(t,i,e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Pe?Ta(Xi(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function nv(e){var t=e&&fi(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=rv(e);if(!r||r===Pe){var n=qn(e);r=bi(e,n,1920,void 0,n,!1)}if(r){var i=Xi(mi(ba(Xi(r)),E.JSX,1920));if(i&&i!==Pe)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Xi(Hu(E.JSX,1920,void 0));return a!==Pe?a:void 0}function iv(t,r){var n=r&&mi(r.exports,t,788968),i=n&&$s(n),a=i&&Xc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Xn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function av(e){return iv(E.ElementChildrenAttributeNameContainer,e)}function ov(t,r){if(4&t.flags)return[Jr];if(128&t.flags){var n=sv(t,r);return n?[Wb(r,n)]:(Xn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+E.IntrinsicElements),e.emptyArray)}var i=_l(t),a=Cl(i,1);return 0===a.length&&(a=Cl(i,0)),0===a.length&&1048576&i.flags&&(a=Dc(e.map(i.types,(function(e){return ov(e,r)})))),a}function sv(t,r){var n=ev(E.IntrinsicElements,r);if(!No(n)){var i=t.value,a=Sl(n,e.escapeLeadingUnderscores(i));if(a)return vs(a);var o=Pl(n,Xe);return o||void 0}return Le}function cv(t){e.Debug.assert(Hy(t.tagName));var r=fi(t);if(!r.resolvedJsxElementAttributesType){var n=tv(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=vs(n)||je:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Pl(ev(E.IntrinsicElements,t),Xe)||je:r.resolvedJsxElementAttributesType=je}return r.resolvedJsxElementAttributesType}function lv(e){var t=ev(E.ElementClass,e);if(!No(t))return t}function uv(e){return ev(E.Element,e)}function dv(e){var t=uv(e);if(t)return Id([t,He])}function pv(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return ok(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),JE(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=2){var c=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfAccessExpression(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.tryGetResolvedSignatureWithoutCheck(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(_e,r);c&&ex(c,r.name,i,s.checkConfig)}else null===(n=null==a?void 0:a.declarations)||void 0===n||n.forEach((function(t){e.isIdentifier(r.name)&&ex(t,r.name,i,s.checkConfig)}))}(r),32&r.flags?function(e,t){var r=JD(e.expression),n=kg(r,e.expression);return Eg(Rv(e,e.expression,kv(n,e.expression),e.name,t),e,n!==r)}(r,n):Rv(r,r.expression,xv(r.expression),r.name,n)}function Fv(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?kv(ry(t.left),t.left):xv(t.left);return Rv(t,t.left,n,t.right,r)}function wv(t){for(;215===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Pv(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Iv(t){!function(t){if(!e.getContainingClass(t))return ok(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return ok(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&102===t.parent.operatorToken.kind;if(!Ov(t)&&!r)return ok(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}}(t);var r=Ov(t);return r&&Xv(r,void 0,!1),Le}function Ov(t){if(e.isExpressionNode(t)){var r=fi(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=Pv(t.escapedText,t)),r.resolvedSymbol}}function Mv(e,t){return Sl(e,t.escapedName)}function Lv(t,r){return(Vo(r)||e.isThisProperty(t)&&Ko(r))&&e.getThisContainer(t,!0)===Wo(r)}function Rv(r,n,i,a,o){var s,l,u,d=fi(n).resolvedSymbol,p=e.getAssignmentTargetKind(r),_=_l(0!==p||wv(r)?jg(i):i),f=Ao(_)||_===lt;if(e.isPrivateIdentifier(a)){K<99&&(0!==p&&wE(r,1048576),1!==p&&wE(r,524288));var g=Pv(a.escapedText,a);if(p&&g&&g.valueDeclaration&&e.isMethodDeclaration(g.valueDeclaration)&&ok(a,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(a)),f){if(g)return No(_)?je:_;if(!e.getContainingClass(a))return ok(a,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Le}if(!(l=g?Mv(i,g):void 0)&&function(t,r,n){var i,a=Xc(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var o=Ci(r);if(i){var s=e.Debug.checkDefined(i.valueDeclaration),l=e.Debug.checkDefined(e.getContainingClass(s));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return l===e}))){var p=Xn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,so(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return Xn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Ci(l.name||c)),!0}return!1}(i,a,g))return je;l&&65536&l.flags&&!(32768&l.flags)&&1!==p&&Xn(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(f)return e.isIdentifier(n)&&d&&Hh(d,r),No(_)?je:_;if(!(l=Sl(_,a.escapedText,!1,164===r.kind))){var m=e.getEtsComponentExpressionInnerCallExpressionNode(r)||e.getRootEtsComponentInnerCallExpressionNode(r),h=e.getSourceFileOfNode(r).locals;if(m&&(null==h?void 0:h.has(a.escapedText))){var y=null==h?void 0:h.get(a.escapedText),v=e.getAllDecorators(null==y?void 0:y.valueDeclaration),b=79===m.expression.kind?m.expression.escapedText:void 0;e.getEtsExtendDecoratorsComponentNames(v,V).find((function(e){return e===b}))&&(l=y),e.hasEtsStylesDecoratorNames(v,V)&&(l=y)}var x=null===(s=e.getContainingStruct(r))||void 0===s?void 0:s.symbol.members;if(m&&(null==x?void 0:x.has(a.escapedText))){var D=null==x?void 0:x.get(a.escapedText);v=e.getAllDecorators(null==D?void 0:D.valueDeclaration);e.hasEtsStylesDecoratorNames(v,V)&&(l=D)}}}if(e.isIdentifier(n)&&d&&(V.isolatedModules||!l||!(sE(l)||8&l.flags&&305===r.parent.kind)||e.shouldPreserveConstEnums(V)&&Gh(r))&&Hh(d,r),l){ri(l)&&lp(r,l)&&l.declarations&&ni(a,l.declarations,a.escapedText),function(r,n,i){var a,o,s=r.valueDeclaration;if(!s||e.getSourceFileOfNode(n).isDeclarationFile)return;var c=e.idText(i);if(!Jv(n)||function(t){return e.isPropertyDeclaration(t)&&!e.hasAccessorModifier(t)&&t.questionToken}(s)||e.isAccessExpression(n)&&e.isAccessExpression(n.expression)||hi(s,i)||e.isMethodDeclaration(s)&&32&e.getCombinedModifierFlags(s)||!V.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;var t=vs(e.parent);for(;;){if(!(t=t.symbol&&Uv(t)))return!1;var r=Sl(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(r))262!==s.kind||181===n.parent.kind||16777216&s.flags||hi(s,i)||(o=Xn(i,e.Diagnostics.Class_0_used_before_its_declaration,c));else{var l=!1,u=e.getAllDecorators(null==r?void 0:r.valueDeclaration);u&&(l=null===(a=t.getCompilerOptions().ets)||void 0===a?void 0:a.propertyDecorators.some((function(t){return null==u?void 0:u.some((function(r){return!(!e.isIdentifier(r.expression)||t.name!==r.expression.escapedText.toString()||t.needInitialization)}))}))),l||(o=Xn(i,e.Diagnostics.Property_0_is_used_before_its_initialization,c))}o&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_here,c))}(l,r,a),Xv(l,r,Yv(n,d)),fi(r).resolvedSymbol=l;var S=e.isWriteAccess(r);if(yv(r,107===n.kind,S,_,l),Yx(r,l,p))return Xn(a,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(a)),je;u=Lv(r,l)?Re:S?ys(l):vs(l)}else{var T=e.isPrivateIdentifier(a)||0!==p&&gp(i)&&!e.isThisTypeParameter(i)?void 0:Ml(_,a.escapedText);if(!T||!T.type){var C=Bv(r,i.symbol,!0);return!C&&sp(i)?Le:i.symbol===le?(le.exports.has(a.escapedText)&&418&le.exports.get(a.escapedText).flags?Xn(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(a.escapedText),so(i)):Y&&Xn(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,so(i)),Le):(a.escapedText&&!ki(r)&&zv(a,e.isThisTypeParameter(i)?_:i,C),je)}T.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Xn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,so(_)),u=V.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?Id([T.type,We]):T.type,V.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Xn(a,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(a.escapedText)),T.declaration&&268435456&e.getCombinedNodeFlags(T.declaration)&&ni(a,[T.declaration],a.escapedText)}return jv(r,l,u,a,o)}function Bv(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===V.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&gi(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&109===t.expression.kind)}return!1}function jv(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return Ag(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!CC(r.declarations))return n;if(n===Re)return $o(t,r);n=$h(n,t,a);var s=!1;if(G&&X&&e.isAccessExpression(t)&&109===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&rC(c)&&!e.isStatic(c)){var l=Uh(t);174!==l.kind||l.parent!==c.parent||16777216&c.flags||(s=!0)}}else G&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Uh(t)===Uh(r.valueDeclaration)&&(s=!0);var u=Jh(t,n,s?Dg(n):n);return s&&!_f(n)&&_f(u)?(Xn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,ao(r)),n):o?cg(u):u}function Jv(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 170:return!0;case 302:case 172:case 175:case 176:case 304:case 165:case 238:case 294:case 291:case 292:case 293:case 286:case 232:case 297:return!1;case 217:case 243:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function Uv(e){var t=Ms(e);if(0!==t.length)return Ud(t)}function zv(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o=0)return d>=Nx(n)&&(Fx(n)||ds)return!1;if(o||a>=c)return!0;for(var p=a;p=a&&r.length<=i}function fb(e){return mb(e,0,!1)}function gb(e){return mb(e,0,!1)||mb(e,1,!1)}function mb(e,t,r){if(524288&e.flags){var n=$c(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function hb(t,r,n,i){var a=qg(t.typeParameters,t,0,i),o=wx(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Kg(s?S_(r,s):r,t,(function(e,t){hm(a.inferences,e,t)})),n||Wg(r,t,(function(e,t){hm(a.inferences,e,t,128)})),nu(t,Em(a),e.isInJSFile(r.declaration))}function yb(t){if(!t)return st;var r=JD(t);return e.isOptionalChainRoot(t.parent)?Sg(r):e.isOptionalChain(t.parent)?Cg(r):r}function vb(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Py(t,e),a=vD(e.attributes,i,n,r);return hm(n.inferences,a,i),Em(n)}(t,r,i,a);if(168!==t.kind){var o=e.every(r.typeParameters,(function(e){return!!ll(e)})),s=Fy(t,o?8:0);if(s){var c=Zl(r);if(Zg(c)){var l=wy(t);if(!(!o&&Fy(t,8)!==s)){var u=Yg(function(t,r){return void 0===r&&(r=0),t&&$g(e.map(t.inferences,Xg),t.signature,t.flags|r,t.compareTypes)}(l,1)),d=P_(s,u),p=fb(d),_=p&&p.typeParameters?lu(iu(p,p.typeParameters)):d;hm(a.inferences,_,c,128)}var f=qg(r.typeParameters,r,a.flags),g=P_(s,l&&l.returnMapper);hm(f.inferences,g,c),a.returnMapper=e.some(f.inferences,wD)?Yg(function(t){var r=e.filter(t.inferences,wD);return r.length?$g(e.map(r,Xg),t.signature,t.flags,t.compareTypes):void 0}(f)):void 0}}}var m=Px(r),h=m?Math.min(Ax(r)-1,n.length):n.length;if(m&&262144&m.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===m}));y&&(y.impliedArity=e.findIndex(n,cb,h)<0?n.length-h:void 0)}var v=Ql(r);if(v&&Zg(v)){var b=Cb(t);hm(a.inferences,yb(b),v)}for(var x=0;x=n-1&&cb(d=t[n-1]))return bb(236===d.kind?d.type:vD(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;ud&&(d=y)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=lb(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=229===r.kind&&(rn?JD(r.expression):bD(r.expression));n&&_g(n)?e.forEach(Eu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Eb(r,4&a?dd(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=r;dl&&(l=f),n.length1&&(v=$(g,Mn,x,S)),v||(v=$(g,Rn,x,S)),v)return v;if(v=function(t,r,n,i,a){return e.Debug.assert(r.length>0),NC(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n,i){var a=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ue?n.length:ue),o=r[a],s=o.typeParameters;if(!s)return o;var c=ab(t)?t.typeArguments:void 0,l=c?au(o,function(e,t,r){var n=e.map(KC);for(;n.length>t.length;)n.pop();for(;n.length3){var T,C=m[m.length-1];m.length>3&&(T=e.chainDiagnosticMessages(T,e.Diagnostics.The_last_overload_gave_the_following_error),T=e.chainDiagnosticMessages(T,e.Diagnostics.No_overload_matches_this_call));var E=Tb(t,b,C,Rn,0,!0,(function(){return T}));if(E)for(var k=0,A=E;k3&&e.addRelatedInfo(N,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_last_overload_is_declared_here)),q(C,N),Pn.add(N)}else e.Debug.fail("No error for last overload signature")}else{for(var F=[],w=0,P=Number.MAX_VALUE,I=0,O=0,M=function(r){var n=Tb(t,b,r,Rn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,g.length,oo(r))}));n?(n.length<=P&&(P=n.length,I=O),w=Math.max(w,n.length),F.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},B=0,j=m;B1?F[I]:e.flatten(F);e.Debug.assert(J.length>0,"No errors reported for 3 or fewer overload signatures");var U=e.chainDiagnosticMessages(e.map(J,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),z=i([],e.flatMap(J,(function(e){return e.relatedInformation})),!0),V=void 0;if(e.every(J,(function(e){return e.start===J[0].start&&e.length===J[0].length&&e.file===J[0].file}))){var K=J[0];V={file:K.file,start:K.start,length:K.length,code:U.code,category:U.category,messageText:U,relatedInformation:z}}else V=e.createDiagnosticForNodeFromMessageChain(t,U,z);q(m[0],V),Pn.add(V)}else if(h)Pn.add(wb(t,[h],b));else if(y)Db(y,t.typeArguments,!0,s);else{var W=e.filter(r,(function(e){return _b(e,c,l)}));0===W.length?Pn.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Vl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,p):o1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(l){var u=Wl(l),d=!u.typeParameters;$([u],Rn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=a,h=o,y=s}function $(r,n,i,o){if(void 0===o&&(o=!1),m=void 0,h=void 0,y=void 0,i){var s=r[0];if(e.some(c)&&!l||!pb(t,b,s,o))return;return Tb(t,b,s,n,0,!1,void 0)?void(m=[s]):s}for(var u=0;u=0&&Xn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=xv(t.expression);if(a===lt)return Vr;if(No(a=_l(a)))return sb(t);if(Ao(a))return t.typeArguments&&Xn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ob(t);var o=Cl(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||174!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=$s(n.parent.symbol);if(!jC(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=KC(s);if(Jb(n.parent.symbol,c))return!0}return 8&i&&Xn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,so(o)),16&i&&Xn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,so(o)),!1}return!0}(t,o[0]))return sb(t);if(jb(o,(function(e){return!!(4&e.flags)})))return Xn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sb(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,256)?(Xn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sb(t)):Pb(t,o,r,n,0)}var c=Cl(a,0);if(c.length){var l=Pb(t,c,r,n,0);return Y||(l.declaration&&!Hb(l.declaration)&&Zl(l)!==st&&Xn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ql(l)===st&&Xn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return zb(t.expression,a,1),sb(t)}function jb(t,r){return e.isArray(t)?e.some(t,(function(e){return jb(e,r)})):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function Jb(t,r){var n=Ms(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Ec(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l1)return ok(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(0===r.length||r.length>2)return ok(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);if(n)return ok(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return jx(t,Le);for(var r=t.arguments[0],n=bD(r),i=t.arguments.length>1?bD(t.arguments[1]):void 0,a=2;a=n-1)return r===n-1?a:dd(Dp(a,Ye));for(var o=[],s=[],c=[],l=r;l0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0;l--){if(131072&gh(Cx(t,l),ub).flags)break;a=l}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Fx(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]);return!_g(t)||t.target.hasRestElement}return!1}function wx(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]);if(!_g(t))return t;if(t.target.hasRestElement)return Dd(t,t.target.fixedLength)}}function Px(e){var t=wx(e);return!t||$f(t)||Ao(t)||131072&yl(t).flags?void 0:t}function Ix(e){return Ox(e,ct)}function Ox(e,t){return e.parameters.length>0?Cx(e,0):t}function Mx(t,r){var n=_i(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?rs(i,!0):vs(t)),i&&79!==i.name.kind&&(n.type===Ve&&(n.type=ts(i.name)),Lx(i.name,n.type))}}function Lx(t,r){for(var n=0,i=t.elements;n0&&(n=Id(u,2)):l=ct;var d=function(t,r){var n=[],i=[],a=!!(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?JD(t.expression,r):qe;if(e.pushIfUnique(n,zx(t,s,Le,a)),t.asteriskToken){var c=bT(s,a?19:17,t.expression);o=c&&c.nextType}else o=Fy(t,void 0);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),p=d.yieldTypes,_=d.nextTypes;i=e.some(p)?Id(p,2):void 0,a=e.some(_)?Ud(_):void 0}else{var f=qx(t,r);if(!f)return 2&o?jx(t,ct):ct;if(0===f.length)return 2&o?jx(t,st):st;n=Id(f,2)}if(n||i||a){if(i&&Vg(t,i,3),n&&Vg(t,n,1),a&&Vg(t,a,2),n&&ag(n)||i&&ag(i)||a&&ag(a)){var g=Ly(t),m=g?g===Wl(t)?c?void 0:n:Ay(Zl(g),t,void 0):void 0;c?(i=pg(i,m,0,s),n=pg(n,m,1,s),a=pg(a,m,2,s)):n=function(e,t,r){return e&&ag(e)&&(e=dg(e,t?r?fS(t):t:void 0)),e}(n,m,s)}i&&(i=jg(i)),n&&(n=jg(n)),a&&(a=jg(a))}return c?Ux(i||ct,n||l,a||py(2,t)||Ve,s):s?Rx(n||l):n||l}function Ux(e,t,r,n){var i=n?Qr:Xr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ve,t=i.resolveIterationType(t,void 0)||Ve,r=i.resolveIterationType(r,void 0)||Ve,a===wt){var o=i.getGlobalIterableIteratorType(!1),s=o!==wt?TT(o,i):void 0,c=s?s.returnType:Le,l=s?s.nextType:We;return q_(t,c)&&q_(l,r)?o!==wt?ld(o,[e]):(i.getGlobalIterableIteratorType(!0),Ct):(i.getGlobalGeneratorType(!0),Ct)}return ld(a,[e,t,r])}function zx(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?_T(i?19:17,r,n,a):r;return i?xS(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Vx(e,t,r){for(var n=0,i=0;i=t?r[i]:void 0;n|=void 0!==a?b.get(a)||32768:0}return n}function Kx(t){var r=fi(t);if(void 0===r.isExhaustive){r.isExhaustive=0;var n=function(t){if(220===t.expression.kind){var r=uh(t);if(!r)return!1;var n=al(bD(t.expression.expression)),i=Vx(0,0,r);return 3&n.flags?!(556800&~i):!_h(n,(function(e){return(qm(e)&i)===i}))}var a=bD(t.expression);if(!sg(a))return!1;var o=lh(t);if(!o.length||e.some(o,ig))return!1;return s=yh(a,Qp),c=o,1048576&s.flags?!e.forEach(s.types,(function(t){return!e.contains(c,t)})):e.contains(c,s);var s,c}(t);0===r.isExhaustive&&(r.isExhaustive=n)}else 0===r.isExhaustive&&(r.isExhaustive=!1);return r.isExhaustive}function Wx(e){return e.endFlowNode&&Mh(e.endFlowNode)}function qx(t,r){var n=e.getFunctionFlags(t),i=[],a=Wx(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var l=bD(c,r&&-9&r);2&n&&(l=yS(gS(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 216:case 217:return!0;case 172:return 208===e.parent.kind;default:return!1}}(t))return!(G&&i.length&&a)||Hb(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,We),i}function $x(t,r){return void m((function(){var n,i,a=e.getFunctionFlags(t),o=r&&jT(r,a);if(o&&iD(o,16385))return;if(e.isFunctionDeclaration(t)&&t.illegalDecorators&&r){var s,c=e.getEtsExtendDecoratorsComponentNames(t.illegalDecorators,V);if(0!==c.length)return null===(n=V.ets)||void 0===n||n.extend.components.forEach((function(t){var r=t.name,n=t.type;r===e.last(c)&&(s=n)})),(null===(i=null==r?void 0:r.symbol)||void 0===i?void 0:i.escapedName)===s?void 0:void Xn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend);if(e.getEtsStylesDecoratorComponentNames(t.illegalDecorators,V).length>0)return p()}if(e.isMethodDeclaration(t)&&t.modifiers&&t.modifiers.length&&r){if(e.getEtsStylesDecoratorComponentNames(t.modifiers,V).length>0)return p()}if(171===t.kind||e.nodeIsMissing(t.body)||240!==t.body.kind||!Wx(t))return;var l=512&t.flags,u=e.getEffectiveReturnTypeNode(t)||t;if(o&&131072&o.flags)Xn(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!l)Xn(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&G&&!q_(We,o))Xn(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!o){if(!l)return;var d=Zl(Wl(t));if(JT(t,d))return}Xn(u,e.Diagnostics.Not_all_code_paths_return_a_value)}function p(){var n,i,a=null===(n=V.ets)||void 0===n?void 0:n.styles.component.type;return(null===(i=null==r?void 0:r.symbol)||void 0===i?void 0:i.escapedName)===a?void 0:void Xn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles)}}))}function Gx(t,r){if(e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t)),NC(t),e.isFunctionExpression(t)&&ZS(t,t.name),r&&4&r&&R_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=Ry(t);if(n&&Zg(Zl(n))){var i=fi(t);if(i.contextFreeType)return i.contextFreeType;var a=Jx(t,r),o=gc(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Va(t.symbol,U,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return Pt}return jE(t)||216!==t.kind||KE(t),function(t,r){var n=fi(t);if(!(1024&n.flags)){var i=Ry(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(Cl(vs(Ca(t)),0));if(!a)return;if(R_(t))if(i){var o=wy(t),s=void 0;if(r&&2&r){!function(t,r,n){for(var i=t.parameters.length-(L(t)?1:0),a=0;a=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Pn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!nk(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&174!==r.kind&&!(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Pn.add(a)}}dy(t)&&Xn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(t)}));var r=JD(t.expression),n=gS(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||No(n)||3&r.flags||Yn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n}function rD(e){return iD(e,2112)?aD(e,3)||iD(e,296)?mt:Ze:Ye}function nD(e,t){if(iD(e,t))return!0;var r=al(e);return!!r&&iD(r,t)}function iD(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!ID(e,a))return a}}function MD(e){var t=fb(e);if(t&&!t.typeParameters)return Zl(t)}function LD(e){var t=JD(e.expression),r=kg(t,e.expression),n=MD(t);return n&&Eg(n,e,r!==t)}function RD(t,r){var n=BD(t);if(n)return n;if(134217728&t.flags&&Lr){var i=Lr[F(t)];if(i)return i}var a=on,o=JD(t,r);on!==a&&((Lr||(Lr=[]))[F(t)]=o,e.setNodeFlags(t,134217728|t.flags));return o}function BD(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return o_(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||107===r.expression.kind||e.isRequireCall(r,!0)||ax(r))if(!e.isEtsComponentExpression(r)||107===r.expression.kind||e.isRequireCall(r,!0)||ax(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return o_(r.type);if(8===t.kind||10===t.kind||111===t.kind||96===t.kind)return JD(t)}else{if(n=e.isCallChain(r)?LD(r):MD(xv(r.expression,128)))return n}else if(n=e.isCallChain(r)?LD(r):MD(xv(r.expression,128)))return n}function jD(e){var t=fi(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Le;try{return t.contextFreeType=JD(e,4)}finally{e.contextualType=r}}function JD(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var i=u;u=t,B=0;var a=ND(t,UD(t,r,n),r);return sD(a)&&function(t,r){var n=209===t.parent.kind&&t.parent.expression===t||210===t.parent.kind&&t.parent.expression===t||(79===t.kind||164===t.kind)&&JC(t)||184===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;n||Xn(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(V.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Xn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,a),u=i,null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function UD(t,n,i){var a=t.kind;if(r)switch(a){case 230:case 216:case 217:r.throwIfCancellationRequested()}switch(a){case 79:return Qh(t,n);case 80:return Iv(t);case 109:return ry(t);case 107:return ay(t);case 105:return Qe;case 14:case 10:return Hp(Yp(t.text));case 8:return lk(t),Hp(Zp(+t.text));case 9:return function(t){var r=e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent);if(!r&&K<7&&ok(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),Hp(e_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 111:return rt;case 96:return et;case 227:return hD(t);case 13:return er;case 207:return jy(t,n,i);case 208:return qy(t,n);case 209:return Nv(t,n);case 164:return Fv(t,n);case 210:return nb(t,n);case 211:if(101===t.expression.kind)return ox(t);case 212:return Yb(t,n);case 218:var o=t;return o.body&&o.body.statements.length&&KD(o.body.statements,n),Yb(t,n);case 213:return dx(t);case 215:return function(t,r){if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return _x(n,n,t.expression,r)}return JD(t.expression,r)}(t,n);case 230:return function(e){return QT(e),NC(e),vs(Ca(e))}(t);case 216:case 217:return Gx(t,n);case 220:return function(e){return JD(e.expression),On}(t);case 214:case 233:return function(t){if(214===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&ok(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return _x(t,t.type,t.expression)}(t);case 234:return fx(t);case 232:return gx(t);case 237:return function(t){EC(t.type);var r=JD(t.expression),n=o_(t.type);return No(n)?n:(X_(r,n,t.type,t.expression,e.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1),r)}(t);case 235:return mx(t);case 219:return eD(t);case 221:return function(e){return JD(e.expression),qe}(t);case 222:return tD(t);case 223:return function(t){var r=JD(t.operand);if(r===lt)return lt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return Hp(Zp(-t.operand.text));case 39:return Hp(Zp(+t.operand.text))}break;case 9:if(40===t.operator)return Hp(e_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return kv(r,t.operand),nD(r,12288)&&Xn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(nD(r,2112)&&Xn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),so(cg(r))),Ye):rD(r);case 53:lT(t.operand);var n=12582912&qm(r);return 4194304===n?et:8388608===n?rt:at;case 45:case 46:return Hx(t.operand,kv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zx(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rD(r)}}(t);case 224:return function(t){var r=JD(t.operand);return r===lt?lt:(Hx(t.operand,kv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zx(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rD(r))}(t);case 225:return ie(t,n);case 226:return function(e,t){var r=lT(e.condition);return sT(e.condition,r,e.whenTrue),Id([JD(e.whenTrue,t),JD(e.whenFalse,t)],2)}(t,n);case 229:return function(e,t){return K<2&&wE(e,V.downlevelIteration?1536:1024),_T(33,JD(e.expression,t),We,e.expression)}(t,n);case 231:return qe;case 228:return function(t){m((function(){8192&t.flags||ik(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),dy(t)&&Xn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Le;var n=e.getFunctionFlags(r);if(!(1&n))return Le;var i=!!(2&n);t.asteriskToken&&(i&&K<99&&wE(t,26624),!i&&K<2&&V.downlevelIteration&&wE(t,256));var a=eu(r),o=a&&RT(a,i),s=o&&o.yieldType||Le,c=o&&o.nextType||Le,l=i?xS(c)||Le:c,u=t.expression?JD(t.expression):qe,d=zx(t,u,l,i);if(a&&d&&X_(d,s,t.expression||t,t.expression),t.asteriskToken)return gT(i?19:17,1,u,t.expression)||Le;if(a)return LT(2,a,i)||Le;var p=py(2,r);return p||(p=Le,m((function(){if(Y&&!e.expressionResultIsUnused(t)){var r=Fy(t,void 0);r&&!Ao(r)||Xn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p}(t);case 236:return function(e){return e.isSpread?Dp(e.type,Ye):e.type}(t);case 294:return gv(t,n);case 284:case 285:return function(e){return NC(e),uv(e)||Le}(t);case 288:return function(t){pv(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(V)||!V.jsxFactory&&!r.pragmas.has("jsx")||V.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Xn(t,V.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Xy(t),uv(t)||Le}(t);case 292:return Zy(t,n);case 286:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return je}function zD(t,r){VD(t,r),t.thenStatement&&e.isBlock(t.thenStatement)&&t.thenStatement.statements&&KD(t.thenStatement.statements,r),t.elseStatement&&(e.isIfStatement(t.elseStatement)&&zD(t.elseStatement,r),e.isBlock(t.elseStatement)&&t.elseStatement.statements&&KD(t.elseStatement.statements,r))}function VD(e,t){e.expression&&UD(e.expression,t),e.getChildren().forEach((function(e){return VD(e,t)}))}function KD(t,r){t.length&&t.forEach((function(t){e.isIfStatement(t)?zD(t,r):t.expression&&UD(t.expression,r)}))}function WD(t){OE(t),t.expression&&ik(t.expression,e.Diagnostics.Type_expected),EC(t.constraint),EC(t.default);var r=qs(Ca(t));il(r),function(e){return cl(e)!==Ot}(r)||Xn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,so(r));var n=Zc(r),i=ll(r);n&&i&&Q_(i,_c(P_(n,f_(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),NC(t),m((function(){return WT(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}))}function qD(t){IE(t),tT(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(174===r.kind&&e.nodeIsPresent(r.body)||Xn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),174===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Xn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(t.questionToken||Bl(t))&&e.isBindingPattern(t.name)&&r.body&&Xn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Xn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),174!==r.kind&&178!==r.kind&&183!==r.kind||Xn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),217===r.kind&&Xn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),175!==r.kind&&176!==r.kind||Xn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||q_(yl(vs(t.symbol)),ir)||Xn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function $D(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===de.escapedName&&Hn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var r=e.getEffectiveReturnTypeNode(t);if(Y&&!r)switch(t.kind){case 178:Xn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 177:Xn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=o_(r);if(i===st)Xn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=LT(0,i,!!(2&n))||Le;Q_(Ux(a,LT(1,i,!!(2&n))||a,LT(2,i,!!(2&n))||Ve,!!(2&n)),i,r)}}else 2==(3&n)&&function(t,r){var n=o_(r);if(K>=2){if(No(n))return;var i=rd(!0);if(i!==wt&&!xs(n,i))return void Xn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,so(DS(n)||st))}else{if(function(t){TS(t&&e.getEntityNameFromTypeNode(t),!1)}(r),No(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,so(n));var o=sa(a,111551,!0),s=o?vs(o):je;if(No(s))return void(79===a.kind&&"Promise"===a.escapedText&&Ds(n)===rd(!1)?Xn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(d=!0,_r||(_r=Qu("PromiseConstructorLike",0,d))||Ct);if(c===Ct)return void Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!Q_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=mi(t.locals,l.escapedText,111551);if(u)return void Xn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}var d;gS(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,r)}179!==t.kind&&323!==t.kind&&IS(t)}))}function HD(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=uu(Ca(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&ph(o_(e.parameters[0].type),(function(t){var r=i.get(Ed(t));r?r.declarations.push(e):i.set(Ed(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o1)for(var r=0,n=t.declarations;r0}function hS(e){var t;if(16777216&e.flags){var r=cd(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function yS(e){return 1048576&e.flags?yh(e,yS):hS(e)?e.aliasTypeArguments[0]:e}function vS(e){if(Ao(e)||hS(e))return!1;if(gp(e)){var t=il(e);if(t?3&t.flags||df(t)||_h(t,mS):iD(e,8650752))return!0}return!1}function bS(t){if(vS(t)){var r=function(e){var t=cd(!0);if(t)return Nu(t,[yS(e)])}(t);if(r)return r}return e.Debug.assert(void 0===fS(t),"type provided should not be a non-generic 'promise'-like."),t}function xS(e,t,r,n){var i=DS(e,t,r,n);return i&&bS(i)}function DS(t,r,n,i){if(Ao(t))return t;if(hS(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){if(wn.lastIndexOf(t.id)>=0)return void(r&&Xn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));var o=r?function(e){return DS(e,r,n,i)}:DS;wn.push(t.id);var s=yh(t,o);return wn.pop(),a.awaitedTypeOfType=s}if(vS(t))return a.awaitedTypeOfType=t;var c={value:void 0},l=fS(t,void 0,c);if(l){if(t.id===l.id||wn.lastIndexOf(l.id)>=0)return void(r&&Xn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));wn.push(t.id);var u=DS(l,r,n,i);if(wn.pop(),!u)return;return a.awaitedTypeOfType=u}if(!mS(t))return a.awaitedTypeOfType=t;if(r){e.Debug.assertIsDefined(n);var d=void 0;c.value&&(d=e.chainDiagnosticMessages(d,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,so(t),so(c.value))),d=e.chainDiagnosticMessages(d,n,i),Pn.add(e.createDiagnosticForNodeFromMessageChain(r,d))}}function SS(t){var r=Gb(t);nx(r,t);var n=Zl(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 262:case 263:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Id([vs(Ca(t.parent)),st]);break;case 170:case 167:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=st;break;case 172:case 175:case 176:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Id([ud(KC(t.parent)),st]);break;default:return e.Debug.fail()}Q_(n,a,t,i)}}function TS(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=bi(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!Pa(a)||sE(Yi(a))||ra(a)){if(r&&V.isolatedModules&&e.getEmitModuleKind(V)>=e.ModuleKind.ES2015&&!Pa(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Xn(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Ii);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else ia(a)}}function CS(t){var r=ES(t);r&&e.isEntityName(r)&&TS(r,!0)}function ES(e){if(e)switch(e.kind){case 191:case 190:return kS(e.types);case 192:return kS([e.trueType,e.falseType]);case 194:case 200:return ES(e.type);case 181:return e.typeName}}function kS(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)||W>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(GS(t,r,"require")||GS(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Eo(t);311===n.kind&&e.isExternalOrCommonJsModule(n)&&Hn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(K>=4)&&GS(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Eo(t);311===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Hn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){K<=8&&(GS(e,t,"WeakMap")||GS(e,t,"WeakSet"))&&An.push(e)}(t,r),function(e,t){t&&K>=2&&K<=8&&GS(e,t,"Reflect")&&Nn.push(e)}(t,r),e.isClassLike(t)?(WT(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||function(t){K>=1&&"Object"===t.escapedText&&(W1&&e.some(p.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!nT(r,t)}))&&Xn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=eT(rs(t));No(_)||No(g)||U_(_,g)||67108864&p.flags||rT(p.valueDeclaration,_,t,g),e.hasOnlyExpressionInitializer(t)&&t.initializer&&X_(bD(t.initializer),g,t,t.initializer,void 0),p.valueDeclaration&&!nT(t,p.valueDeclaration)&&Xn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}170!==t.kind&&169!==t.kind&&(pS(t),259!==t.kind&&206!==t.kind||function(t){if(!(3&e.getCombinedNodeFlags(t)||e.isParameterDeclaration(t))&&(259!==t.kind||t.initializer)){var r=Ca(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=bi(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&mv(n)){var i=e.getAncestor(n.valueDeclaration,260),a=242===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(240===a.kind&&e.isFunctionLike(a.parent)||268===a.kind||267===a.kind||311===a.kind)){var o=ao(n);Xn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),ZS(t,t.name))}}}}function rT(t,r,n,i){var a=e.getNameOfDeclaration(n),o=170===n.kind||169===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Xn(a,o,s,so(r),so(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function nT(t,r){if(167===t.kind&&259===r.kind||259===t.kind&&167===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,888)===e.getSelectedEffectiveModifierFlags(r,888)}function iT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){if(248!==t.parent.parent.kind&&249!==t.parent.parent.kind)if(16777216&t.flags)YE(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return ok(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return ok(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(242!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return ok(t.exclamationToken,r)}!(W=1&&iT(t.declarations[0])}function pT(e){return _T(e.awaitModifier?15:13,xv(e.expression),We,e.expression)}function _T(e,t,r,n){return Ao(t)?t:fT(e,t,r,n,!0)||Le}function fT(t,r,n,i,a){var o=!!(2&t);if(r!==ct){var s=K>=2,c=!s&&V.downlevelIteration,l=V.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=bT(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&Q_(n,u.nextType,i,d)}if(u||s)return l?Zm(u&&u.yieldType):u&&u.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(p=Id(m,2))}else 402653316&p.flags&&(p=ct);if((f=p!==r)&&(K<1&&i&&(Xn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?Zm(Xe):Xe}if(!Yf(p)){if(i&&!_){var h=function(n,i){var a;if(i)return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(gT(t,0,r,void 0))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),y=h[0];ei(i,h[1]&&!!_S(p),y,so(p))}return f?l?Zm(Xe):Xe:void 0}var v=Pl(p,Ye);return f&&v?402653316&v.flags&&!V.noUncheckedIndexedAccess?Xe:Id(l?[v,Xe,We]:[v,Xe],2):128&t?Zm(v):v}kT(i,r,o)}function gT(e,t,r,n){if(!Ao(r)){var i=bT(r,e,n);return i&&i[M(t)]}}function mT(e,t,r){if(void 0===e&&(e=ct),void 0===t&&(t=ct),void 0===r&&(r=Ve),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=bu([e,t,r]),i=Wr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Wr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function hT(t){for(var r,n,i,a=0,o=t;a1)for(var _=0,f=i;_i)return!1;for(var u=0;u1)return ik(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(118===o.token),n)return ik(o,e.Diagnostics.implements_clause_already_seen);n=!0}UE(o)}})(t)||RE(t.typeParameters,r)}(t),FS(t),ZS(t,t.name),qT(e.getEffectiveTypeParameterDeclarations(t)),pS(t);var r=Ca(t),n=$s(r),i=_c(n),a=vs(r);$T(r),dS(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>a;case 49:return i>>>a;case 47:return i<1){var i=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&Xn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(t){if(266!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?Xn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}(t)}))}function lC(t){e.isPrivateIdentifier(t.name)&&Xn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function uC(t){t.body&&(EC(t.body),e.isGlobalScopeAugmentation(t)||IS(t)),m((function(){var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Xn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(bC(t,a))return;IE(t)||n||10!==t.name.kind||ok(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names);e.isIdentifier(t.name)&&ZS(t,t.name);pS(t);var o=Ca(t);if(512&o.flags&&!n&&o.declarations&&o.declarations.length>1&&P(t,e.shouldPreserveConstEnums(V))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n1&&!CC(n))for(var o=0,s=n;o1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function EC(t){if(t){var n=u;u=t,B=0,function(t){e.forEach(t.jsDoc,(function(r){var n=r.comment,i=r.tags;kC(n),e.forEach(i,(function(r){kC(r.comment),e.isInJSFile(t)&&EC(r)}))}));var n=t.kind;if(r)switch(n){case 267:case 262:case 264:case 261:r.throwIfCancellationRequested()}n>=242&&n<=258&&t.flowNode&&!Mh(t.flowNode)&&Zn(!1===V.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(n){case 166:return WD(t);case 167:return qD(t);case 170:return XD(t);case 169:return function(t){return e.isPrivateIdentifier(t.name)&&Xn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),XD(t)}(t);case 183:case 182:case 177:case 178:case 179:return GD(t);case 172:case 171:return function(t){QE(t)||VE(t.name),e.isMethodDeclaration(t)&&t.asteriskToken&&e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Xn(t.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),PS(t),e.hasSyntacticModifier(t,256)&&172===t.kind&&t.body&&Xn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Xn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),YD(t)}(t);case 173:return function(t){IE(t),e.forEachChild(t,EC)}(t);case 174:return ZD(t);case 175:case 176:return tS(t);case 181:return aS(t);case 180:return function(t){var r=function(e){switch(e.parent.kind){case 217:case 177:case 261:case 216:case 182:case 172:case 171:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Wl(r),i=Xl(n);if(i){EC(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)n_(a);else if(i.parameterIndex>=0)L(n)&&i.parameterIndex===n.parameters.length-1?Xn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Q_(i.type,vs(n.parameters[i.parameterIndex]),t.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=r.parameters;s1){var n=_i(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=qs(r),a=e.getDeclarationsOfKind(r,166);if(!GT(a,[i],(function(e){return[e]})))for(var o=ao(r),s=0,c=a;s0),n.length>1&&Xn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=wS(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=wS(a.expression);o&&i.escapedText!==o.escapedText&&Xn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Xn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 335:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Xn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 351:case 344:case 345:return function(t){t.typeExpression||Xn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&WT(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),EC(t.typeExpression),qT(e.getEffectiveTypeParameterDeclarations(t))}(t);case 350:return function(e){EC(e.constraint);for(var t=0,r=e.typeParameters;t=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||ok(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 278:return vC(t);case 277:return function(t){if(!bC(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=311===t.parent.kind?t.parent:t.parent.parent;if(267!==r.kind||e.isAmbientModule(r)){!IE(t)&&e.hasEffectiveModifiers(t)&&ik(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&Q_(bD(t.expression),o_(n),t.expression),79===t.expression.kind){var i=t.expression,a=sa(i,67108863,!0,!0,t);a?(Hh(a,i),111551&Zi(2097152&a.flags?Yi(a):a)&&bD(t.expression)):bD(t.expression),e.getEmitDeclarations(V)&&xo(t.expression,!0)}else bD(t.expression);TC(r),16777216&t.flags&&!e.isEntityNameExpression(t.expression)&&ok(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||16777216&t.flags||(W>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?ok(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&ok(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Xn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Xn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 241:case 258:return void ck(t);case 282:(function(e){FS(e)})(t)}}(t),u=n}}function kC(t){e.isArray(t)&&e.forEach(t,(function(t){e.isJSDocLinkLike(t)&&EC(t)}))}function AC(t){e.isInJSFile(t)||ok(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function NC(t){var r=fi(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function FC(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=u;switch(u=t,B=0,t.kind){case 211:case 212:case 213:case 168:case 286:ob(t);break;case 216:case 217:case 172:case 171:!function(t){e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=eu(t);if($x(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Zl(Wl(t)),240===t.body.kind)EC(t.body);else{var i=JD(t.body),a=n&&jT(n,r);a&&X_(2==(3&r)?gS(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 175:case 176:tS(t);break;case 230:!function(t){e.forEach(t.members,EC),IS(t)}(t);break;case 166:!function(t){if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=qs(Ca(t)),n=If(r);if(n){var i=Ca(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags($s(i))){if(32768===n||65536===n){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:Ed($s(i)),id:Ed(r)});var a=wf(i,r,65536===n?Jt:jt),o=wf(i,r,65536===n?jt:Jt),s=r;_=r,Q_(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),_=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}}else Xn(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(t);break;case 285:!function(e){pv(e)}(t);break;case 284:!function(e){pv(e.openingElement),Hy(e.closingElement.tagName)?tv(e.closingElement):JD(e.closingElement.tagName),Xy(e)}(t)}u=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function wC(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),t.getFileCheckedModuleInfo&&((Vn=t.getFileCheckedModuleInfo(r.fileName)).currentFileName=r.fileName),function(r){var n=fi(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,V,t))return;!function(t){!!(16777216&t.flags)&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),LC),Pn.getDiagnostics()}(n)}finally{r=void 0}}function MC(){for(var e=0,t=g;e1||1===r.length&&r[0].declaration!==t}return!1}function uE(t){return!(!G||Jl(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function dE(t){return G&&Jl(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function pE(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Ca(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(ba(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function _E(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Ca(r);return n&&Xc(vs(n))||e.emptyArray}function fE(e){var t,r=e.id||0;return r<0||r>=hn.length?0:(null===(t=hn[r])||void 0===t?void 0:t.flags)||0}function gE(e){return aC(e.parent),fi(e).enumMemberValue}function mE(e){switch(e.kind){case 305:case 209:case 210:return!0}return!1}function hE(t){if(305===t.kind)return gE(t);var r=fi(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return gE(n)}}function yE(e){return!!(524288&e.flags)&&Cl(e,0).length>0}function vE(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=sa(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=sa(a,111551,!0,!0,r),l=c&&2097152&c.flags?Yi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=sa(a,788968,!0,!1,r);if(l&&l===u){var d=id(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=vs(l);if(p&&Ns(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=$s(u);return No(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:aD(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:aD(_,528)?e.TypeReferenceSerializationKind.BooleanType:aD(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:aD(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:aD(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:_g(_)?e.TypeReferenceSerializationKind.ArrayLikeType:aD(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:yE(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:$f(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function bE(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(132);var s=Ca(o),c=!s||133120&s.flags?je:lg(vs(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Dg(c)),oe.typeToTypeNode(c,r,1024|n,i)}function xE(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(132);var o=Wl(a);return oe.typeToTypeNode(Zl(o),r,1024|n,i)}function DE(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(132);var o=jg(qC(a));return oe.typeToTypeNode(o,r,1024|n,i)}function SE(t){return se.has(e.escapeLeadingUnderscores(t))}function TE(t,r){var n=fi(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Eo(a))}return bi(i,t.escapedText,3257279,void 0,void 0,!0)}function CE(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=TE(r);if(n)return wa(n).valueDeclaration}}}function EE(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Xp(vs(Ca(t)))}function kE(t,r){return function(t,r,n){var i=1024&t.flags?oe.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(vs(Ca(t)),t,r)}function AE(t){return t?(qn(t),e.getSourceFileOfNode(t).localJsxFactory||Br):Br}function NE(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,K),r.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,K)}function FE(t){var r=267===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=ua(r,r,void 0);if(n)return e.getDeclarationOfKind(n,311)}function wE(t,r){if((n&r)!==r&&V.importHelpers){var i=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(i,V)&&!(16777216&t.flags)){var a=function(t,r){l||(l=da(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Pe);return l}(i,t);if(a!==Pe)for(var o=r&~n,s=1;s<=4194304;s<<=1)if(o&s){var c=PE(s),u=mi(a.exports,e.escapeLeadingUnderscores(c),111551);u?524288&s?e.some(Gl(u),(function(e){return Ax(e)>3}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,4):1048576&s?e.some(Gl(u),(function(e){return Ax(e)>4}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,5):1024&s&&(e.some(Gl(u),(function(e){return Ax(e)>2}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,3)):Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}n|=r}}}function PE(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function IE(t){return function(t){if(e.canHaveIllegalDecorators(t)&&e.some(t.illegalDecorators)&&!e.isArkTsDecorator(t,V))return ik(t,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(t)||!e.hasDecorators(t)&&(!e.isFunctionDeclaration(t)||e.isArkTsDecorator(t,V)))return!1;var r=e.getAllDecorators(t);if(8===e.getSourceFileOfNode(t).scriptKind){if(e.isTokenInsideBuilder(r,V)&&!e.isConstructorDeclaration(t))return!1;if(e.hasEtsStylesDecoratorNames(r,V)&&!e.isConstructorDeclaration(t))return!0}if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent,V)){for(var n=172===t.kind&&!e.nodeIsPresent(t.body)?e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload:e.Diagnostics.Decorators_are_not_valid_here,i=0,a=r;i=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(o=t.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Xn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var a=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([Xn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}function jE(t){var r=e.getSourceFileOfNode(t);return IE(t)||RE(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&ok(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&ok(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&BE(t)}function JE(t,r){return LE(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-1;return ak(n,i,e.skipTrivia(n.text,r.end)+1-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function UE(t){var r=t.types;if(LE(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return ak(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,zE)}function zE(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?ok(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):JE(t,t.typeArguments)}function VE(t){if(165!==t.kind)return!1;var r=t;return 225===r.expression.kind&&27===r.expression.operatorToken.kind&&ok(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function KE(t){if(t.asteriskToken){if(e.Debug.assert(261===t.kind||216===t.kind||172===t.kind),16777216&t.flags)return ok(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return ok(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function WE(e,t){return!!e&&ok(e,t)}function qE(e,t){return!!e&&ok(e,t)}function $E(t){if(ck(t))return!0;if(249===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!nk(r))switch(e.isEffectiveExternalModule(r,V)||Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),W){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(K>=4)break;default:Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!nk(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&174!==i.kind){e.Debug.assert(!(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return Pn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return ok(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(260===t.initializer.kind){var o=t.initializer;if(!tk(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1){n=248===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ik(o.declarations[1],n)}var c=s[0];if(c.initializer){var n=248===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return ok(c.name,n)}if(c.type)return ok(c,n=248===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function GE(t){if(t.parameters.length===(175===t.kind?1:2))return e.getThisParameter(t)}function HE(t,r){if(function(t){return e.isDynamicName(t)&&!ic(t)}(t))return ok(t,r)}function QE(t){if(jE(t))return!0;if(172===t.kind){if(208===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||133!==e.first(t.modifiers).kind))return ik(t,e.Diagnostics.Modifiers_cannot_appear_here);if(WE(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(qE(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return ak(t,t.end-1,1,e.Diagnostics._0_expected,"{")}if(KE(t))return!0}if(e.isClassLike(t.parent)){if(K<2&&e.isPrivateIdentifier(t.name))return ok(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return HE(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(172===t.kind&&!t.body)return HE(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===t.parent.kind)return HE(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(185===t.parent.kind)return HE(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function XE(t){return e.isStringOrNumericLiteralLike(t)||223===t.kind&&40===t.operator&&8===t.operand.kind}function YE(t){var r,n=t.initializer;if(n){var i=!(XE(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&XE(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&bD(t).flags)}(n)||111===n.kind||96===n.kind||(r=n,9===r.kind||223===r.kind&&40===r.operator&&9===r.operand.kind));if(!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))||t.type)return ok(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return ok(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}function ZE(t){if(79===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!nk(e.getSourceFileOfNode(r)))return Hn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r0}function ik(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!nk(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Pn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function ak(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!nk(c)&&(Pn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function ok(t,r,n,i,a){return!nk(e.getSourceFileOfNode(t))&&(Pn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function sk(t){return 264!==t.kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&278!==t.kind&&277!==t.kind&&270!==t.kind&&!e.hasSyntacticModifier(t,1027)&&ik(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ck(t){if(16777216&t.flags){if(!fi(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return fi(t).hasReportedStatementInAmbientContext=ik(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(240===t.parent.kind||268===t.parent.kind||311===t.parent.kind){var r=fi(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=ik(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function lk(t){if(32&t.numericLiteralFlags){var r=void 0;if(K>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,199)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,305)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return ok(n?t.parent:t,r,i)}}return function(t){var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;if(r||n)return;var i=+t.text;if(i<=Math.pow(2,53)-1)return;Yn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function uk(t){return!!e.forEach(t.elements,(function(t){if(t.isTypeOnly)return ik(t,276===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function dk(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Jm(r,t);if(a)return a;var o=Xc(t);if(o){var s=Rm(o,r);if(s)return Ef(r,e.map(s,(function(e){return[function(){return vs(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(E||(E={})),e.signatureHasRestParameter=L,e.signatureHasLiteralTypes=R}(d||(d={})),function(e){var t;function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||d)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,a,o){if(void 0===t||void 0===r)return t;var s,c=t.length;(void 0===a||a<0)&&(a=0),(void 0===o||o>c-a)&&(o=c-a);var l=-1,u=-1;a>0||o0||a=2&&(o=function(t,r){for(var n,i=0;io-n)&&(a=o-n),i(e,t,r,n,a)},e.visitLexicalEnvironment=a,e.visitParameterList=o,e.visitFunctionBody=c,e.visitIterationBody=l,e.visitEachChild=function(e,t,i,a,o,s){if(void 0===a&&(a=n),void 0===s&&(s=r),void 0!==e){var c=u[e.kind];return void 0===c?e:c(e,t,i,a,s,o)}};var u=((t={})[79]=function(t,r,n,i,a,o){return n.factory.updateIdentifier(t,i(t.typeArguments,r,e.isTypeNodeOrTypeParameterDeclaration))},t[164]=function(t,r,n,i,a,o){return n.factory.updateQualifiedName(t,a(t.left,r,e.isEntityName),a(t.right,r,e.isIdentifier))},t[165]=function(t,r,n,i,a,o){return n.factory.updateComputedPropertyName(t,a(t.expression,r,e.isExpression))},t[166]=function(t,r,n,i,a,o){return n.factory.updateTypeParameterDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),a(t.constraint,r,e.isTypeNode),a(t.default,r,e.isTypeNode))},t[167]=function(t,r,n,i,a,o){return n.factory.updateParameterDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isBindingName),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[168]=function(t,r,n,i,a,o){return n.factory.updateDecorator(t,a(t.expression,r,e.isExpression))},t[169]=function(t,r,n,i,a,o){return n.factory.updatePropertySignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isToken),a(t.type,r,e.isTypeNode))},t[170]=function(t,r,n,i,a,o){var s;return n.factory.updatePropertyDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),a(null!==(s=t.questionToken)&&void 0!==s?s:t.exclamationToken,o,e.isQuestionOrExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[171]=function(t,r,n,i,a,o){return n.factory.updateMethodSignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[172]=function(t,r,n,i,a,s){return n.factory.updateMethodDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isPropertyName),a(t.questionToken,s,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[174]=function(t,r,n,i,a,s){return n.factory.updateConstructorDeclaration(t,i(t.modifiers,r,e.isModifier),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[175]=function(t,r,n,i,a,s){return n.factory.updateGetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[176]=function(t,r,n,i,a,s){return n.factory.updateSetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[173]=function(e,t,r,n,i,a){return r.startLexicalEnvironment(),r.suspendLexicalEnvironment(),r.factory.updateClassStaticBlockDeclaration(e,c(e.body,t,r,i))},t[177]=function(t,r,n,i,a,o){return n.factory.updateCallSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[178]=function(t,r,n,i,a,o){return n.factory.updateConstructSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[179]=function(t,r,n,i,a,o){return n.factory.updateIndexSignature(t,i(t.modifiers,r,e.isModifier),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[180]=function(t,r,n,i,a,o){return n.factory.updateTypePredicateNode(t,a(t.assertsModifier,r,e.isAssertsKeyword),a(t.parameterName,r,e.isIdentifierOrThisTypeNode),a(t.type,r,e.isTypeNode))},t[181]=function(t,r,n,i,a,o){return n.factory.updateTypeReferenceNode(t,a(t.typeName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[182]=function(t,r,n,i,a,o){return n.factory.updateFunctionTypeNode(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[183]=function(t,r,n,i,a,o){return n.factory.updateConstructorTypeNode(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[184]=function(t,r,n,i,a,o){return n.factory.updateTypeQueryNode(t,a(t.exprName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[185]=function(t,r,n,i,a,o){return n.factory.updateTypeLiteralNode(t,i(t.members,r,e.isTypeElement))},t[186]=function(t,r,n,i,a,o){return n.factory.updateArrayTypeNode(t,a(t.elementType,r,e.isTypeNode))},t[187]=function(t,r,n,i,a,o){return n.factory.updateTupleTypeNode(t,i(t.elements,r,e.isTypeNode))},t[188]=function(t,r,n,i,a,o){return n.factory.updateOptionalTypeNode(t,a(t.type,r,e.isTypeNode))},t[189]=function(t,r,n,i,a,o){return n.factory.updateRestTypeNode(t,a(t.type,r,e.isTypeNode))},t[190]=function(t,r,n,i,a,o){return n.factory.updateUnionTypeNode(t,i(t.types,r,e.isTypeNode))},t[191]=function(t,r,n,i,a,o){return n.factory.updateIntersectionTypeNode(t,i(t.types,r,e.isTypeNode))},t[192]=function(t,r,n,i,a,o){return n.factory.updateConditionalTypeNode(t,a(t.checkType,r,e.isTypeNode),a(t.extendsType,r,e.isTypeNode),a(t.trueType,r,e.isTypeNode),a(t.falseType,r,e.isTypeNode))},t[193]=function(t,r,n,i,a,o){return n.factory.updateInferTypeNode(t,a(t.typeParameter,r,e.isTypeParameterDeclaration))},t[203]=function(t,r,n,i,a,o){return n.factory.updateImportTypeNode(t,a(t.argument,r,e.isTypeNode),a(t.assertions,r,e.isImportTypeAssertionContainer),a(t.qualifier,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode),t.isTypeOf)},t[301]=function(t,r,n,i,a,o){return n.factory.updateImportTypeAssertionContainer(t,a(t.assertClause,r,e.isAssertClause),t.multiLine)},t[200]=function(t,r,n,i,a,o){return n.factory.updateNamedTupleMember(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isIdentifier),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode))},t[194]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedType(t,a(t.type,r,e.isTypeNode))},t[196]=function(t,r,n,i,a,o){return n.factory.updateTypeOperatorNode(t,a(t.type,r,e.isTypeNode))},t[197]=function(t,r,n,i,a,o){return n.factory.updateIndexedAccessTypeNode(t,a(t.objectType,r,e.isTypeNode),a(t.indexType,r,e.isTypeNode))},t[198]=function(t,r,n,i,a,o){return n.factory.updateMappedTypeNode(t,a(t.readonlyToken,o,e.isReadonlyKeywordOrPlusOrMinusToken),a(t.typeParameter,r,e.isTypeParameterDeclaration),a(t.nameType,r,e.isTypeNode),a(t.questionToken,o,e.isQuestionOrPlusOrMinusToken),a(t.type,r,e.isTypeNode),i(t.members,r,e.isTypeElement))},t[199]=function(t,r,n,i,a,o){return n.factory.updateLiteralTypeNode(t,a(t.literal,r,e.isExpression))},t[201]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralType(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateLiteralTypeSpan))},t[202]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralTypeSpan(t,a(t.type,r,e.isTypeNode),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[204]=function(t,r,n,i,a,o){return n.factory.updateObjectBindingPattern(t,i(t.elements,r,e.isBindingElement))},t[205]=function(t,r,n,i,a,o){return n.factory.updateArrayBindingPattern(t,i(t.elements,r,e.isArrayBindingElement))},t[206]=function(t,r,n,i,a,o){return n.factory.updateBindingElement(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.propertyName,r,e.isPropertyName),a(t.name,r,e.isBindingName),a(t.initializer,r,e.isExpression))},t[207]=function(t,r,n,i,a,o){return n.factory.updateArrayLiteralExpression(t,i(t.elements,r,e.isExpression))},t[208]=function(t,r,n,i,a,o){return n.factory.updateObjectLiteralExpression(t,i(t.properties,r,e.isObjectLiteralElementLike))},t[209]=function(t,r,n,i,a,o){return e.isPropertyAccessChain(t)?n.factory.updatePropertyAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.name,r,e.isMemberName)):n.factory.updatePropertyAccessExpression(t,a(t.expression,r,e.isExpression),a(t.name,r,e.isMemberName))},t[210]=function(t,r,n,i,a,o){return e.isElementAccessChain(t)?n.factory.updateElementAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.argumentExpression,r,e.isExpression)):n.factory.updateElementAccessExpression(t,a(t.expression,r,e.isExpression),a(t.argumentExpression,r,e.isExpression))},t[211]=function(t,r,n,i,a,o){return e.isCallChain(t)?n.factory.updateCallChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression)):n.factory.updateCallExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[218]=function(t,r,n,i,a){return n.factory.updateEtsComponentExpression(t,a(t.expression,r,e.isExpression),i(t.arguments,r,e.isExpression),a(t.body,r,e.isBlock))},t[212]=function(t,r,n,i,a,o){return n.factory.updateNewExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[213]=function(t,r,n,i,a,o){return n.factory.updateTaggedTemplateExpression(t,a(t.tag,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),a(t.template,r,e.isTemplateLiteral))},t[214]=function(t,r,n,i,a,o){return n.factory.updateTypeAssertion(t,a(t.type,r,e.isTypeNode),a(t.expression,r,e.isExpression))},t[215]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedExpression(t,a(t.expression,r,e.isExpression))},t[216]=function(t,r,n,i,a,s){return n.factory.updateFunctionExpression(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[217]=function(t,r,n,i,a,s){return n.factory.updateArrowFunction(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),a(t.equalsGreaterThanToken,s,e.isEqualsGreaterThanToken),c(t.body,r,n,a))},t[219]=function(t,r,n,i,a,o){return n.factory.updateDeleteExpression(t,a(t.expression,r,e.isExpression))},t[220]=function(t,r,n,i,a,o){return n.factory.updateTypeOfExpression(t,a(t.expression,r,e.isExpression))},t[221]=function(t,r,n,i,a,o){return n.factory.updateVoidExpression(t,a(t.expression,r,e.isExpression))},t[222]=function(t,r,n,i,a,o){return n.factory.updateAwaitExpression(t,a(t.expression,r,e.isExpression))},t[223]=function(t,r,n,i,a,o){return n.factory.updatePrefixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[224]=function(t,r,n,i,a,o){return n.factory.updatePostfixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[225]=function(t,r,n,i,a,o){return n.factory.updateBinaryExpression(t,a(t.left,r,e.isExpression),a(t.operatorToken,o,e.isBinaryOperatorToken),a(t.right,r,e.isExpression))},t[226]=function(t,r,n,i,a,o){return n.factory.updateConditionalExpression(t,a(t.condition,r,e.isExpression),a(t.questionToken,o,e.isQuestionToken),a(t.whenTrue,r,e.isExpression),a(t.colonToken,o,e.isColonToken),a(t.whenFalse,r,e.isExpression))},t[227]=function(t,r,n,i,a,o){return n.factory.updateTemplateExpression(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateSpan))},t[228]=function(t,r,n,i,a,o){return n.factory.updateYieldExpression(t,a(t.asteriskToken,o,e.isAsteriskToken),a(t.expression,r,e.isExpression))},t[229]=function(t,r,n,i,a,o){return n.factory.updateSpreadElement(t,a(t.expression,r,e.isExpression))},t[230]=function(t,r,n,i,a,o){return n.factory.updateClassExpression(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[232]=function(t,r,n,i,a,o){return n.factory.updateExpressionWithTypeArguments(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode))},t[233]=function(t,r,n,i,a,o){return n.factory.updateAsExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[237]=function(t,r,n,i,a,o){return n.factory.updateSatisfiesExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[234]=function(t,r,n,i,a,o){return e.isOptionalChain(t)?n.factory.updateNonNullChain(t,a(t.expression,r,e.isExpression)):n.factory.updateNonNullExpression(t,a(t.expression,r,e.isExpression))},t[235]=function(t,r,n,i,a,o){return n.factory.updateMetaProperty(t,a(t.name,r,e.isIdentifier))},t[238]=function(t,r,n,i,a,o){return n.factory.updateTemplateSpan(t,a(t.expression,r,e.isExpression),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[240]=function(t,r,n,i,a,o){return n.factory.updateBlock(t,i(t.statements,r,e.isStatement))},t[242]=function(t,r,n,i,a,o){return n.factory.updateVariableStatement(t,i(t.modifiers,r,e.isModifier),a(t.declarationList,r,e.isVariableDeclarationList))},t[243]=function(t,r,n,i,a,o){return n.factory.updateExpressionStatement(t,a(t.expression,r,e.isExpression))},t[244]=function(t,r,n,i,a,o){return n.factory.updateIfStatement(t,a(t.expression,r,e.isExpression),a(t.thenStatement,r,e.isStatement,n.factory.liftToBlock),a(t.elseStatement,r,e.isStatement,n.factory.liftToBlock))},t[245]=function(t,r,n,i,a,o){return n.factory.updateDoStatement(t,l(t.statement,r,n,a),a(t.expression,r,e.isExpression))},t[246]=function(t,r,n,i,a,o){return n.factory.updateWhileStatement(t,a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[247]=function(t,r,n,i,a,o){return n.factory.updateForStatement(t,a(t.initializer,r,e.isForInitializer),a(t.condition,r,e.isExpression),a(t.incrementor,r,e.isExpression),l(t.statement,r,n,a))},t[248]=function(t,r,n,i,a,o){return n.factory.updateForInStatement(t,a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[249]=function(t,r,n,i,a,o){return n.factory.updateForOfStatement(t,a(t.awaitModifier,o,e.isAwaitKeyword),a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[250]=function(t,r,n,i,a,o){return n.factory.updateContinueStatement(t,a(t.label,r,e.isIdentifier))},t[251]=function(t,r,n,i,a,o){return n.factory.updateBreakStatement(t,a(t.label,r,e.isIdentifier))},t[252]=function(t,r,n,i,a,o){return n.factory.updateReturnStatement(t,a(t.expression,r,e.isExpression))},t[253]=function(t,r,n,i,a,o){return n.factory.updateWithStatement(t,a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[254]=function(t,r,n,i,a,o){return n.factory.updateSwitchStatement(t,a(t.expression,r,e.isExpression),a(t.caseBlock,r,e.isCaseBlock))},t[255]=function(t,r,n,i,a,o){return n.factory.updateLabeledStatement(t,a(t.label,r,e.isIdentifier),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[256]=function(t,r,n,i,a,o){return n.factory.updateThrowStatement(t,a(t.expression,r,e.isExpression))},t[257]=function(t,r,n,i,a,o){return n.factory.updateTryStatement(t,a(t.tryBlock,r,e.isBlock),a(t.catchClause,r,e.isCatchClause),a(t.finallyBlock,r,e.isBlock))},t[259]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclaration(t,a(t.name,r,e.isBindingName),a(t.exclamationToken,o,e.isExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[260]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclarationList(t,i(t.declarations,r,e.isVariableDeclaration))},t[261]=function(t,r,n,i,a,s){return n.factory.updateFunctionDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[262]=function(t,r,n,i,a,o){return n.factory.updateClassDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[263]=function(t,r,n,i,a,o){return n.factory.updateStructDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[264]=function(t,r,n,i,a,o){return n.factory.updateInterfaceDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isTypeElement))},t[265]=function(t,r,n,i,a,o){return n.factory.updateTypeAliasDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),a(t.type,r,e.isTypeNode))},t[266]=function(t,r,n,i,a,o){return n.factory.updateEnumDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.members,r,e.isEnumMember))},t[267]=function(t,r,n,i,a,o){return n.factory.updateModuleDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isModuleName),a(t.body,r,e.isModuleBody))},t[268]=function(t,r,n,i,a,o){return n.factory.updateModuleBlock(t,i(t.statements,r,e.isStatement))},t[269]=function(t,r,n,i,a,o){return n.factory.updateCaseBlock(t,i(t.clauses,r,e.isCaseOrDefaultClause))},t[270]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExportDeclaration(t,a(t.name,r,e.isIdentifier))},t[271]=function(t,r,n,i,a,o){return n.factory.updateImportEqualsDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.moduleReference,r,e.isModuleReference))},t[272]=function(t,r,n,i,a,o){return n.factory.updateImportDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.importClause,r,e.isImportClause),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[299]=function(t,r,n,i,a,o){return n.factory.updateAssertClause(t,i(t.elements,r,e.isAssertEntry),t.multiLine)},t[300]=function(t,r,n,i,a,o){return n.factory.updateAssertEntry(t,a(t.name,r,e.isAssertionKey),a(t.value,r,e.isExpression))},t[273]=function(t,r,n,i,a,o){return n.factory.updateImportClause(t,t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.namedBindings,r,e.isNamedImportBindings))},t[274]=function(t,r,n,i,a,o){return n.factory.updateNamespaceImport(t,a(t.name,r,e.isIdentifier))},t[280]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExport(t,a(t.name,r,e.isIdentifier))},t[275]=function(t,r,n,i,a,o){return n.factory.updateNamedImports(t,i(t.elements,r,e.isImportSpecifier))},t[276]=function(t,r,n,i,a,o){return n.factory.updateImportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[277]=function(t,r,n,i,a,o){return n.factory.updateExportAssignment(t,i(t.modifiers,r,e.isModifier),a(t.expression,r,e.isExpression))},t[278]=function(t,r,n,i,a,o){return n.factory.updateExportDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.exportClause,r,e.isNamedExportBindings),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[279]=function(t,r,n,i,a,o){return n.factory.updateNamedExports(t,i(t.elements,r,e.isExportSpecifier))},t[281]=function(t,r,n,i,a,o){return n.factory.updateExportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[283]=function(t,r,n,i,a,o){return n.factory.updateExternalModuleReference(t,a(t.expression,r,e.isExpression))},t[284]=function(t,r,n,i,a,o){return n.factory.updateJsxElement(t,a(t.openingElement,r,e.isJsxOpeningElement),i(t.children,r,e.isJsxChild),a(t.closingElement,r,e.isJsxClosingElement))},t[285]=function(t,r,n,i,a,o){return n.factory.updateJsxSelfClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[286]=function(t,r,n,i,a,o){return n.factory.updateJsxOpeningElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[287]=function(t,r,n,i,a,o){return n.factory.updateJsxClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression))},t[288]=function(t,r,n,i,a,o){return n.factory.updateJsxFragment(t,a(t.openingFragment,r,e.isJsxOpeningFragment),i(t.children,r,e.isJsxChild),a(t.closingFragment,r,e.isJsxClosingFragment))},t[291]=function(t,r,n,i,a,o){return n.factory.updateJsxAttribute(t,a(t.name,r,e.isIdentifier),a(t.initializer,r,e.isStringLiteralOrJsxExpression))},t[292]=function(t,r,n,i,a,o){return n.factory.updateJsxAttributes(t,i(t.properties,r,e.isJsxAttributeLike))},t[293]=function(t,r,n,i,a,o){return n.factory.updateJsxSpreadAttribute(t,a(t.expression,r,e.isExpression))},t[294]=function(t,r,n,i,a,o){return n.factory.updateJsxExpression(t,a(t.expression,r,e.isExpression))},t[295]=function(t,r,n,i,a,o){return n.factory.updateCaseClause(t,a(t.expression,r,e.isExpression),i(t.statements,r,e.isStatement))},t[296]=function(t,r,n,i,a,o){return n.factory.updateDefaultClause(t,i(t.statements,r,e.isStatement))},t[297]=function(t,r,n,i,a,o){return n.factory.updateHeritageClause(t,i(t.types,r,e.isExpressionWithTypeArguments))},t[298]=function(t,r,n,i,a,o){return n.factory.updateCatchClause(t,a(t.variableDeclaration,r,e.isVariableDeclaration),a(t.block,r,e.isBlock))},t[302]=function(t,r,n,i,a,o){return n.factory.updatePropertyAssignment(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[303]=function(t,r,n,i,a,o){return n.factory.updateShorthandPropertyAssignment(t,a(t.name,r,e.isIdentifier),a(t.objectAssignmentInitializer,r,e.isExpression))},t[304]=function(t,r,n,i,a,o){return n.factory.updateSpreadAssignment(t,a(t.expression,r,e.isExpression))},t[305]=function(t,r,n,i,a,o){return n.factory.updateEnumMember(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[311]=function(e,t,r,n,i,o){return r.factory.updateSourceFile(e,a(e.statements,t,r))},t[356]=function(t,r,n,i,a,o){return n.factory.updatePartiallyEmittedExpression(t,a(t.expression,r,e.isExpression))},t[357]=function(t,r,n,i,a,o){return n.factory.updateCommaListExpression(t,i(t.elements,r,e.isExpression))},t);function d(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}}(d||(d={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],_=[],f=new e.Map,g=[],m=[],h="",y=0,v=0,b=0,x=0,D=0,S=0,T=!1,C=0,E=0,k=0,A=0,N=0,F=0,w=!1,P=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,t){return!w||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&N>r)}(n,i,a))&&(j(),C=t,E=r,P=!1,I=!1,w=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(F=o,I=!0)),d()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(w&&(!T||y!==C||v!==E||b!==k||x!==A||D!==N||S!==F)){if(u(),y0&&(h+=String.fromCharCode.apply(void 0,m),m.length=0)}function U(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:_,names:g,mappings:h,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next:function(){for(;!r&&n=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;r=!!(32&o),a|=(31&o)<>=1):a>>=1,a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,_,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,h=e.getNormalizedAbsolutePath(r.file,g),y=t.getSourceFileLike(h),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!s(i))return t;return{fileName:v[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:h,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=function(e,t){for(var r=t;r=1)||98304&f.transformFlags||98304&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(u=e.append(u,m.argumentExpression)),n(t,f,m,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;if(t.level<1&&t.downlevelIteration)s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c);else if(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression)){s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c)}for(var _=0;_=1)if(65536&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),u=e.append(u,[g,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(_===p-1){m=t.context.factory.createArraySliceCall(s,_);n(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(s,_);n(t,f,m,f)}}}l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a);if(u)for(var h=0,y=u;h=0&&e.addRange(o,e.visitNodes(r.statements,E,e.isStatement,s,c+1-s));var l=e.mapDefined(a,$);c>=0?e.addRange(o,l):o=i(i(i([],o.slice(0,s),!0),l,!0),o.slice(s),!0);var u=c>=0?c+1:s;e.addRange(o,e.visitNodes(r.statements,E,e.isStatement,u)),o=d.mergeLexicalEnvironment(o,g());var p=d.createBlock(e.setTextRange(d.createNodeArray(o),r.statements),!0);return e.setTextRange(p,r),e.setOriginalNode(p,r),p}(r.body,r))}(r);case 170:return function(t,r){var n=16777216&t.flags||e.hasSyntacticModifier(t,256);if(n&&!e.hasDecorators(t))return;var i=e.getAllDecoratorsOfClassElement(t,r),a=J(t,r,i);if(n)return d.updatePropertyDeclaration(t,e.concatenate(a,d.createModifiersFromModifierFlags(2)),e.visitNode(t.name,E,e.isPropertyName),void 0,void 0,void 0);return d.updatePropertyDeclaration(t,e.concatenate(a,e.visitNodes(t.modifiers,O,e.isModifierLike)),W(t),void 0,void 0,e.visitNode(t.initializer,E))}(r,n);case 175:return Q(r,n);case 176:return X(r,n);case 172:return G(r,n);case 173:return e.visitEachChild(r,E,t);case 239:return r;case 179:return;default:return e.Debug.failBadSyntaxKind(r)}}(n,r)}))}}function I(t){return function(r){return C(r,(function(r){return function(t,r){switch(t.kind){case 302:case 303:case 304:return E(t);case 175:return Q(t,r);case 176:return X(t,r);case 172:return G(t,r);default:return e.Debug.failBadSyntaxKind(t)}}(r,t)}))}}function O(t){if(!e.isDecorator(t)&&!(117086&e.modifierToFlag(t.kind)||n&&94===t.kind))return t}function M(i){if(e.isStatement(i)&&e.hasSyntacticModifier(i,2))return d.createNotEmittedStatement(i);switch(i.kind){case 94:case 89:return n?void 0:i;case 124:case 122:case 123:case 127:case 162:case 86:case 137:case 147:case 102:case 146:case 186:case 187:case 188:case 189:case 185:case 180:case 166:case 132:case 158:case 135:case 153:case 149:case 145:case 115:case 154:case 183:case 182:case 184:case 181:case 190:case 191:case 192:case 194:case 195:case 196:case 197:case 198:case 199:case 179:case 270:return;case 265:case 264:return d.createNotEmittedStatement(i);case 262:return function(i){if(!(B(i)||n&&e.hasSyntacticModifier(i,1)))return d.updateClassDeclaration(i,e.visitNodes(i.modifiers,O,e.isModifier),i.name,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),e.visitNodes(i.members,P(i),e.isClassElement));var a=e.getProperties(i,!0,!0),o=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&105!==e.skipOuterExpressions(i.expression).kind&&(n|=64);e.classOrConstructorParameterIsDecorated(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);de(t)?n|=8:!function(t){return pe(t)&&e.hasSyntacticModifier(t,1024)}(t)?_e(t)&&(n|=16):n|=32;v<=1&&7&n&&(n|=128);return n}(i,a);128&o&&t.startLexicalEnvironment();var s=i.name||(5&o?d.getGeneratedNameForNode(i):void 0),c=e.getAllDecoratorsOfClass(i),l=J(i,i,c),u=128&o?e.elideNodes(d,i.modifiers):e.visitNodes(i.modifiers,O,e.isModifier),p=d.updateClassDeclaration(i,e.concatenate(l,u),s,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),j(i)),_=e.getEmitFlags(i);1&o&&(_|=32);e.setEmitFlags(p,_);var f=[p];if(128&o){var g=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),m=d.getInternalName(i),h=d.createPartiallyEmittedExpression(m);e.setTextRangeEnd(h,g.end),e.setEmitFlags(h,1536);var y=d.createReturnStatement(h);e.setTextRangePos(y,g.pos),e.setEmitFlags(y,1920),f.push(y),e.insertStatementsAfterStandardPrologue(f,t.endLexicalEnvironment());var b=d.createImmediatelyInvokedArrowFunction(f);e.setEmitFlags(b,33554432);var x=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,b)]));e.setOriginalNode(x,i),e.setCommentRange(x,i),e.setSourceMapRange(x,e.moveRangePastDecorators(i)),e.startOnNewLine(x),f=[x]}8&o?fe(f,i):(128&o||2&o)&&(32&o?f.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&o&&f.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0))));f.length>1&&(f.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(p,4194304|e.getEmitFlags(p)));return e.singleOrMany(f)}(i);case 230:return function(t){var r=e.getAllDecoratorsOfClass(t),n=J(t,t,r);return d.updateClassExpression(t,n,t.name,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),B(t)?j(t):e.visitNodes(t.members,P(t),e.isClassElement))}(i);case 297:return function(r){if(118===r.token)return;return e.visitEachChild(r,E,t)}(i);case 232:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,E,e.isLeftHandSideExpression),void 0)}(i);case 208:return function(t){return d.updateObjectLiteralExpression(t,e.visitNodes(t.properties,I(t),e.isObjectLiteralElement))}(i);case 174:case 170:case 172:case 175:case 176:case 173:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 261:return function(r){if(!q(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,O,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([]));if(de(r)){var i=[n];return fe(i,r),i}return n}(i);case 216:return function(r){if(!q(r))return d.createOmittedExpression();var n=d.updateFunctionExpression(r,e.visitNodes(r.modifiers,O,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([]));return n}(i);case 217:return function(r){var n=d.updateArrowFunction(r,e.visitNodes(r.modifiers,O,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,E,t));return n}(i);case 167:return function(t){if(e.parameterIsThisKeyword(t))return;var r=d.updateParameterDeclaration(t,e.elideNodes(d,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(i);case 215:return function(r){var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,E,t)}(i);case 214:case 233:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 237:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 211:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(i);case 212:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(i);case 213:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,E,e.isExpression),void 0,e.visitNode(t.template,E,e.isExpression))}(i);case 234:return function(t){var r=e.visitNode(t.expression,E,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 266:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(y)}(t))return d.createNotEmittedStatement(t);var n=[],i=2,s=ne(n,t);s&&(b===e.ModuleKind.System&&o===r||(i|=512));var c=he(t),l=ye(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(a,t,!1,!0):d.getLocalName(t,!1,!0),p=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(ee(t)){var f=d.getLocalName(t,!1,!0);p=d.createAssignment(f,p)}var m=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,c)],void 0,function(t,r){var n=a;a=r;var i=[];_();var o=e.map(t.members,Z);return e.insertStatementsAfterStandardPrologue(i,g()),e.addRange(i,o),a=n,d.createBlock(e.setTextRange(d.createNodeArray(i),t.members),!0)}(t,l)),void 0,[p]));e.setOriginalNode(m,t),s&&(e.setSyntheticLeadingComments(m,void 0),e.setSyntheticTrailingComments(m,void 0));return e.setTextRange(m,t),e.addEmitFlags(m,i),n.push(m),n.push(d.createEndOfDeclarationMarker(t)),n}(i);case 242:return function(r){if(de(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,Y))),r)}return e.visitEachChild(r,E,t)}(i);case 259:return function(t){var r=d.updateVariableDeclaration(t,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));t.type&&e.setTypeNode(r.name,t.type);return r}(i);case 267:return ie(i);case 271:return ue(i);case 285:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(i);case 286:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(i);default:return e.visitEachChild(i,E,t)}}function L(r){var n=e.getStrictOptionValue(y,"alwaysStrict")&&!(e.isExternalModule(r)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function R(e){return!!(8192&e.transformFlags)}function B(t){return e.hasDecorators(t)||e.some(t.typeParameters)||e.some(t.heritageClauses,R)||e.some(t.members,R)}function j(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a=2,S=y||v||b,T=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=T(t,n),1===t)return function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&C&&33554432&p.getNodeCheckFlags(t)){var n=p.getReferencedValueDeclaration(t);if(n){var i=E[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}return}(t)||t}(t);case 109:return function(t){if(2&C&&F){var n=F.facts,i=F.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n);return n};var C,E,k,A,N=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=M.get(i.id);if(a){var o=F,s=P;return F=a,P=a,N(t,r,n),F=o,void(P=s)}}switch(r.kind){case 216:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 261:case 174:o=F,s=P;return F=void 0,P=void 0,N(t,r,n),F=o,void(P=s);case 175:case 176:case 172:case 170:o=F,s=P;return P=F,F=void 0,N(t,r,n),F=o,void(P=s);case 165:o=F,s=P;return F=P,P=void 0,N(t,r,n),F=o,void(P=s)}N(t,r,n)};var F,w,P,I,O=[],M=new e.Map;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||!S)return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function L(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 128:return b?void 0:n;case 262:return function(e){return re(e,ne)}(n);case 230:return function(e){return re(e,ie)}(n);case 173:return function(r){if(!v)return e.visitEachChild(r,L,t);return}(n);case 170:return $(n);case 242:return function(r){var n=A;A=[];var a=e.visitEachChild(r,L,t),o=e.some(A)?i([a],A,!0):a;return A=n,o}(n);case 80:return function(t){if(!v)return t;if(e.isStatement(t.parent))return t;return e.setOriginalNode(r.createIdentifier(""),t)}(n);case 209:return function(n){if(v&&e.isPrivateIdentifier(n.name)){var i=be(n.name);if(i)return e.setTextRange(e.setOriginalNode(G(i,n.expression),n),n)}if(D&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)return de(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,L,t)}(n);case 210:return function(n){if(D&&e.isSuperProperty(n)&&I&&F){var i=F.classConstructor,a=F.superClassReference;if(1&F.facts)return de(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,L,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,L,t)}(n);case 223:case 224:return Q(n,!1);case 225:return Z(n,!1);case 211:return function(n){if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.expression)){var a=r.createCallBinding(n.expression,s,f),o=a.thisArg,c=a.target;return e.isCallChain(n)?r.updateCallChain(n,r.createPropertyAccessChain(e.visitNode(c,L),n.questionDotToken,"call"),void 0,void 0,i([e.visitNode(o,L,e.isExpression)],e.visitNodes(n.arguments,L,e.isExpression),!0)):r.updateCallExpression(n,r.createPropertyAccessExpression(e.visitNode(c,L),"call"),void 0,i([e.visitNode(o,L,e.isExpression)],e.visitNodes(n.arguments,L,e.isExpression),!0))}if(D&&e.isSuperProperty(n.expression)&&I&&(null==F?void 0:F.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(n.expression,L,e.isExpression),F.classConstructor,e.visitNodes(n.arguments,L,e.isExpression));return e.setOriginalNode(l,n),e.setTextRange(l,n),l}return e.visitEachChild(n,L,t)}(n);case 243:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,B,e.isExpression))}(n);case 213:return function(n){if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.tag)){var i=r.createCallBinding(n.tag,s,f),a=i.thisArg,o=i.target;return r.updateTaggedTemplateExpression(n,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(o,L),"bind"),void 0,[e.visitNode(a,L,e.isExpression)]),void 0,e.visitNode(n.template,L,e.isTemplateLiteral))}if(D&&e.isSuperProperty(n.tag)&&I&&(null==F?void 0:F.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(n.tag,L,e.isExpression),F.classConstructor,[]);return e.setOriginalNode(c,n),e.setTextRange(c,n),r.updateTaggedTemplateExpression(n,c,void 0,e.visitNode(n.template,L,e.isTemplateLiteral))}return e.visitEachChild(n,L,t)}(n);case 247:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,B,e.isForInitializer),e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,B,e.isExpression),e.visitIterationBody(n.statement,L,t))}(n);case 261:case 216:case 174:case 172:case 175:case 176:return K(void 0,R,n);default:return R(n)}}function R(r){return e.visitEachChild(r,L,t)}function B(e){switch(e.kind){case 223:case 224:return Q(e,!0);case 225:return Z(e,!0);default:return L(e)}}function j(n){switch(n.kind){case 297:return e.visitEachChild(n,j,t);case 232:return function(n){if(4&((null==F?void 0:F.facts)||0)){var i=r.createTempVariable(s,!0);return pe().superClassReference=i,r.updateExpressionWithTypeArguments(n,r.createAssignment(i,e.visitNode(n.expression,L,e.isExpression)),void 0)}return e.visitEachChild(n,L,t)}(n);default:return L(n)}}function J(t){switch(t.kind){case 208:case 207:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,Se,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,Te,e.isObjectLiteralElementLike))}(t);default:return L(t)}}function U(t){switch(t.kind){case 174:return function(e){if(w)return se(e,w);return R(e)}(t);case 175:case 176:case 172:return K(void 0,V,t);case 170:return K(void 0,$,t);case 165:return function(t){var n=e.visitNode(t.expression,L,e.isExpression);e.some(k)&&(n=e.isParenthesizedExpression(n)?r.updateParenthesizedExpression(n,r.inlineExpressions(i(i([],k,!0),[n.expression],!1))):r.inlineExpressions(i(i([],k,!0),[n],!1)),k=void 0);return r.updateComputedPropertyName(t,n)}(t);case 239:return t;default:return L(t)}}function z(t){switch(t.kind){case 170:return q(t);case 175:case 176:return U(t);default:e.Debug.assertMissingNode(t,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function V(n){if(e.Debug.assert(!e.hasDecorators(n)),!v||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,U,t);var i=be(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=be(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}}(n);a&&fe().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(function(t){return e.isModifier(t)&&!e.isStaticModifier(t)&&!e.isAccessorModifier(t)})),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,L,t),void 0,e.visitFunctionBody(n.body,L,t))))}function K(e,t,r){var n=I;I=e;var i=t(r);return I=n,i}function W(n){if(!y)return e.visitEachChild(n,U,t);var i=function(t,n){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,L,e.isExpression),a=e.skipPartiallyEmittedExpressions(i),o=e.isSimpleInlineableExpression(a);if(!(e.isAssignmentExpression(a)&&e.isGeneratedIdentifier(a.left))&&!o&&n){var c=r.getGeneratedNameForNode(t);return 524288&p.getNodeCheckFlags(t)?d(c):s(c),r.createAssignment(c,i)}return o||e.isIdentifier(a)?void 0:i}}(n.name,!!n.initializer||g);if(i&&fe().push(i),e.isStatic(n)&&!v){var a=le(n,r.createThis());if(a){var o=r.createClassStaticBlockDeclaration(r.createBlock([a]));return e.setOriginalNode(o,n),e.setCommentRange(o,n),e.setCommentRange(a,{pos:-1,end:-1}),e.setSyntheticLeadingComments(a,void 0),e.setSyntheticTrailingComments(a,void 0),o}}}function q(n){return e.Debug.assert(!e.hasDecorators(n),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(n)?function(n){if(v){var i=be(n.name);return e.Debug.assert(i,"Undeclared private name for property declaration."),i.isValid?void 0:n}return m&&!e.isStatic(n)?r.updatePropertyDeclaration(n,e.visitNodes(n.modifiers,L,e.isModifierLike),n.name,void 0,void 0,void 0):e.visitEachChild(n,L,t)}(n):W(n)}function $(t){return b&&e.isAutoAccessorPropertyDeclaration(t)?function(t){e.Debug.assertEachNode(t.modifiers,e.isModifier);var n=e.getCommentRange(t),i=e.getSourceMapRange(t),a=t.name,o=a,c=a;if(e.isComputedPropertyName(a)&&!e.isSimpleInlineableExpression(a.expression)){var l=r.createTempVariable(s);e.setSourceMapRange(l,a.expression);var u=e.visitNode(a.expression,L,e.isExpression),d=r.createAssignment(l,u);e.setSourceMapRange(d,a.expression),o=r.updateComputedPropertyName(a,r.inlineExpressions([d,l])),c=r.updateComputedPropertyName(a,l)}var p=e.createAccessorPropertyBackingField(r,t,t.modifiers,t.initializer);e.setOriginalNode(p,t),e.setEmitFlags(p,1536),e.setSourceMapRange(p,i);var _=e.createAccessorPropertyGetRedirector(r,t,t.modifiers,o);e.setOriginalNode(_,t),e.setCommentRange(_,n),e.setSourceMapRange(_,i);var f=e.createAccessorPropertySetRedirector(r,t,t.modifiers,c);return e.setOriginalNode(f,t),e.setEmitFlags(f,1536),e.setSourceMapRange(f,i),e.visitArray([p,_,f],z,e.isClassElement)}(t):q(t)}function G(t,r){return H(t,e.visitNode(r,L,e.isExpression))}function H(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function Q(n,i){if(45===n.operator||46===n.operator){var a=e.skipParentheses(n.operand);if(v&&e.isPrivateIdentifierPropertyAccessExpression(a)){var o;if(o=be(a.name)){var c=X(e.visitNode(a.expression,L,e.isExpression)),l=c.readExpression,u=c.initializeExpression,d=G(o,l),p=e.isPrefixUnaryExpression(n)||i?void 0:r.createTempVariable(s);return d=ee(o,u||l,d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,s,p),63),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}else if(D&&e.isSuperProperty(a)&&I&&F){var _=F.classConstructor,f=F.superClassReference;if(1&F.facts){d=de(a);return e.isPrefixUnaryExpression(n)?r.updatePrefixUnaryExpression(n,d):r.updatePostfixUnaryExpression(n,d)}if(_&&f){var g=void 0,m=void 0;if(e.isPropertyAccessExpression(a)?e.isIdentifier(a.name)&&(m=g=r.createStringLiteralFromNode(a.name)):e.isSimpleInlineableExpression(a.argumentExpression)?m=g=a.argumentExpression:(m=r.createTempVariable(s),g=r.createAssignment(m,e.visitNode(a.argumentExpression,L,e.isExpression))),g&&m){d=r.createReflectGetCall(f,m,_);e.setTextRange(d,a);p=i?void 0:r.createTempVariable(s);return d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,s,p),d=r.createReflectSetCall(f,g,d,_),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}}}return e.visitEachChild(n,L,t)}function X(t){var n=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:n,initializeExpression:void 0};var i=r.createTempVariable(s);return{readExpression:i,initializeExpression:r.createAssignment(i,n)}}function Y(t){if(v){F&&M.set(e.getOriginalNodeId(t),F),l();var n=K(t,(function(t){return e.visitNodes(t,L,e.isStatement)}),t.body.statements);n=r.mergeLexicalEnvironment(n,c());var i=r.createImmediatelyInvokedArrowFunction(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.addEmitFlags(i,2),i}}function Z(n,a){if(e.isDestructuringAssignment(n)){var o=k;k=void 0,n=r.updateBinaryExpression(n,e.visitNode(n.left,J),n.operatorToken,e.visitNode(n.right,L));var c=e.some(k)?r.inlineExpressions(e.compact(i(i([],k,!0),[n],!1))):n;return k=o,c}if(e.isAssignmentExpression(n))if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.left)){var l=be(n.left.name);if(l)return e.setTextRange(e.setOriginalNode(ee(l,n.left.expression,n.right,n.operatorToken.kind),n),n)}else if(D&&e.isSuperProperty(n.left)&&I&&F){var u=F.classConstructor,d=F.superClassReference;if(1&F.facts)return r.updateBinaryExpression(n,de(n.left),n.operatorToken,e.visitNode(n.right,L,e.isExpression));if(u&&d){var p=e.isElementAccessExpression(n.left)?e.visitNode(n.left.argumentExpression,L,e.isExpression):e.isIdentifier(n.left.name)?r.createStringLiteralFromNode(n.left.name):void 0;if(p){var _=e.visitNode(n.right,L,e.isExpression);if(e.isCompoundAssignment(n.operatorToken.kind)){var f=p;e.isSimpleInlineableExpression(p)||(f=r.createTempVariable(s),p=r.createAssignment(f,p));var g=r.createReflectGetCall(d,f,u);e.setOriginalNode(g,n.left),e.setTextRange(g,n.left),_=r.createBinaryExpression(g,e.getNonAssignmentOperatorForCompoundAssignment(n.operatorToken.kind),_),e.setTextRange(_,n)}var m=a?void 0:r.createTempVariable(s);return m&&(_=r.createAssignment(m,_),e.setTextRange(m,n)),_=r.createReflectSetCall(d,p,_,u),e.setOriginalNode(_,n),e.setTextRange(_,n),m&&(_=r.createComma(_,m),e.setTextRange(_,n)),_}}}return v&&function(t){return e.isPrivateIdentifier(t.left)&&102===t.operatorToken.kind}(n)?function(r){var n=be(r.left);if(n){var i=e.visitNode(r.right,L,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(n.brandCheckIdentifier,i),r)}return e.visitEachChild(r,L,t)}(n):e.visitEachChild(n,L,t)}function ee(n,i,a,o){if(i=e.visitNode(i,L,e.isExpression),a=e.visitNode(a,L,e.isExpression),e.isCompoundAssignment(o)){var s=X(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(H(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function te(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function re(r,n){var i=w,a=k;if(w=r,k=void 0,O.push(F),F=void 0,v){var o=e.getNameOfDeclaration(r);o&&e.isIdentifier(o)&&(_e().className=o);var s=te(r);e.some(s)&&(_e().weakSetName=ye("instances",s[0].name))}var c=function(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i=0?(m=y+1,b=i(i(i([],b.slice(0,h),!0),e.visitNodes(a.body.statements,L,e.isStatement,h,m-h),!0),b.slice(h),!0)):h>=0&&(m=h));f&&b.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var x=0;if(null==a?void 0:a.body)if(g)b=b.filter((function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)}));else{for(var D=0,S=a.body.statements;D0){var C=e.visitNodes(a.body.statements,L,e.isStatement,m,x);if(y>=0)e.addRange(b,C);else{var E=h;f&&E++,b=i(i(i([],b.slice(0,E),!0),C,!0),b.slice(E),!0)}m+=x}}var k=r.createThis();(function(t,n,i){if(!v||!e.some(n))return;var a=_e().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))})(b,p,k),ce(b,d,k),a&&e.addRange(b,e.visitNodes(a.body.statements,N,e.isStatement,m));if(0===(b=r.mergeLexicalEnvironment(b,c())).length&&!a)return;var A=(null==a?void 0:a.body)&&a.body.statements.length>=b.length&&null!==(l=a.body.multiLine)&&void 0!==l?l:b.length>0;return e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(b),a?a.body.statements:n.members),A),a?a.body:void 0);function N(t){if(!g||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a))return L(t)}}(a,n,s);return d?n?(e.Debug.assert(l),r.updateConstructorDeclaration(n,void 0,l,d)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,null!=l?l:[],d),n||a),n)):n}function ce(t,r,n){for(var i=0,a=r;i=0;--r){var n,i=O[r];if(i)if(i.privateIdentifierEnvironment)if(n=e(i.privateIdentifierEnvironment,t))return n}}function De(n){var i=r.getGeneratedNameForNode(n),a=be(n.name);if(!a)return e.visitEachChild(n,L,t);var o=n.expression;return(e.isThisProperty(n)||e.isSuperProperty(n)||!e.isSimpleCopiableExpression(n.expression))&&(o=r.createTempVariable(s,!0),fe().push(r.createBinaryExpression(o,63,e.visitNode(n.expression,L,e.isExpression)))),r.createAssignmentTargetWrapper(i,ee(a,o,i,63))}function Se(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=De(n);else if(D&&e.isSuperProperty(n)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)i=de(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,L,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,J)}function Te(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=De(n);else if(D&&e.isSuperProperty(n)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)i=de(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,L,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,L)):i:e.visitNode(t.initializer,J,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,J,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,L)}}}(d||(d={})),function(e){e.createRuntimeTypeSerializer=function(t){var r,n,i=t.hoistVariableDeclaration,a=t.getEmitResolver(),o=t.getCompilerOptions(),s=e.getEmitScriptTarget(o),c=e.getStrictOptionValue(o,"strictNullChecks");return{serializeTypeNode:function(e,t){return l(e,_,t)},serializeTypeOfNode:function(e,t){return l(e,u,t)},serializeParameterTypesOfNode:function(e,t,r){return l(e,d,t,r)},serializeReturnTypeOfNode:function(e,t){return l(e,p,t)}};function l(e,t,i,a){var o=r,s=n;r=e.currentLexicalScope,n=e.currentNameScope;var c=void 0===a?t(i):t(i,a);return r=o,n=s,c}function u(t){switch(t.kind){case 170:case 167:return _(t.type);case 176:case 175:return _(function(t){var r=a.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 262:case 230:case 172:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function d(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&175===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s1&&(c.push(n.createEndOfDeclarationMarker(i)),e.setEmitFlags(c[0],4194304|e.getEmitFlags(c[0])));return e.singleOrMany(c)}(i);case 230:return function(t){return n.updateClassExpression(t,e.visitNodes(t.modifiers,d,e.isModifier),t.name,void 0,e.visitNodes(t.heritageClauses,p,e.isHeritageClause),e.visitNodes(t.members,p,e.isClassElement))}(i);case 174:return function(t){return n.updateConstructorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock))}(i);case 172:return function(t){return m(n.updateMethodDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),t.asteriskToken,e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(i);case 176:return function(t){return m(n.updateSetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock)),t)}(i);case 175:return function(t){return m(n.updateGetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(i);case 170:return function(t){if(16777216&t.flags||e.hasSyntacticModifier(t,2))return;return m(n.updatePropertyDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression)),t)}(i);case 167:return function(t){var r=n.updateParameterDeclaration(t,e.elideNodes(n,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,p,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(i);default:return e.visitEachChild(i,p,t)}}function _(e){return!!(536870912&e.transformFlags)}function f(t){return e.some(t,_)}function g(t,r){var a=[];return y(a,t,!1),y(a,t,!0),function(t){for(var r=0,n=t.members;r0?e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)?n.createVoidZero():n.createNull():void 0,u=a().createDecorateHelper(i,o,s,c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastModifiers(r)),u}}function b(t){return e.visitNode(t.expression,p,e.isExpression)}function x(t,r){var n;if(t){n=[];for(var i=0,o=t;i=2&&6144&_.getNodeCheckFlags(r)&&!!(3&~e.getFunctionFlags(u))){if(K(),o.size){var d=n(c,_,r,o);h[e.getNodeId(d)]=!0;var p=l.statements.slice();e.insertStatementsAfterStandardPrologue(p,[d]),l=c.updateBlock(l,p)}s&&(4096&_.getNodeCheckFlags(r)?e.addEmitHelper(l,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(r)&&e.addEmitHelper(l,e.asyncSuperHelper))}return o=i,s=a,l}function z(t){u();var r=e.getOriginalNode(t,e.isFunctionLike).type,i=g<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=_.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}return}(r):void 0,p=217===t.kind,f=!!(8192&_.getNodeCheckFlags(t)),m=a;a=new e.Set;for(var y=0,v=t.parameters;y=2&&6144&_.getNodeCheckFlags(t);if(N&&(K(),o.size)){var F=n(c,_,t,o);h[e.getNodeId(F)]=!0,e.insertStatementsAfterStandardPrologue(k,[F])}var w=c.createBlock(k,!0);e.setTextRange(w,t.body),N&&s&&(4096&_.getNodeCheckFlags(t)?e.addEmitHelper(w,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(t)&&e.addEmitHelper(w,e.asyncSuperHelper)),b=w}return a=m,p||(o=x,s=D),b}function V(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function K(){1&r||(r|=1,t.enableSubstitution(211),t.enableSubstitution(209),t.enableSubstitution(210),t.enableEmitNotification(262),t.enableEmitNotification(172),t.enableEmitNotification(175),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(242))}function W(t){return 107===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function q(t){return 107===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n}(d||(d={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&_&&function(e){var t=e.kind;return 262===t||174===t||172===t||175===t||176===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==x){var a=x;return x=i,d(t,r,n),void(x=a)}}else if(_&&S[e.getNodeId(r)]){a=x;return x=0,d(t,r,n),void(x=a)}d(t,r,n)};var p=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=p(t,n),1===t&&x)return function(t){switch(t.kind){case 209:return Q(t);case 210:return X(t);case 211:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?Q(n):X(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n);return n};var _,f,g,m,h,y,v,b=!1,x=0,D=0,S=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;m=n;var i=function(n){var i=T(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);b=!1;var a=e.visitEachChild(n,k,t),o=e.concatenate(a.statements,h&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(h))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return C(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),m=void 0,h=void 0,i}));function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function E(t){h=e.append(h,r.createVariableDeclaration(t))}function k(e){return P(e,!1)}function A(e){return P(e,!0)}function N(e){if(133!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return D!==(D&~e|t)}(r,n)){var i=T(r,n),a=e(t);return C(i),a}return e(t)}function w(r){return e.visitEachChild(r,k,t)}function P(a,o){if(!(128&a.transformFlags))return a;switch(a.kind){case 222:return function(i){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,k,e.isExpression))),i),i);return e.visitEachChild(i,k,t)}(a);case 228:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),k,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,L(i.expression?e.visitNode(i.expression,k,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,k,t)}(a);case 252:return function(n){if(2&f&&1&f)return r.updateReturnStatement(n,L(n.expression?e.visitNode(n.expression,k,e.isExpression):r.createVoidZero()));return e.visitEachChild(n,k,t)}(a);case 255:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 249===i.kind&&i.awaitModifier?M(i,n):r.restoreEnclosingLabel(e.visitNode(i,k,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,k,t)}(a);case 208:return function(i){if(65536&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(g){1&_||(_|=1,t.enableSubstitution(211),t.enableSubstitution(209),t.enableSubstitution(210),t.enableEmitNotification(262),t.enableEmitNotification(172),t.enableEmitNotification(175),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(242));var m=e.createSuperAccessVariableStatement(r,c,i,y);S[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var h=r.updateBlock(i.body,s);return g&&v&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=d,v=p,h}function G(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,k,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,k)),e.addRange(s,H(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function H(n,i){for(var a=!1,o=0,s=i.parameters;o0){var l=e.flattenDestructuringBinding(c,k,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),_=e.visitNode(c.initializer,k,e.isExpression),f=r.createAssignment(p,_);d=r.createExpressionStatement(f);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){p=r.cloneNode(c.name);e.setTextRange(p,c.name),e.setEmitFlags(p,48);_=e.visitNode(c.initializer,k,e.isExpression);e.addEmitFlags(_,1584);f=r.createAssignment(p,_);e.setTextRange(f,c),e.setEmitFlags(f,1536);var g=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(g,c),e.setEmitFlags(g,1953);var m=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(m,g);e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else if(65536&c.transformFlags){a=!0;l=e.flattenDestructuringBinding(c,k,t,1,r.getGeneratedNameForNode(c),!1,!0);if(e.some(l)){u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}}return n}function Q(t){return 107===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function X(t){return 107===t.expression.kind?(n=t.argumentExpression,i=t,4096&x?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(d||(d={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(i){return 64&i.transformFlags?298===i.kind?function(i){if(!i.variableDeclaration)return r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock));return e.visitEachChild(i,n,t)}(i):e.visitEachChild(i,n,t):i}}}(d||(d={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(!(32&a.transformFlags))return a;switch(a.kind){case 211:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 209:case 210:if(e.isOptionalChain(a)){u=c(a,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(a,i,t);case 225:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a));return e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 219:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 215:return a(t,s,l);case 209:case 210:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=209===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 211:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),u=c.expression,d=c.chain,p=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,g=r.restoreOuterExpressions(u,f,8);e.isSimpleCopiableExpression(f)||(f=r.createTempVariable(n),g=r.createAssignment(f,g));for(var m,h=f,y=0;y1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),g=[t,r];if(i&&g.push(E(i.initializer)),5===s.jsx){var m=e.getOriginalNode(n);if(m&&e.isSourceFile(m)){void 0===i&&g.push(a.createVoidZero()),g.push(f?a.createTrue():a.createFalse());var h=e.getLineAndCharacterOfPosition(m,d.pos);g.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(h.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(h.character+1))])),g.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression(l(f),void 0,g),d);return u&&e.startOnNewLine(y),y}function b(t,o,c,l){var d=N(t),_=t.attributes.properties,f=e.length(_)?S(_):a.createNull(),g=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):u("createElement"),m=e.createExpressionForJsxElement(a,g,d,f,e.mapDefined(o,p),l);return c&&e.startOnNewLine(m),m}function x(e,t,r,n){var i;if(t&&t.length){var o=function(e){var t=h(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return v(u("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function D(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,p),t,c);return o&&e.startOnNewLine(l),l}function S(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return e.map(t,(function(t){return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,d,e.isExpression))):C(t);var n}))})));r&&n.push(r);return n}(t,r)):function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,T):a.createObjectLiteralExpression(e.map(t,C))})));e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression());r&&n.push(a.createObjectLiteralExpression([r]));return e.singleOrUndefined(n)||o().createAssignHelper(n)}(t,r)}function T(t){return e.visitNode(t.expression,d,e.isExpression)}function C(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=E(t.initializer);return a.createPropertyAssignment(r,n)}function E(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=A(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}var o,s;return 294===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,d,e.isExpression):e.isJsxElement(t)?f(t,!1):e.isJsxSelfClosingElement(t)?g(t,!1):e.isJsxFragment(t)?m(t,!1):e.Debug.failBadSyntaxKind(t)}function k(e,t){var r=A(t);return void 0===e?r:e+" "+r}function A(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function N(t){if(284===t.kind)return N(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function F(t){var r=e.visitNode(t.expression,d,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(d||(d={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){return 512&a.transformFlags?225===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else if(e.isPropertyAccessExpression(s)){l=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t):a}}}(d||(d={})),function(e){var t,r,n,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,n,a,o,s,l,u=t.factory,d=t.getEmitHelperFactory,p=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,m=t.getCompilerOptions(),h=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void D(i,0,0)}v(t,r,n)},t.onSubstituteNode=function(t,r){if(r=y(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var r=h.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;var i=e.getEnclosingBlockScopeContainer(t);for(;n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 109:return function(t){if(1&l&&16&a)return e.setTextRange(u.createUniqueName("_this",48),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&l&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 206:case 262:case 266:case 259:return e.parent.name===e&&h.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(t,(function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=x(8064,64),n=[],i=[];p();var a=u.copyPrologue(t.statements,n,!1,C);e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o)));return u.mergeLexicalEnvironment(n,f()),U(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function D(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return!!(8192&a)&&252===e.kind&&!e.expression}function T(t){return!!(1024&t.transformFlags)||void 0!==s||8192&a&&function(t){return 4194304&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&fe(t)||!!(33554432&e.getEmitFlags(t))}function C(e){return T(e)?N(e,!1):e}function E(e){return T(e)?N(e,!0):e}function k(t){if(T(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=N(t,!1);return D(n,98304,0),i}return N(t,!1)}return t}function A(e){return 107===e.kind?Ie(!0):C(e)}function N(n,o){switch(n.kind){case 125:return;case 262:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,1024)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);4194304&o||(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(n);case 230:return function(e){return P(e)}(n);case 167:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 261:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=H(r),l=32768&a?u.getLocalName(r):r.name;return D(i,98304,0),s=n,u.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 217:return function(r){16384&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,H(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(i,0,0),s=n,o}(n);case 216:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=H(r),l=32768&a?u.getLocalName(r):r.name;return D(n,98304,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 259:return Y(n);case 79:return w(n);case 260:return function(r){if(3&r.flags||524288&r.transformFlags){3&r.flags&&Oe();var n=e.flatMap(r.declarations,1&r.flags?X:Y),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),524288&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0&&o.push(u.createStringLiteral(a.literal.text)),r=u.createCallExpression(u.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)}(n);case 229:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(n);case 107:return Ie(!1);case 109:return function(e){2&a&&!(16384&a)&&(a|=65536);if(s)return 2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this"));return e}(n);case 235:return function(e){if(104===e.keywordToken&&"target"===e.name.escapedText)return a|=32768,u.createUniqueName("_newTarget",48);return e}(n);case 172:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=G(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(n);case 175:case 176:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=H(r);i=175===r.kind?u.updateGetAccessorDeclaration(r,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.modifiers,r.name,o,c);return D(a,98304,0),s=n,i}(n);case 242:return function(r){var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(!s||3&r.declarationList.flags||function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r))n=e.visitEachChild(r,C,t);else{for(var a=void 0,o=0,c=r.declarationList.declarations;o0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var p=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function U(e,t){return!!(65536&a&&217!==t.kind)&&(z(e,t,u.createThis()),!0)}function z(t,r,n){Me();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function V(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 217:return t;case 172:case 175:case 176:i=u.createVoidZero();break;case 174:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 261:case 216:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),103,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function K(t){return e.setTextRange(u.createEmptyStatement(),t)}function W(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),l=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function q(t,r,n){var i=u.createExpressionStatement($(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function $(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var _=G(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=u.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var g=G(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),p.push(m)}p.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var h=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(h),h}function G(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),d=e.visitParameterList(r.parameters,C,t),p=H(r);return 32768&a&&!i&&(261===r.kind||216===r.kind)&&(i=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,d,void 0,p),n),r)}function H(t){var n,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(_(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,0,!1),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedVariableStatement)),o=R(l,t)||o,o=J(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,C),n=d.statements,e.addRange(l,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(217===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var g=e.visitNode(d,C,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),l.push(m),i=d}if(u.mergeLexicalEnvironment(c,f()),V(c,t,!1),U(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var h=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function Q(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,E,e.isExpression),r.operatorToken,e.visitNode(r.right,n?E:C,e.isExpression)):e.visitEachChild(r,C,t)}function X(r){var n=r.name;return e.isBindingPattern(n)?Y(r):!r.initializer&&function(e){var t=h.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(64&a||r&&n&&512&a)&&!(4096&a)&&(!h.isDeclarationWithCollidingName(e)||n&&!r&&!(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,C,t)}function Y(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,!!(32&i)):e.visitEachChild(r,C,t),D(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var l=x(r,n),d=function(r,n,i,o){if(!fe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 247:case 248:case 249:var n=t.initializer;n&&260===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=de(t)||pe(t)||_e(t),c=0,l=r.declarations;c=81&&r<=117)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(d||(d={})),function(e){var t,r,n,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var r,n,a,o,s,c,l,u,d,p,_=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=D(t,i),1===t)return function(t){if(e.isIdentifier(t))return function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(_.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(i);return i};var S,T,C,E,k,A,N,F,w,P,I,O,M=1,L=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||!(2048&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 245:case 246:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 254:return function(r){o&&re({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,B,t),o&&le();return r}(r);case 255:return function(r){o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ue();return r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 261:return J(t);case 216:return U(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):2048&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 261:return J(r);case 216:return U(r);case 175:case 176:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 242:return function(t){if(1048576&t.transformFlags)return void G(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?_.inlineExpressions(e.map(c,H)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);o&&ce();return r}(r);case 248:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 250:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 252:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 225:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(Q(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();De(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Te(r,n,t.left);return De(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?V(r):_.updateBinaryExpression(r,Y(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(Q(i)){var a=void 0;switch(n.kind){case 209:a=_.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 210:a=_.updateElementAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(_.createAssignment(a,e.setTextRange(_.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):_.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 357:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return _.inlineExpressions(r)}(r);case 226:return function(r){if(Q(r.whenTrue)||Q(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 228:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);if(t.asteriskToken){!function(e,t){Ee(7,[e],t)}(8388608&e.getEmitFlags(t.expression)?n:e.setTextRange(f().createValuesHelper(n),t),t)}else!function(e,t){Ee(6,[e],t)}(n,t);return te(r),function(t){return e.setTextRange(_.createCallExpression(_.createPropertyAccessExpression(E,"sent"),void 0,[]),t)}(t)}(r);case 207:return function(e){return K(e.elements,void 0,void 0,e.multiLine)}(r);case 208:return function(t){var r=t.properties,n=t.multiLine,i=X(r),a=Z();De(a,_.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(_.cloneNode(a),a),a.parent)):a),_.inlineExpressions(o);function s(r,i){Q(i)&&r.length>0&&(xe(_.createExpressionStatement(_.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(_,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(r);case 210:return function(r){if(Q(r.argumentExpression))return _.updateElementAccessExpression(r,Y(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 211:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,Q)){var n=_.createCallBinding(r.expression,y,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createFunctionApplyCall(Y(e.visitNode(i,B,e.isLeftHandSideExpression)),a,K(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 212:return function(r){if(e.forEach(r.arguments,Q)){var n=_.createCallBinding(_.createPropertyAccessExpression(r.expression,"bind"),y),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createNewExpression(_.createFunctionApplyCall(Y(e.visitNode(i,B,e.isExpression)),a,K(r.arguments,_.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):4196352&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionDeclaration(r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void h(r):r}function U(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function z(t){var r=[],n=a,i=o,f=s,h=c,y=l,v=u,b=d,x=p,D=M,k=S,A=T,N=C,F=E;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,M=1,S=void 0,T=void 0,C=void 0,E=_.createTempVariable(void 0),g();var w=_.copyPrologue(t.statements,r,!1,B);W(t.statements,w);var P=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(_.createReturnStatement(P)),a=n,o=i,s=f,c=h,l=y,u=v,d=b,p=x,M=D,S=k,T=A,C=N,E=F,e.setTextRange(_.createBlock(r,t.multiLine),t)}function V(t){var r=[];return n(t.left),n(t.right),_.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(Q(t)&&r.length>0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function K(t,r,n,a){var o,s=X(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,_.createArrayLiteralExpression(r?i([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(Q(n)&&t.length>0){var s=void 0!==o;o||(o=Z()),De(o,s?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(t,a)]):_.createArrayLiteralExpression(r?i([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],s);return o?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(l,a)]):e.setTextRange(_.createArrayLiteralExpression(r?i([r],l,!0):l,a),n)}function W(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(i);case 251:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 252:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Ee(8,[r],n);var r,n}(i);case 253:return function(t){Q(t)?(r=Y(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),q(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement));var r,n,i}(i);case 254:return function(t){if(Q(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Y(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(_.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else p++}d.length&&(xe(_.createSwitchStatement(a,_.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}Se(s>=0?o[s]:i);for(c=0;c0)break;l.push(H(i))}l.length&&(xe(_.createExpressionStatement(_.inlineExpressions(l))),c+=l.length,l=[])}}function H(t){return e.setSourceMapRange(_.createAssignment(e.setSourceMapRange(_.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function Q(e){return!!e&&!!(1048576&e.transformFlags)}function X(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(pe(r=u[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(de(r=u[t]))return r.breakLabel}return 0}function me(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(_e(r=u[t])&&fe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(_e(r=u[t]))return r.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var t=_.createNumericLiteral(-1);return void 0===p[e]?p[e]=[t]:p[e].push(t),t}return _.createOmittedExpression()}function ye(t){var r=_.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ye(3),he(t)])),r)}function be(){Ee(0)}function xe(e){e?Ee(1,[e]):be()}function De(e,t,r){Ee(2,[e,t],r)}function Se(e,t){Ee(3,[e],t)}function Te(e,t,r){Ee(4,[e,t],r)}function Ce(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,T[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,A=!1,N=!1,F=void 0,w=void 0,P=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(e){(function(e){if(!N)return!0;if(!d||!p)return!1;for(var t=0;t=0;t--){var r=O[t];w=[_.createWithStatement(r.expression,_.createBlock(w))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;w.unshift(_.createExpressionStatement(_.createCallExpression(_.createPropertyAccessExpression(_.createPropertyAccessExpression(E,"trys"),"push"),void 0,[_.createArrayLiteralExpression([he(n),he(i),he(a),he(o)])]))),I=void 0}e&&w.push(_.createExpressionStatement(_.createAssignment(_.createPropertyAccessExpression(E,"label"),_.createNumericLiteral(R+1))))}F.push(_.createCaseClause(_.createNumericLiteral(R),w||[])),w=void 0}function Fe(e){if(d)for(var t=0;t=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],p>=2?2:0))));if(U(t)){var o=e.getOriginalNodeId(t);b[o]=z(b[o],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 271:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),_!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,B(t))],p>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(n.getExportName(t),n.getLocalName(t))),t),t)));if(U(t)){var i=e.getOriginalNodeId(t);b[i]=V(b[i],t)}else r=V(r,t);return e.singleOrMany(r)}(t);case 278:return function(t){if(!t.moduleSpecifier)return;var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];_!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function M(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);p>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return e.getESModuleInterop(l)?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function L(t,r){var i,o=!t||e.isSimpleInlineableExpression(t)||r?void 0:n.createTempVariable(c),s=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),u=n.createCallExpression(n.createIdentifier("require"),void 0,o?[o]:t?[t]:[]);e.getESModuleInterop(l)&&(u=a().createImportStarHelper(u)),i=p>=2?n.createArrowFunction(void 0,void 0,[],void 0,void 0,u):n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(u)]));var d=n.createCallExpression(n.createPropertyAccessExpression(s,"then"),void 0,[i]);return void 0===o?d:n.createCommaListExpression([n.createAssignment(o,t),d])}function R(t,r){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(n,t,m,d,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function j(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s=e.ModuleKind.Node16?function(t){var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=e.append(r,e.setOriginalNode(e.setTextRange(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,g(t))],d>=2?2:0)),t),t)),r=function(t,r){e.hasSyntacticModifier(r,1)&&(t=e.append(t,o.createExportDeclaration(void 0,r.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,e.idText(r.name))]))));return t}(r,t),e.singleOrMany(r)}(t):void 0;case 277:return function(e){return e.isExportEquals?void 0:e}(t);case 278:return function(t){if(void 0!==u.module&&u.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=o.getGeneratedNameForNode(r),i=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var a=e.isExportNamespaceAsDefaultDeclaration(t)?o.createExportDefault(n):o.createExportDeclaration(void 0,!1,o.createNamedExports([o.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(a,t),[i,a]}(t)}return t}function g(t){var r=e.getExternalModuleNameLiteral(o,t,e.Debug.checkDefined(n),c,l,u),i=[];if(r&&i.push(r),!a){var s=o.createUniqueName("_createRequire",48),p=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),s)])),o.createStringLiteral("module")),_=o.createUniqueName("__require",48),f=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(_,void 0,void 0,o.createCallExpression(o.cloneNode(s),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(101,o.createIdentifier("meta")),o.createIdentifier("url"))]))],d>=2?2:0));a=[p,f]}var g=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(g,e.isIdentifier),o.createCallExpression(o.cloneNode(g),void 0,i)}}}(d||(d={})),function(e){e.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(t,n){return e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n)},t.onEmitNode=function(t,r,i){e.isSourceFile(r)&&(s=r);if(!s)return n(t,r,i);if(s.impliedNodeFormat===e.ModuleKind.ESNext)return o(t,r,i);return u(t,r,i)},t.enableSubstitution(311),t.enableEmitNotification(311),function(r){return 311===r.kind?d(r):function(r){return t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends)}(r)};function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}}(d||(d={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=176===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 178:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 177:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 172:case 171:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:262===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 261:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 174:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 178:case 183:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 177:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 172:case 171:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:262===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 261:case 182:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 176:case 175:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(t.parent.kind)))}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 262:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 198:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 183:case 178:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 177:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:case 171:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:262===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 182:case 261:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 265:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&118===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(t.kind)));function r(r){var n=function(r){return 259===t.kind||206===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:170===t.kind||209===t.kind||169===t.kind||167===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:262===t.parent.kind||167===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:262===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:262===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(d||(d={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&167===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[o],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function o(t){var o,l,u,d,p,_,f,g,m,h,y,v,b=function(){return e.Debug.fail("Diagnostic emitted without context")},x=b,D=!0,S=!1,T=!1,C=!1,E=!1,k=t.factory,A=t.getEmitHost(),N={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=M(F.isSymbolAccessible(e,t,r,!0));return O(F.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,L()))},reportPrivateInBaseOfClassExpression:function(r){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,L(),r))},reportTruncationError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule:function(t,r){var n=F.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);h.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(o&&s)for(var c=0,l=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=o}(d||(d={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformLegacyDecorators),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,(function(e,t){return t}))}function l(e,t){return t}function u(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,a,o,s,c){for(var d,p,_,f,g,m=new Array(361),h=0,y=[],v=[],b=[],x=[],D=0,S=!1,T=[],C=0,E=l,k=u,A=0,N=[],F={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(F)})),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),y[D]=d,v[D]=p,b[D]=_,x[D]=h,D++,d=void 0,p=void 0,_=void 0,h=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||p||_){if(p&&(t=i([],p,!0)),d){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}_&&(t=i(t?i([],t,!0):[],_,!0))}D--,d=y[D],p=v[D],_=b[D],h=x[D],0===D&&(y=[],v=[],b=[],x=[]);return t},setLexicalEnvironmentFlags:function(e,t){h=t?h|e:h&~e},getLexicalEnvironmentFlags:function(){return h},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);d?d.push(r):d=[r];1&h&&(h|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),T[C]=f,C++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;C--,f=T[C],0===C&&(T=[]);return t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=g;return g=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:U,get onSubstituteNode(){return E},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){N.push(e)}},w=0,P=o;w"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(g=r(c(p,t,i),p))return g}}else{if(!a)for(var _=0,f=l;_0){var i=t.preserveSourceNewlinesStack[t.stackIndex],a=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],s=t.declarationListContainerEndStack[t.stackIndex],c=t.shouldEmitCommentsStack[t.stackIndex],l=t.shouldEmitSourceMapsStack[t.stackIndex];Le(i),l&&mn(e),c&&$r(e,a,o,s),null==R||R(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ue.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ue.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Je(0,1,t);if(a===We&&(e.Debug.assertIsDefined(A),a=Ue(1,1,t=i(e.cast(A,e.isExpression))),A=void 0),(a===Wr||a===fn||a===Ve)&&e.isBinaryExpression(t))return t;N=i,a(1,t)}}();return Ne(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 311:return fe(r);case 312:return _e(r);case 313:return function(e,t){var r=h;Ae(t,void 0),Ee(4,e,void 0),Ne(),h=r}(r,Te()),Ce()}return ge(t,r,n,Te()),Ce()},printList:function(e,t,r){return me(e,t,r,Te()),Ce()},printFile:fe,printBundle:_e,writeNode:ge,writeList:me,writeFile:Se,writeBundle:De,bundleFileInfo:G};function _e(e){return De(e,Te(),void 0),Ce()}function fe(e){return Se(e,Te(),void 0),Ce()}function ge(e,t,r,n){var i=h;Ae(n,void 0),Ee(e,t,r),Ne(),h=i}function me(e,t,r,n){var i=h;Ae(n,void 0),r&&ke(r),$t(void 0,t,e),Ne(),h=i}function he(){return h.getTextPosWithWriteLine?h.getTextPosWithWriteLine():h.getTextPos()}function ye(t,r,n){var i=e.lastOrUndefined(G.sections);i&&i.kind===n?i.end=r:G.sections.push({pos:t,end:r,kind:n})}function ve(t){if(Q&&G&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==Y){var r=Y;return xe(h.getTextPos()),X=he(),Y="internal",r}}function be(e){e&&(xe(h.getTextPos()),X=he(),Y=e)}function xe(e){return X"),ar(),we(e.type),wr(e)}(r);case 183:return function(e){Fr(e),Mt(e,e.modifiers),tr("new"),ar(),Vt(e,e.typeParameters),Kt(e,e.parameters),ar(),Zt("=>"),ar(),we(e.type),wr(e)}(r);case 184:return function(e){tr("typeof"),ar(),we(e.exprName),zt(e,e.typeArguments)}(r);case 185:return function(t){Zt("{");var r=1&e.getEmitFlags(t)?768:32897;$t(t,t.members,524288|r),Zt("}")}(r);case 186:return function(e){we(e.elementType,ue.parenthesizeNonArrayTypeOfPostfixType),Zt("["),Zt("]")}(r);case 187:return function(t){it(22,t.pos,Zt,t);var r=1&e.getEmitFlags(t)?528:657;$t(t,t.elements,524288|r,ue.parenthesizeElementTypeOfTupleType),it(23,t.elements.end,Zt,t)}(r);case 188:return function(e){we(e.type,ue.parenthesizeTypeOfOptionalType),Zt("?")}(r);case 190:return function(e){$t(e,e.types,516,ue.parenthesizeConstituentTypeOfUnionType)}(r);case 191:return function(e){$t(e,e.types,520,ue.parenthesizeConstituentTypeOfIntersectionType)}(r);case 192:return function(e){we(e.checkType,ue.parenthesizeCheckTypeOfConditionalType),ar(),tr("extends"),ar(),we(e.extendsType,ue.parenthesizeExtendsTypeOfConditionalType),ar(),Zt("?"),ar(),we(e.trueType),ar(),Zt(":"),ar(),we(e.falseType)}(r);case 193:return function(e){tr("infer"),ar(),we(e.typeParameter)}(r);case 194:return function(e){Zt("("),we(e.type),Zt(")")}(r);case 232:return Ze(r);case 195:return void tr("this");case 196:return function(e){_r(e.operator,tr),ar();var t=147===e.operator?ue.parenthesizeOperandOfReadonlyTypeOperator:ue.parenthesizeOperandOfTypeOperator;we(e.type,t)}(r);case 197:return function(e){we(e.objectType,ue.parenthesizeNonArrayTypeOfPostfixType),Zt("["),we(e.indexType),Zt("]")}(r);case 198:return function(t){var r=e.getEmitFlags(t);Zt("{"),1&r?ar():(cr(),lr());t.readonlyToken&&(we(t.readonlyToken),147!==t.readonlyToken.kind&&tr("readonly"),ar());Zt("["),Re(3,t.typeParameter),t.nameType&&(ar(),tr("as"),ar(),we(t.nameType));Zt("]"),t.questionToken&&(we(t.questionToken),57!==t.questionToken.kind&&Zt("?"));Zt(":"),ar(),we(t.type),er(),1&r?ar():(cr(),ur());$t(t,t.members,2),Zt("}")}(r);case 199:return function(e){Ie(e.literal)}(r);case 200:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),it(58,e.name.end,Zt,e),ar(),we(e.type)}(r);case 201:return function(e){we(e.head),$t(e,e.templateSpans,262144)}(r);case 202:return function(e){we(e.type),we(e.literal)}(r);case 203:return function(e){e.isTypeOf&&(tr("typeof"),ar());if(tr("import"),Zt("("),we(e.argument),e.assertions){Zt(","),ar(),Zt("{"),ar(),tr("assert"),Zt(":"),ar();var t=e.assertions.assertClause.elements;$t(e.assertions.assertClause,t,526226),ar(),Zt("}")}Zt(")"),e.qualifier&&(Zt("."),we(e.qualifier));zt(e,e.typeArguments)}(r);case 204:return function(e){Zt("{"),$t(e,e.elements,525136),Zt("}")}(r);case 205:return function(e){Zt("["),$t(e,e.elements,524880),Zt("]")}(r);case 206:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Zt(":"),ar());we(e.name),Rt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 238:return function(e){Ie(e.expression),we(e.literal)}(r);case 239:return void er();case 240:return function(e){et(e,!e.multiLine&&Er(e))}(r);case 242:return function(e){Mt(e,e.modifiers),we(e.declarationList),er()}(r);case 241:return tt(!1);case 243:return function(t){Ie(t.expression,ue.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||er()}(r);case 244:return function(e){var t=it(100,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.thenStatement),e.elseStatement&&(fr(e,e.thenStatement,e.elseStatement),it(92,e.thenStatement.end,tr,e),244===e.elseStatement.kind?(ar(),we(e.elseStatement)):Jt(e,e.elseStatement))}(r);case 245:return function(t){it(91,t.pos,tr,t),Jt(t,t.statement),e.isBlock(t.statement)&&!q?ar():fr(t,t.statement,t.expression);rt(t,t.statement.end),er()}(r);case 246:return function(e){rt(e,e.pos),Jt(e,e.statement)}(r);case 247:return function(e){var t=it(98,e.pos,tr,e);ar();var r=it(20,t,Zt,e);nt(e.initializer),r=it(26,e.initializer?e.initializer.end:r,Zt,e),jt(e.condition),r=it(26,e.condition?e.condition.end:r,Zt,e),jt(e.incrementor),it(21,e.incrementor?e.incrementor.end:r,Zt,e),Jt(e,e.statement)}(r);case 248:return function(e){var t=it(98,e.pos,tr,e);ar(),it(20,t,Zt,e),nt(e.initializer),ar(),it(102,e.initializer.end,tr,e),ar(),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 249:return function(e){var t=it(98,e.pos,tr,e);ar(),function(e){e&&(we(e),ar())}(e.awaitModifier),it(20,t,Zt,e),nt(e.initializer),ar(),it(163,e.initializer.end,tr,e),ar(),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 250:return function(e){it(87,e.pos,tr,e),Bt(e.label),er()}(r);case 251:return function(e){it(81,e.pos,tr,e),Bt(e.label),er()}(r);case 252:return function(e){it(106,e.pos,tr,e),jt(e.expression&&st(e.expression),st),er()}(r);case 253:return function(e){var t=it(117,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 254:return function(e){var t=it(108,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),ar(),we(e.caseBlock)}(r);case 255:return function(e){we(e.label),it(58,e.label.end,Zt,e),ar(),we(e.statement)}(r);case 256:return function(e){it(110,e.pos,tr,e),jt(st(e.expression),st),er()}(r);case 257:return function(e){it(112,e.pos,tr,e),ar(),we(e.tryBlock),e.catchClause&&(fr(e,e.tryBlock,e.catchClause),we(e.catchClause));e.finallyBlock&&(fr(e,e.catchClause||e.tryBlock,e.finallyBlock),it(97,(e.catchClause||e.tryBlock).end,tr,e),ar(),we(e.finallyBlock))}(r);case 258:return function(e){dr(88,e.pos,tr),er()}(r);case 259:return function(e){var t,r,n,i,a;we(e.name),we(e.exclamationToken),Lt(e.type),Rt(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 260:return function(t){tr(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),ar(),$t(t,t.declarations,528)}(r);case 261:return function(e){lt(e)}(r);case 262:case 263:return gt(r);case 264:return function(e){Mt(e,e.modifiers),tr("interface"),ar(),we(e.name),Vt(e,e.typeParameters),$t(e,e.heritageClauses,512),ar(),Zt("{"),$t(e,e.members,129),Zt("}")}(r);case 265:return function(e){Mt(e,e.modifiers),tr("type"),ar(),we(e.name),Vt(e,e.typeParameters),ar(),Zt("="),ar(),we(e.type),er()}(r);case 266:return function(e){Mt(e,e.modifiers),tr("enum"),ar(),we(e.name),ar(),Zt("{"),$t(e,e.members,145),Zt("}")}(r);case 267:return function(t){Mt(t,t.modifiers),1024&~t.flags&&(tr(16&t.flags?"namespace":"module"),ar());we(t.name);var r=t.body;if(!r)return er();for(;r&&e.isModuleDeclaration(r);)Zt("."),we(r.name),r=r.body;ar(),we(r)}(r);case 268:return function(t){Fr(t),e.forEach(t.statements,Ir),et(t,Er(t)),wr(t)}(r);case 269:return function(e){it(18,e.pos,Zt,e),$t(e,e.clauses,129),it(19,e.clauses.end,Zt,e,!0)}(r);case 270:return function(e){var t=it(94,e.pos,tr,e);ar(),t=it(129,t,tr,e),ar(),t=it(144,t,tr,e),ar(),we(e.name),er()}(r);case 271:return function(e){Mt(e,e.modifiers),it(101,e.modifiers?e.modifiers.end:e.pos,tr,e),ar(),e.isTypeOnly&&(it(155,e.pos,tr,e),ar());we(e.name),ar(),it(63,e.name.end,Zt,e),ar(),function(e){79===e.kind?Ie(e):we(e)}(e.moduleReference),er()}(r);case 272:return function(e){Mt(e,e.modifiers),it(101,e.modifiers?e.modifiers.end:e.pos,tr,e),ar(),e.importClause&&(we(e.importClause),ar(),it(159,e.importClause.end,tr,e),ar());Ie(e.moduleSpecifier),e.assertClause&&Bt(e.assertClause);er()}(r);case 273:return function(e){e.isTypeOnly&&(it(155,e.pos,tr,e),ar());we(e.name),e.name&&e.namedBindings&&(it(27,e.name.end,Zt,e),ar());we(e.namedBindings)}(r);case 274:return function(e){var t=it(41,e.pos,Zt,e);ar(),it(129,t,tr,e),ar(),we(e.name)}(r);case 280:return function(e){var t=it(41,e.pos,Zt,e);ar(),it(129,t,tr,e),ar(),we(e.name)}(r);case 275:case 279:return function(e){ht(e)}(r);case 276:case 281:return function(e){yt(e)}(r);case 277:return function(e){var t=it(94,e.pos,tr,e);ar(),e.isExportEquals?it(63,t,rr,e):it(89,t,tr,e);ar(),Ie(e.expression,e.isExportEquals?ue.getParenthesizeRightSideOfBinaryForOperator(63):ue.parenthesizeExpressionOfExportDefault),er()}(r);case 278:return function(e){Mt(e,e.modifiers);var t=it(94,e.pos,tr,e);ar(),e.isTypeOnly&&(t=it(155,t,tr,e),ar());e.exportClause?we(e.exportClause):t=it(41,t,Zt,e);if(e.moduleSpecifier){ar(),it(159,e.exportClause?e.exportClause.end:t,tr,e),ar(),Ie(e.moduleSpecifier)}e.assertClause&&Bt(e.assertClause);er()}(r);case 299:return function(e){it(131,e.pos,tr,e),ar();var t=e.elements;$t(e,t,526226)}(r);case 300:return function(t){we(t.name),Zt(":"),ar();var r=t.value;if(!(512&e.getEmitFlags(r))){sn(e.getCommentRange(r).pos)}we(r)}(r);case 282:case 325:case 336:case 337:case 339:case 340:case 341:case 342:case 355:case 359:case 358:return;case 283:return function(e){tr("require"),Zt("("),Ie(e.expression),Zt(")")}(r);case 11:return function(e){h.writeLiteral(e.text)}(r);case 286:case 289:return function(t){if(Zt("<"),e.isJsxOpeningElement(t)){var r=Dr(t.tagName,t);vt(t.tagName),zt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&ar(),we(t.attributes),Sr(t.attributes,t),hr(r)}Zt(">")}(r);case 287:case 290:return function(t){Zt("")}(r);case 291:return function(e){we(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Zt,e.initializer,Oe)}(r);case 292:return function(e){$t(e,e.properties,262656)}(r);case 293:return function(e){Zt("{..."),Ie(e.expression),Zt("}")}(r);case 294:return function(t){var r;if(t.expression||!oe&&!e.nodeIsSynthesized(t)&&(o=t.pos,function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(o)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(o))){var n=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;n&&h.increaseIndent();var a=it(18,t.pos,Zt,t);we(t.dotDotDotToken),Ie(t.expression),it(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||a,Zt,t),n&&h.decreaseIndent()}var o}(r);case 295:return function(e){it(82,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(r);case 296:return function(e){var t=it(89,e.pos,tr,e);bt(e,e.statements,t)}(r);case 297:return function(e){ar(),_r(e.token,tr),ar(),$t(e,e.types,528)}(r);case 298:return function(e){var t=it(83,e.pos,tr,e);ar(),e.variableDeclaration&&(it(20,t,Zt,e),we(e.variableDeclaration),it(21,e.variableDeclaration.end,Zt,e),ar());we(e.block)}(r);case 302:return function(t){we(t.name),Zt(":"),ar();var r=t.initializer;if(!(512&e.getEmitFlags(r))){sn(e.getCommentRange(r).pos)}Ie(r,ue.parenthesizeExpressionForDisallowedComma)}(r);case 303:return function(e){we(e.name),e.objectAssignmentInitializer&&(ar(),Zt("="),ar(),Ie(e.objectAssignmentInitializer,ue.parenthesizeExpressionForDisallowedComma))}(r);case 304:return function(e){e.expression&&(it(25,e.pos,Zt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma))}(r);case 305:return function(e){we(e.name),Rt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 306:return He(r);case 313:case 307:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(i)?64:0;$t(t,t.properties,526226|a|n),r&&ur()}(r);case 209:return function(t){Ie(t.expression,ue.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=Cr(t,t.expression,r),i=Cr(t,r,t.name);mr(n,!1);var a=28!==r.kind&&function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Nr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)&&!h.hasTrailingComment()&&!h.hasTrailingWhitespace();a&&Zt(".");t.questionDotToken?we(r):it(r.kind,t.expression.end,Zt,t);mr(i,!1),we(t.name),hr(n,i)}(r);case 210:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),we(e.questionDotToken),it(22,e.expression.end,Zt,e),Ie(e.argumentExpression),it(23,e.argumentExpression.end,Zt,e)}(r);case 211:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Zt("("),Xt("0"),Zt(","),ar());Ie(t.expression,ue.parenthesizeLeftSideOfAccess),r&&Zt(")");we(t.questionDotToken),zt(t,t.typeArguments),Gt(t,t.arguments,2576,ue.parenthesizeExpressionForDisallowedComma)}(r);case 212:return function(e){it(104,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeExpressionOfNew),zt(e,e.typeArguments),Gt(e,e.arguments,18960,ue.parenthesizeExpressionForDisallowedComma)}(r);case 213:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Zt("("),Xt("0"),Zt(","),ar());Ie(t.tag,ue.parenthesizeLeftSideOfAccess),r&&Zt(")");zt(t,t.typeArguments),ar(),Ie(t.template)}(r);case 214:return function(e){Zt("<"),we(e.type),Zt(">"),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){var t=it(20,e.pos,Zt,e),r=Dr(e.expression,e);Ie(e.expression,void 0),Sr(e.expression,e),hr(r),it(21,e.expression?e.expression.end:t,Zt,e)}(r);case 216:return function(e){Mr(e.name),lt(e)}(r);case 217:return function(e){Mt(e,e.modifiers),ut(e,Ye)}(r);case 219:return function(e){it(90,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 220:return function(e){it(113,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 221:return function(e){it(115,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 222:return function(e){it(134,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 223:return function(e){_r(e.operator,rr),function(e){var t=e.operand;return 223===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&ar();Ie(e.operand,ue.parenthesizeOperandOfPrefixUnary)}(r);case 224:return function(e){Ie(e.operand,ue.parenthesizeOperandOfPostfixUnary),_r(e.operator,rr)}(r);case 225:return pe(r);case 226:return function(e){var t=Cr(e,e.condition,e.questionToken),r=Cr(e,e.questionToken,e.whenTrue),n=Cr(e,e.whenTrue,e.colonToken),i=Cr(e,e.colonToken,e.whenFalse);Ie(e.condition,ue.parenthesizeConditionOfConditionalExpression),mr(t,!0),we(e.questionToken),mr(r,!0),Ie(e.whenTrue,ue.parenthesizeBranchOfConditionalExpression),hr(t,r),mr(n,!0),we(e.colonToken),mr(i,!0),Ie(e.whenFalse,ue.parenthesizeBranchOfConditionalExpression),hr(n,i)}(r);case 227:return function(e){we(e.head),$t(e,e.templateSpans,262144)}(r);case 228:return function(e){it(126,e.pos,tr,e),we(e.asteriskToken),jt(e.expression&&st(e.expression),ct)}(r);case 229:return function(e){it(25,e.pos,Zt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma)}(r);case 230:return function(e){Mr(e.name),mt(e)}(r);case 231:case 355:case 358:case 359:return;case 233:return function(e){Ie(e.expression,void 0),e.type&&(ar(),tr("as"),ar(),we(e.type))}(r);case 234:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),rr("!")}(r);case 232:return Ze(r);case 237:return function(e){Ie(e.expression,void 0),e.type&&(ar(),tr("satisfies"),ar(),we(e.type))}(r);case 235:return function(e){dr(e.keywordToken,e.pos,Zt),Zt("."),we(e.name)}(r);case 236:return e.Debug.fail("SyntheticExpression should never be printed.");case 284:return function(e){we(e.openingElement),$t(e,e.children,262144),we(e.closingElement)}(r);case 285:return function(e){Zt("<"),vt(e.tagName),zt(e,e.typeArguments),ar(),we(e.attributes),Zt("/>")}(r);case 288:return function(e){we(e.openingFragment),$t(e,e.children,262144),we(e.closingFragment)}(r);case 354:return e.Debug.fail("SyntaxList should not be printed");case 356:return function(t){var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||sn(t.expression.pos);Ie(t.expression),1024&r||t.end===t.expression.end||an(t.expression.end)}(r);case 357:return function(e){Gt(e,e.elements,528,void 0)}(r);case 360:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?pr(r,tr):e.isTokenKind(r.kind)?pr(r,Zt):void(e.findAncestor(r,(function(t){return e.isEtsComponentExpression(t)}))||e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),".")))}function We(t,r){var n=Ue(1,t,r);e.Debug.assertIsDefined(A),r=A,A=void 0,n(t,r)}function qe(r){var n=!1,a=312===r.kind?r:void 0;if(!a||K!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?_t:ft;Yr(t,t.statements,r),ur(),dr(19,t.statements.end,Zt,t),null==R||R(t)}function _t(e){ft(e,!0)}function ft(e,t){var r=Nt(e.statements),n=h.getTextPos();qe(e),0===r&&n===h.getTextPos()&&t?(ur(),$t(e,e.statements,768),lr()):$t(e,e.statements,1,void 0,r)}function gt(e){mt(e)}function mt(t){e.forEach(t.members,Or),Ot(t,t.modifiers),e.isStructDeclaration(t)?tr("struct"):tr("class"),t.name&&(ar(),Pe(t.name));var r=65536&e.getEmitFlags(t);r&&lr(),Vt(t,t.typeParameters),$t(t,t.heritageClauses,0),ar(),Zt("{"),$t(t,t.members,129),Zt("}"),r&&ur()}function ht(e){Zt("{"),$t(e,e.elements,525136),Zt("}")}function yt(e){e.isTypeOnly&&(tr("type"),ar()),e.propertyName&&(we(e.propertyName),ar(),it(129,e.propertyName.end,tr,e),ar()),we(e.name)}function vt(e){79===e.kind?Ie(e):we(e)}function bt(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(dr(58,n,Zt,t),ar(),a&=-130):it(58,n,Zt,t),$t(t,r,a)}function xt(t){$t(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function Dt(t){t.typeParameters&&$t(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&$t(t,e.factory.createNodeArray(t.parameters),33),t.type&&(cr(),ar(),Zt("*"),ar(),we(t.type))}function St(e){Zt("@"),we(e)}function Tt(t){var r=e.getTextOfJSDocComment(t);r&&(ar(),$(r))}function Ct(e){e&&(ar(),Zt("{"),we(e.type),Zt("}"))}function Et(t){cr();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?Yr(t,r,At):At(t)}function kt(t,r,n,a){if(t){var o=h.getTextPos();ir('/// '),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"no-default-lib"}),cr()}if(i&&i.moduleName&&(ir('/// ')),cr()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s')):ir('/// ')),cr()}for(var u=0,d=r;u')),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"reference",data:p.fileName}),cr()}for(var _=0,f=n;_")),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),cr()}for(var m=0,y=a;m')),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"lib",data:p.fileName}),cr()}}function At(t){var r=t.statements;Fr(t),e.forEach(t.statements,Ir),qe(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&kt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),$t(t,r,1,void 0,-1===n?r.length:n),wr(t)}function Nt(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===l;if(u&&32768&o)return null==B||B(a),void(null==j||j(a));15360&o&&(Zt(function(e){return n[15360&e][0]}(o)),u&&a&&sn(a.pos,!0)),null==B||B(a),u?!(1&o)||q&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&ar():cr():Qt(t,r,a,o,s,c,l,a.hasTrailingComma,a),null==j||j(a),15360&o&&(u&&a&&an(a.end),Zt(function(e){return n[15360&e][1]}(o)))}}function Qt(t,r,n,i,a,o,s,c,l){var u=!(262144&i),d=u,p=yr(r,n[o],i);p?(cr(p),d=!1):256&i&&ar(),128&i&&lr();for(var _,f,g=function(e,t){return 1===e.length?S:"object"==typeof t?T:C}(t,a),h=!1,y=0;y0?(131&i||(lr(),h=!0),cr(b),d=!1):_&&512&i&&ar()}if(f=ve(v),d)sn(e.getCommentRange(v).pos);else d=u;m=v.pos,g(v,t,a,y),h&&(ur(),h=!1),_=v}var x=_?e.getEmitFlags(_):0,D=oe||!!(1024&x),E=c&&64&i&&16&i;E&&(_&&!D?it(27,_.end,Zt,_):Zt(",")),_&&(r?r.end:-1)!==_.end&&60&i&&!D&&an(E&&(null==l?void 0:l.end)?l.end:_.end),128&i&&ur(),be(f);var k=br(r,n[o+s-1],i,l);k?cr(k):2097408&i&&ar()}function Xt(e){h.writeLiteral(e)}function Yt(e,t){h.writeSymbol(e,t)}function Zt(e){h.writePunctuation(e)}function er(){h.writeTrailingSemicolon(";")}function tr(e){h.writeKeyword(e)}function rr(e){h.writeOperator(e)}function nr(e){h.writeParameter(e)}function ir(e){h.writeComment(e)}function ar(){h.writeSpace(" ")}function or(e){h.writeProperty(e)}function sr(e){h.nonEscapingWrite?h.nonEscapingWrite(e):h.write(e)}function cr(e){void 0===e&&(e=1);for(var t=0;t0)}function lr(){h.increaseIndent()}function ur(){h.decreaseIndent()}function dr(t,r,n,i){return Z?_r(t,n,r):function(t,r,n,i,a){if(Z||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||x;i=hn(l,c?c.pos:i),!(128&s)&&i>=0&&vn(l,i);i=a(r,n,i),c&&(i=c.end);!(256&s)&&i>=0&&vn(l,i);return i}(i,t,n,r,_r)}function pr(t,r){J&&J(t),r(e.tokenToString(t.kind)),U&&U(t)}function _r(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function fr(t,r,n){if(1&e.getEmitFlags(t))ar();else if(q){var i=Cr(t,r,n);i?cr(i):ar()}else cr()}function gr(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i-1&&i.indexOf(r)===a+1}(t,r)?xr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!q&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(Tr(t,n)||Tr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function br(t,r,n,a){if(2&n||q){if(65536&n)return 1;if(void 0===r)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(r)&&(!r.parent||r.parent===t)){if(q){var o=a&&!e.positionIsSynthesized(a.end)?a.end:r.end;return xr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,r,i)?0:1}if(Tr(r,n))return 1}return 1&n&&!(131072&n)?1:0}function xr(t){e.Debug.assert(!!q);var r=t(!0);return 0===r?t(!1):r}function Dr(e,t){var r=q&&yr(t,e,0);return r&&mr(r,!1),!!r}function Sr(e,t){var r=q&&br(t,e,0,void 0);r&&cr(r)}function Tr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?!!(65536&r):n}return!!(65536&r)}function Cr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=kr(t),r=kr(r),n=kr(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:q?xr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function Er(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function kr(t){for(;215===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Ar(t,r){if(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t))return Lr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return Ar(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function Nr(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:Ar(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Nr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function Fr(t){t&&524288&e.getEmitFlags(t)||(p.push(_),_=0,u.push(d),d=0,c.push(l),l=void 0,f.push(g))}function wr(t){t&&524288&e.getEmitFlags(t)||(_=p.pop(),d=u.pop(),l=c.pop(),g=f.pop())}function Pr(t){g&&g!==e.lastOrUndefined(f)||(g=new e.Set),g.add(t)}function Ir(t){if(t)switch(t.kind){case 240:case 295:case 296:e.forEach(t.statements,Ir);break;case 255:case 253:case 245:case 246:Ir(t.statement);break;case 244:Ir(t.thenStatement),Ir(t.elseStatement);break;case 247:case 249:case 248:Ir(t.initializer),Ir(t.statement);break;case 254:Ir(t.caseBlock);break;case 269:e.forEach(t.clauses,Ir);break;case 257:Ir(t.tryBlock),Ir(t.catchClause),Ir(t.finallyBlock);break;case 298:Ir(t.variableDeclaration),Ir(t.block);break;case 242:Ir(t.declarationList);break;case 260:e.forEach(t.declarations,Ir);break;case 259:case 167:case 206:case 262:case 274:case 280:Mr(t.name);break;case 261:Mr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Ir),Ir(t.body));break;case 204:case 205:case 275:e.forEach(t.elements,Ir);break;case 272:Ir(t.importClause);break;case 273:Mr(t.name),Ir(t.namedBindings);break;case 276:Mr(t.propertyName||t.name)}}function Or(e){if(e)switch(e.kind){case 302:case 303:case 170:case 172:case 175:case 176:Mr(e.name)}}function Mr(t){t&&(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t)?Lr(t):e.isBindingPattern(t)&&Ir(t))}function Lr(t){if(4==(7&t.autoGenerateFlags))return Rr(e.getNodeForGeneratedName(t),e.isPrivateIdentifier(t),t.autoGenerateFlags,t.autoGeneratePrefix,t.autoGenerateSuffix);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){var r=e.formatGeneratedNamePart(t.autoGeneratePrefix,Lr),n=e.formatGeneratedNamePart(t.autoGenerateSuffix);switch(7&t.autoGenerateFlags){case 1:return zr(0,!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n);case 2:return e.Debug.assertNode(t,e.isIdentifier),zr(268435456,!!(8&t.autoGenerateFlags),!1,r,n);case 3:return Vr(e.idText(t),32&t.autoGenerateFlags?jr:Br,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(7&t.autoGenerateFlags,e.GeneratedIdentifierFlags,!0),"."))}(t))}function Rr(t,r,n,i,o){var s=e.getNodeId(t);return a[s]||(a[s]=function(t,r,n,i,a){switch(t.kind){case 79:case 80:return Vr(Ar(t),Br,!!(16&n),!!(8&n),r,i,a);case 267:case 266:return e.Debug.assert(!i&&!a&&!r),function(t){var r=Ar(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:Vr(r,Br,!1,!1,!1,"","")}(t);case 272:case 278:return e.Debug.assert(!i&&!a&&!r),function(t){var r=e.getExternalModuleName(t);return Vr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module",Br,!1,!1,!1,"","")}(t);case 261:case 262:case 277:return e.Debug.assert(!i&&!a&&!r),Vr("default",Br,!1,!1,!1,"","");case 230:return e.Debug.assert(!i&&!a&&!r),Vr("class",Br,!1,!1,!1,"","");case 172:case 175:case 176:return function(t,r,n,i){if(e.isIdentifier(t.name))return Rr(t.name,r);return zr(0,!1,r,n,i)}(t,r,i,a);case 165:return zr(0,!0,r,i,a);default:return zr(0,!1,r,i,a)}}(t,r,null!=n?n:0,e.formatGeneratedNamePart(i,Lr),e.formatGeneratedNamePart(o)))}function Br(e){return jr(e)&&!s.has(e)&&!(g&&g.has(e))}function jr(t){return!i||e.isFileLevelUniqueName(i,t,F)}function Jr(e){var t;switch(e){case"":return _;case"#":return d;default:return null!==(t=null==l?void 0:l.get(e))&&void 0!==t?t:0}}function Ur(t,r){switch(t){case"":_=r;break;case"#":d=r;break;default:null!=l||(l=new e.Map),l.set(t,r)}}function zr(t,r,n,i,a){i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1));var o=e.formatGeneratedName(n,i,"",a),s=Jr(o);if(t&&!(s&t)){var c=268435456===t?"_i":"_n";if(Br(u=e.formatGeneratedName(n,i,c,a)))return s|=t,r&&Pr(u),Ur(o,s),u}for(;;){var l=268435455&s;if(s++,8!==l&&13!==l){var u;c=l<26?"_"+String.fromCharCode(97+l):"_"+(l-26);if(Br(u=e.formatGeneratedName(n,i,c,a)))return r&&Pr(u),Ur(o,s),u}}}function Vr(t,r,n,i,a,o,c){if((void 0===r&&(r=Br),t.length>0&&35===t.charCodeAt(0)&&(t=t.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n)&&r(u=e.formatGeneratedName(a,o,t,c)))return i?Pr(u):s.add(u),u;95!==t.charCodeAt(t.length-1)&&(t+="_");for(var l=1;;){var u;if(r(u=e.formatGeneratedName(a,o,t+l,c)))return i?Pr(u):s.add(u),u;l++}}function Kr(e){return Vr(e,jr,!0,!1,!1,"","")}function Wr(e,t){var r=Ue(2,e,t),n=re,i=ne,a=ie;qr(t),r(e,t),$r(t,n,i,a)}function qr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){ce(),ae=!1;var a=n<0||!!(512&r)||11===t.kind,o=i<0||!!(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Zr(n,355!==t.kind),(!a||n>=0&&512&r)&&(re=n),(!o||i>=0&&1024&r)&&(ne=i,260===t.kind&&(ie=i)));e.forEach(e.getSyntheticLeadingComments(t),Hr),le()}(t,r,n.pos,n.end),2048&r&&(oe=!0)}function $r(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(oe=!1),Gr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&Gr(t,a,s.pos,s.end,r,n,i)}function Gr(t,r,n,i,a,o,s){ce();var c=i<0||!!(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Qr),(n>0||i>0)&&n!==i&&(re=a,ne=o,ie=s,c||355===t.kind||function(e){dn(e,on)}(i)),le()}function Hr(e){(e.hasLeadingNewline||2===e.kind)&&h.writeLine(),Xr(e),e.hasTrailingNewLine||2===e.kind?h.writeLine():h.writeSpace(" ")}function Qr(e){h.isAtStartOfLine()||h.writeSpace(" "),Xr(e),e.hasTrailingNewLine&&h.writeLine()}function Xr(t){var r=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,h,0,r.length,V)}function Yr(t,r,n){ce();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=oe||c<0||!!(1024&l);s<0||!!(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Fe(),h,pn,a,V,oe))&&(k?k.push(o):k=[o])),le(),2048&l&&!oe?(oe=!0,n(t),oe=!1):n(t),ce(),u||(Zr(r.end,!0),ae&&!h.isAtStartOfLine()&&h.writeLine()),le()}function Zr(e,t){ae=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?un(e,tn):un(e,nn):0===e&&un(e,en)}function en(e,t,r,n,i){_n(e,t)&&nn(e,t,r,n,i)}function tn(e,t,r,n,i){_n(e,t)||nn(e,t,r,n,i)}function rn(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function nn(t,r,n,a,o){i&&rn(i.text,t)&&(ae||(e.emitNewLineBeforeLeadingCommentOfPosition(Fe(),h,o,t),ae=!0),yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a?h.writeLine():3===n&&h.writeSpace(" "))}function an(e){oe||-1===e||Zr(e,!0)}function on(t,r,n,a){i&&rn(i.text,t)&&(h.isAtStartOfLine()||h.writeSpace(" "),yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a&&h.writeLine())}function sn(e,t,r){oe||(ce(),dn(e,t?on:r?cn:ln),le())}function cn(t,r,n){i&&(yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),2===n&&h.writeLine())}function ln(t,r,n,a){i&&(yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a?h.writeLine():h.writeSpace(" "))}function un(t,r){!i||-1!==re&&t===re||(function(t){return void 0!==k&&e.last(k).nodePos===t}(t)?function(t){if(!i)return;var r=e.last(k).detachedCommentEndPos;k.length-1?k.pop():k=void 0;e.forEachLeadingCommentRange(i.text,r,t,r)}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function dn(t,r){i&&(-1===ne||t!==ne&&t!==ie)&&e.forEachTrailingCommentRange(i.text,t,r)}function pn(t,r,n,a,o,s){i&&rn(i.text,a)&&(yn(a),e.writeCommentRange(t,r,n,a,o,s),yn(o))}function _n(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function fn(e,t){var r=Ue(3,e,t);gn(t),r(e,t),mn(t)}function gn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&b&&b.appendSourceMap(h.getLine(),h.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||x;355!==t.kind&&!(16&r)&&n.pos>=0&&vn(n.source||x,hn(a,n.pos)),64&r&&(Z=!0)}}function mn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(Z=!1),355!==t.kind&&!(32&r)&&n.end>=0&&vn(n.source||x,n.end))}function hn(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function yn(t){if(!(Z||e.positionIsSynthesized(t)||xn(x))){var r=e.getLineAndCharacterOfPosition(x,t),n=r.line,i=r.character;b.addMapping(h.getLine(),h.getColumn(),ee,n,i,void 0)}}function vn(e,t){if(e!==x){var r=x,n=ee;bn(e),yn(t),function(e,t){x=e,ee=t}(r,n)}else yn(t)}function bn(e){Z||(x=e,e!==D?xn(e)||(ee=b.addSource(e.fileName),t.inlineSources&&b.setSourceContent(ee,e.text),D=e,te=ee):ee=te)}function xn(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,r,n){t(e)}function T(e,t,r,n){t(e,r.select(n))}function C(e,t,r,n){t(e,r)}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=y,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return y(t,r)})),c=0,l=t.fileNames;c=0}function p(e){return t.realpath?t.realpath(e):e}function _(t,r,n){var i=t.sortedAndCanonicalizedFiles,o=a(r);if(n)e.insertSorted(i,o,e.compareStringsCaseSensitive)&&t.files.push(r);else{var s=e.binarySearch(i,o,e.identity,e.compareStringsCaseSensitive);if(s>=0){i.splice(s,1);var c=t.files.findIndex((function(e){return a(e)===o}));t.files.splice(c,1)}}}function f(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach((function(t){t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return n(e)===r})))&&e(t,a,n)}))},e.updatePackageJsonWatch=function(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,n,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,n,{createNewValue:a,onDeleteValue:r,onExistingValue:function(e,r,n){if(e.flags===r)return;e.watcher.close(),t.set(n,a(n,r))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),g=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,m=g||e.isArray(s)?void 0:s;return!!(h(f+".ts")||h(f+".tsx")||h(f+".ets"))&&(d("Project: ".concat(a," Detected output file: ").concat(n)),!0);function h(t){return g?!!g.getSourceFileByPath(t):m?m.getState().fileInfos.has(t):!!e.find(s,(function(e){return p(e)===t}))}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,a,o){e.setSysLog(n===t.Verbose?a:e.noop);var s={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,!!(1&n),i)}},c=n!==t.None?{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")}:void 0,l=n===t.Verbose?{watchFile:function(e,t,r,n,i,s){a("FileWatcher:: Added:: ".concat(_(e,r,n,i,s,o)));var l=c.watchFile(e,t,r,n,i,s);return{close:function(){a("FileWatcher:: Close:: ".concat(_(e,r,n,i,s,o))),l.close()}}},watchDirectory:function(t,r,n,i,s,l){var u="DirectoryWatcher:: Added:: ".concat(_(t,n,i,s,l,o));a(u);var d=e.timestamp(),p=c.watchDirectory(t,r,n,i,s,l),f=e.timestamp()-d;return a("Elapsed:: ".concat(f,"ms ").concat(u)),{close:function(){var r="DirectoryWatcher:: Close:: ".concat(_(t,n,i,s,l,o));a(r);var c=e.timestamp();p.close();var u=e.timestamp()-c;a("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:c||s,u=n===t.Verbose?function(e,t,r,n,i){return a("ExcludeWatcher:: Added:: ".concat(_(e,t,r,n,i,o))),{close:function(){return a("ExcludeWatcher:: Close:: ".concat(_(e,t,r,n,i,o)))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return function(n,i,a,o,s,c){var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?u(n,a,o,s,c):l[t].call(void 0,n,i,a,o,s,c)}}function p(t){return function(r,n,c,l,u,d){return s[t].call(void 0,r,(function(){for(var s=[],p=0;p=4,b=(m+1+"").length;v&&(b=Math.max(d.length,b));for(var x="",D=p;D<=m;D++){x+=o.getNewLine(),v&&p+11}))&&cr(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&0===d&&cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");z.checkJs&&!e.getAllowJSCompilerOption(z)&&de.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));z.emitDeclarationOnly&&(e.getEmitDeclarations(z)||cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&cr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));z.emitDecoratorMetadata&&!z.experimentalDecorators&&cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");z.jsxFactory?(z.reactNamespace&&cr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+z.jsx)),e.parseIsolatedEntityName(z.jsxFactory,d)||lr("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!e.isIdentifierText(z.reactNamespace,d)&&lr("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,z.reactNamespace);z.jsxFragmentFactory&&(z.jsxFactory||cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+z.jsx)),e.parseIsolatedEntityName(z.jsxFragmentFactory,d)||lr("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFragmentFactory));z.reactNamespace&&(4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+z.jsx)));z.jsxImportSource&&2===z.jsx&&cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+z.jsx));z.preserveValueImports&&e.getEmitModuleKind(z)=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&b(o,r)),i=n&&W.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=q.get(t);return!!a&&(e.isTraceEnabled(z,oe)&&e.trace(oe,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function it(t){return{getPrependNodes:st,getCanonicalFileName:Xt,getCommonSourceDirectory:Ge.getCommonSourceDirectory,getCompilerOptions:Ge.getCompilerOptions,getCurrentDirectory:function(){return pe},getNewLine:function(){return oe.getNewLine()},getSourceFile:Ge.getSourceFile,getSourceFileByPath:Ge.getSourceFileByPath,getSourceFiles:Ge.getSourceFiles,getLibFileFromReference:Ge.getLibFileFromReference,isSourceFileFromExternalLibrary:ct,getResolvedProjectReferenceToRedirect:Ut,getProjectReferenceRedirect:Bt,isSourceOfProjectReferenceRedirect:Kt,getSymlinkCache:mr,writeFile:t||at,isEmitBlocked:ut,readFile:function(e){return oe.readFile(e)},fileExists:function(t){var r=tt(t);return!!pt(r)||!e.contains(ve,r)&&oe.fileExists(t)},useCaseSensitiveFileNames:function(){return oe.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Ge.getProgramBuildInfo&&Ge.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return Ge.getSourceFileFromReference(e,t)},redirectTargetsMap:Ee,getFileIncludeReasons:Ge.getFileIncludeReasons,createHash:e.maybeBind(oe,oe.createHash)}}function at(e,t,r,n,i,a){oe.writeFile(e,t,r,n,i,a)}function ot(){return be}function st(){return I(K,(function(e,t){var r;return null===(r=be[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=tt(e),r=pt(t);return r?r.text:Ae.has(t)?void 0:oe.readFile(t)}))}function ct(e){return!!ee.get(e.path)}function lt(){return R||(R=e.createTypeChecker(Ge))}function ut(e){return ge.has(tt(e))}function dt(e){return pt(tt(e))}function pt(e){return Ae.get(e)||void 0}function _t(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Ge.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function ft(t){var r;if(e.skipTypeChecking(t,z,Ge)||t.isDeclarationFile&&z.needDoArkTsLinter)return e.emptyArray;var n=de.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?bt(t,t.commentDirectives,n).diagnostics:n}function gt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return mt((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,i),r;function n(t,n){switch(n.kind){case 167:case 170:case 172:if(n.questionToken===t)return r.push(s(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 171:case 174:case 175:case 176:case 216:case 261:case 217:case 259:if(n.type===t)return r.push(s(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 273:if(t.isTypeOnly)return r.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(t)?"import...type":"export...type")),"skip";break;case 271:return r.push(s(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(t.isExportEquals)return r.push(s(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 297:if(118===t.token)return r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:var i=e.tokenToString(119);return e.Debug.assertIsDefined(i),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 267:var a=16&t.flags?e.tokenToString(144):e.tokenToString(143);return e.Debug.assertIsDefined(a),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 265:return r.push(s(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 266:var o=e.Debug.checkDefined(e.tokenToString(93));return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 234:return r.push(s(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 233:return r.push(s(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 237:return r.push(s(t.type,e.Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 214:e.Debug.fail()}}function i(t,n){switch(e.canHaveModifiers(n)&&n.modifiers===t&&e.some(t,e.isDecorator)&&!z.experimentalDecorators&&r.push(s(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 262:case 230:case 263:case 172:case 174:case 175:case 176:case 216:case 261:case 217:if(t===n.typeParameters)return r.push(o(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 242:if(t===n.modifiers)return a(n.modifiers,242===n.kind),"skip";break;case 170:if(t===n.modifiers){for(var i=0,c=t;i=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function xt(e,t){return St(e,t,H,Dt)}function Dt(t,r){return mt((function(){var n=lt().getEmitResolver(t,r);return e.getDeclarationDiagnostics(it(e.noop),n,t)||e.emptyArray}))}function St(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function Tt(e,t){return e.isDeclarationFile?[]:xt(e,t)}function Ct(t,r,n,i){wt(e.normalizePath(t),r,n,void 0,i)}function Et(e,t){return e.fileName===t.fileName}function kt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function At(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Nt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((z.isolatedModules||o)&&!t.isDeclarationFile){z.importHelpers&&(r=[At(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(z,t),z);s&&(r||(r=[])).push(At(s,t))}for(var c=0,l=t.statements;c=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),ke||0!==Y||t.isDeclarationFile||(ke=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,_=d.statements;p<_.length;p++){u(_[p],!0)}}}}function d(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r0),Object.defineProperties(c,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),c}(T,D,t,c,tt(t),f,x);return Ee.add(T.path,t),Rt(C,c,_),Lt(C,i),Ce.set(c,e.packageIdToPackageName(a)),h.push(C),C}D&&(Te.set(S,D),Ce.set(c,e.packageIdToPackageName(a)))}if(Rt(D,c,_),D){if(ee.set(c,Y>0),D.fileName=t,D.path=c,D.resolvedPath=tt(t),D.originalFileName=f,D.packageJsonLocations=(null===(s=x.packageJsonLocations)||void 0===s?void 0:s.length)?x.packageJsonLocations:void 0,D.packageJsonScope=x.packageJsonScope,Lt(D,i),oe.useCaseSensitiveFileNames()){var k=e.toFileNameLowerCase(c),A=Ne.get(k);A?It(t,A,i):Ne.set(k,D)}ce=ce||D.hasNoDefaultLib&&!n,z.noResolve||(qt(D,r),$t(D)),z.noLib||Qt(D),Yt(D),r?m.push(D):h.push(D)}return D}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Mt(t,r,n,i){var o=N(e.getNormalizedAbsolutePath(t,pe),null==r?void 0:r.getPackageJsonInfoCache(),n,i),s=e.getEmitScriptTarget(i),c=e.getSetExternalModuleIndicator(i);return"object"==typeof o?a(a({},o),{languageVersion:s,setExternalModuleIndicator:c}):{languageVersion:s,impliedNodeFormat:o,setExternalModuleIndicator:c}}function Lt(e,t){e&&$.add(e.path,t)}function Rt(e,t,r){r?(Ae.set(r,e),Ae.set(t,e||!1)):Ae.set(t,e)}function Bt(e){var t=jt(e);return t&&Jt(t,e)}function jt(t){if(be&&be.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Ut(t)}function Jt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!oe.useCaseSensitiveFileNames())}function Ut(t){void 0===De&&(De=new e.Map,zt((function(e){tt(z.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return De.set(tt(t),e.sourceFile.path)}))})));var r=De.get(tt(t));return r&&Wt(r)}function zt(t){return e.forEachResolvedProjectReference(be,t)}function Vt(t){if(e.isDeclarationFileName(t))return void 0===Se&&(Se=new e.Map,zt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");Se.set(tt(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!oe.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!oe.useCaseSensitiveFileNames(),i);Se.set(tt(n),r)}}))}}))),Se.get(t)}function Kt(e){return Fe&&!!Ut(e)}function Wt(e){if(xe)return xe.get(e)||void 0}function qt(r,n){e.forEach(r.referencedFiles,(function(i,a){wt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function $t(t){var r=t.typeReferenceDirectives;if(r)for(var n=Xe(r,t),i=0;iX,_=d&&!M(a,s)&&!a.noResolve&&op?e.createDiagnosticForNodeInSourceFile(d,_.elements[p],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!z.types)return;i=sr("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=sr("lib",z.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(z)?r:void 0}));i=f?(g=f,(m=ar("target"))&&e.firstDefined(m,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===g?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}var g,m;return i&&e.createDiagnosticForNodeInSourceFile(z.configFile,i,a)}(t))),t===r&&(r=void 0)}}function tr(e,t,r,n){(j||(j=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function rr(e,t,r){de.add(er(e,void 0,t,r))}function nr(t,r,n,i,a,o){for(var s=!0,c=0,l=or();cr&&(de.add(e.createDiagnosticForNodeInSourceFile(z.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&de.add(e.createCompilerDiagnostic(n,i,a,o))}function ir(t,r,n,i){for(var a=!0,o=0,s=or();or?de.add(e.createDiagnosticForNodeInSourceFile(t||z.configFile,o.elements[r],n,i,a)):de.add(e.createCompilerDiagnostic(n,i,a))}function dr(t,r,n,i,a,o,s){var c=pr();(!c||!_r(c,t,r,n,i,a,o,s))&&de.add(e.createCompilerDiagnostic(i,a,o,s))}function pr(){if(void 0===te){te=!1;var t=e.getTsConfigObjectLiteralExpression(z.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,l=r.imports;c0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];S(o(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(o(t,r,d,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var g=0,m=r.moduleAugmentations;g1&&D(x)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var d=l.pop();if(!c.has(d)){var p=r.getSourceFileByPath(d);c.set(d,p),p&&u(t,r,p,i,a,o)&&l.push.apply(l,_(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(c.values(),(function(e){return e})))}t.createManyToManyPathMap=r,t.canReuseOldState=c,t.create=function(t,n,i,a){var o,l,u,d=new e.Map,p=t.getCompilerOptions().module!==e.ModuleKind.None?r():void 0,_=p?r():void 0,g=c(p,i);t.getTypeChecker();for(var m=0,h=t.getSourceFiles();m0;){var d=l.pop();if(!c.has(d)){if(c.set(d,!0),_(t,d,n,i,a,o))return;if(u(t,d,n,i,a,o),p(t,d)){var g=e.Debug.checkDefined(t.program).getSourceFileByPath(d);l.push.apply(l,e.BuilderState.getReferencedByPaths(t,g.resolvedPath))}}}}var m=new e.Set;null===(s=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===s||s.forEach((function(r){if(_(t,r,n,i,a,o))return!0;var s=t.referencedMap.getKeys(r);return s&&e.forEachKey(s,(function(e){return f(t,e,m,n,i,a,o)}))}))}(t,r,n,i,a,o)}function u(t,r,n,i,a,o){if(d(t,r),!t.changedFilesSet.has(r)){var s=e.Debug.checkDefined(t.program),c=s.getSourceFileByPath(r);c&&(e.BuilderState.updateShapeSignature(t,s,c,n,i,a,!o.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&E(t,r,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function p(t,r){var n=e.Debug.checkDefined(t.oldSignatures).get(r)||void 0;return e.Debug.checkDefined(t.fileInfos.get(r)).signature!==n}function _(t,r,n,i,a,o){var s;return!!(null===(s=t.fileInfos.get(r))||void 0===s?void 0:s.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((function(e){return u(t,e.resolvedPath,n,i,a,o)})),c(t),!0)}function f(t,r,n,i,a,o,s){var c,l;if(e.tryAddToSet(n,r)){if(_(t,r,i,a,o,s))return!0;u(t,r,i,a,o,s),null===(c=t.exportedModulesMap.getKeys(r))||void 0===c||c.forEach((function(e){return f(t,e,n,i,a,o,s)})),null===(l=t.referencedMap.getKeys(r))||void 0===l||l.forEach((function(e){return!n.has(e)&&u(t,e,i,a,o,s)}))}}function g(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),t.buildInfoEmitPending=!0,void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?t.affectedFilesPendingEmitIndex++:t.affectedFilesIndex++)}function m(e,t,r){return g(e,r),{result:t,affected:r}}function h(e,t,r,n,i,a){return g(e,r,n,i,a),{result:t,affected:r}}function y(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function v(t){return!!e.outFile(t.options||{})}function b(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function x(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=D(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return D(e,r)})):[]:void 0,t}))}function D(e,t){var r=e.file;return a(a({},e),{file:r?t(r.resolvedPath):void 0})}function S(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function T(t,r,n,i,a){var o,s;return r=S(r,a),(null===(o=null==a?void 0:a.diagnostics)||void 0===o?void 0:o.length)&&(r+=a.diagnostics.map((function(r){return"".concat(function(r){if(r.file.resolvedPath===t.resolvedPath)return"(".concat(r.start,",").concat(r.length,")");void 0===s&&(s=e.getDirectoryPath(t.resolvedPath));return"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,r.file.resolvedPath,i)),"(").concat(r.start,",").concat(r.length,")")}(r)).concat(e.DiagnosticCategory[r.category]).concat(r.code,": ").concat(c(r.messageText))})).join("\n")),(null!=n?n:e.generateDjb2Hash)(r);function c(t){return e.isString(t)?t:void 0===t?"":t.next?t.messageText+t.next.map(c).join("\n"):t.messageText}}function C(t,r,n){return(null!=r?r:e.generateDjb2Hash)(S(t,n))}function E(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function k(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function A(t,r){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),e.isProgramBundleEmitBuildInfo=v,function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.computeSignatureWithDiagnostics=T,e.computeSignature=C,e.createBuilderProgram=function(n,a){var c=a.newProgram,l=a.host,u=a.oldProgram,d=a.configFileParsingDiagnostics,p=u&&u.getState();if(p&&c===p.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,u;var _=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),f=e.maybeBind(l,l.createHash),v=r(c,_,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=function(){return function(t,r){var n=e.outFile(t.compilerOptions);if(!n||t.compilerOptions.composite){var i=e.Debug.checkDefined(t.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),i)),o=t.latestChangedDtsFile?P(t.latestChangedDtsFile):void 0;if(n){var s=[],c=[];return t.program.getRootFileNames().forEach((function(e){var r=t.program.getSourceFile(e);r&&(s.push(I(r.resolvedPath)),c.push(r.version))})),{fileNames:s,fileInfos:c,options:L(t.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:t.outSignature,latestChangedDtsFile:o}}var l,u,d,p,_,f,g,m,h=[],y=new e.Map,v=e.arrayFrom(t.fileInfos.entries(),(function(r){var n,i,a=r[0],o=r[1],s=O(a);e.Debug.assert(h[s-1]===I(a));var c=null===(n=t.oldSignatures)||void 0===n?void 0:n.get(a),l=void 0!==c?c||void 0:o.signature;if(t.compilerOptions.composite){var u=t.program.getSourceFileByPath(a);if(!e.isJsonSourceFile(u)&&e.sourceFileMayBeEmitted(u,t.program)){var p=null===(i=t.emitSignatures)||void 0===i?void 0:i.get(a);p!==l&&(d||(d=[])).push(void 0===p?s:[s,p])}}return o.version===l?o.affectsGlobalScope||o.impliedFormat?{version:o.version,signature:void 0,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:o.version:void 0!==l?void 0===c?o:{version:o.version,signature:l,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:{version:o.version,signature:!1,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}}));if(t.referencedMap&&(p=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[O(e),M(t.referencedMap.getValues(e))]}))),t.exportedModulesMap&&(_=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var r,n=null===(r=t.oldExportedModulesMap)||void 0===r?void 0:r.get(e);return void 0===n?[O(e),M(t.exportedModulesMap.getValues(e))]:n?[O(e),M(n)]:void 0}))),t.semanticDiagnosticsPerFile)for(var D=0,S=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);D1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-Z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectoryOrFile=r,e.createResolutionCache=function(i,a,o){var s,c,l,u,d,p,_,f,g=e.createMultiMap(),m=[],h=[],y=e.createMultiMap(),v=new e.Map,b=!1,x=e.memoize((function(){return i.getCurrentDirectory()})),D=i.getCachedDirectoryStructureHost(),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(x(),i.getCanonicalFileName,void 0,T,C),k=new e.Map,A=e.createCacheWithRedirects(),N=e.createTypeReferenceDirectiveResolutionCache(x(),i.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),A),F=i.getCompilationSettings().ets?[".ets",".ts",".tsx",".js",".jsx",".json"]:[".ts",".tsx",".js",".jsx",".json",".ets"],w=new e.Map,P=new e.Map,I=new e.Map,O=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,x())),M=O&&i.toPath(O),L=void 0!==M?M.split(e.directorySeparator).length:0,R=new e.Map;return{getModuleResolutionCache:function(){return E},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:function(){E.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),g.forEach(Z),g.clear()},finishCachingPerDirectoryResolution:function(t,r){l=void 0,g.forEach(Z),g.clear(),t!==r&&(null==t||t.getSourceFiles().forEach((function(t){for(var r,n,i,a=e.isExternalOrCommonJsModule(t)&&null!==(n=null===(r=t.packageJsonLocations)||void 0===r?void 0:r.length)&&void 0!==n?n:0,o=null!==(i=v.get(t.path))&&void 0!==i?i:e.emptyArray,s=o.length;sa)for(s=a;sL+1?{dir:i.slice(0,L+1).join(e.directorySeparator),dirPath:n.slice(0,L+1).join(e.directorySeparator)}:{dir:O,dirPath:M,nonRecursive:!1}}return $(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,x())),e.getDirectoryPath(r))}function $(t,n){for(var a=e.isOhpm(i.getCompilationSettings().packageManagerType);a?e.pathContainsOHModules(n):e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isTargetModulesDerectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var o,s,c=!0;if(void 0!==M)for(;!J(n,M);){var l=e.getDirectoryPath(n);if(l===n)break;c=!1,o=n,s=t,n=l,t=e.getDirectoryPath(t)}return r(n)?{dir:s||t,dirPath:o||n,nonRecursive:c}:void 0}function G(t){return e.fileExtensionIsOneOf(t,F)}function H(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?Q(r):g.add(t,r);var o=a(r);o&&o.resolvedFileName&&y.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function Q(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations,n=t.affectingLocations;if(r.length||n.length){r.length&&m.push(t);for(var a=!1,o=0,s=r;o1),w.set(p,g-1))),f===M?c=!0:re(f)}}c&&re(M)}else s.length&&e.unorderedRemoveItem(h,t);for(var v=0,b=s;v1&&r.sort(m),l.push.apply(l,r));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},d=e.getDirectoryPath(t);0!==o.size;){var p=u(d);if(d=c,"break"===p)break}if(o.size){var _=e.arrayFrom(o.values());_.length>1&&_.sort(m),l.push.apply(l,_)}return l}function x(t,r,n){if(e.getEmitModuleResolutionKind(r)>=e.ModuleResolutionKind.Node16&&n===e.ModuleKind.ESNext)return[2];switch(t){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(t)}}function D(t,r,n,i,a){for(var o in r)for(var s=function(r){var i=e.normalizePath(r),s=i.indexOf("*"),c=n.map((function(e){return{ending:e,value:E(t,e,a)}}));if(e.tryGetExtensionFromPath(i)&&c.push({ending:void 0,value:t}),-1!==s)for(var l=i.substring(0,s),u=i.substring(s+1),p=0,_=c;p<_.length;p++){var f=_[p],g=f.ending,m=f.value;if(m.length>=l.length+u.length&&e.startsWith(m,l)&&e.endsWith(m,u)&&d({ending:g,value:m})){var h=m.substring(l.length,m.length-u.length);return{value:o.replace("*",h)}}}else if(e.some(c,(function(e){return 0!==e.ending&&i===e.value}))||e.some(c,(function(e){return 0===e.ending&&i===e.value&&d(e)})))return{value:o}},c=0,l=r[o];c=0||e.isApplicableVersionedTypesKey(o,h)){var y=a[h],v=S(t,r,n,i,y,o);if(v)return v}}}}}function T(t,r,n,i,o,c,l,d){var p=t.path,_=t.isRedirect,f=r.getCanonicalFileName,g=r.sourceDirectory;if(i.fileExists&&i.readFile){var m=e.getNodeModulePathParts(p,e.isOhpm(o.packageManagerType)?e.ohModulesPathPart:e.nodeModulesPathPart);if(m){var h=s(i,c,o,n),y=p,v=!1;if(!l)for(var b=m.packageRootIndex,T=void 0;;){var C=L(b),k=C.moduleFileToTry,N=C.packageRootPath,F=C.blockedByExports,w=C.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(F)return;if(w)return k}if(N){y=N,v=!0;break}if(T||(T=k),-1===(b=p.indexOf(e.directorySeparator,b+1))){y=E(T,h.ending,o,i);break}}if(!_||v){var P=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),I=f(y.substring(0,m.topLevelNodeModulesIndex));if(e.startsWith(g,I)||P&&e.startsWith(f(P),I)){var O=y.substring(m.topLevelPackageNameIndex+1),M=e.getPackageNameFromTypesPackageName(O);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&M===O?void 0:M}}}}function L(t){var r,s,c=p.substring(0,t),l=e.combinePaths(c,e.getPackageJsonByPMType(o.packageManagerType)),_=p,g=!1,y=null===(s=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===s?void 0:s.getPackageJsonInfo(l);if("object"==typeof y||void 0===y&&i.fileExists(l)){var v=(null==y?void 0:y.contents.packageJsonContent)||e.isOhpm(o.packageManagerType)?u.parse(i.readFile(l)):JSON.parse(i.readFile(l)),b=d||n.impliedNodeFormat;if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var T=["node",b===e.ModuleKind.ESNext?"import":"require","types"],C=v.exports&&"string"==typeof v.name?S(o,p,c,e.getPackageNameFromTypesPackageName(v.name),v.exports,T):void 0;if(C){var E=e.hasTSFileExtension(C.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(C.moduleFileToTry)+A(C.moduleFileToTry,o)}:C;return a(a({},E),{verbatimFromExports:!0})}if(v.exports)return{moduleFileToTry:p,blockedByExports:!0}}var k=v.typesVersions?e.getPackageJsonTypesVersionsPaths(v.typesVersions):void 0;if(k){var N=D(p.slice(c.length+1),k.paths,x(h.ending,o,b),i,o);void 0===N?g=!0:_=e.combinePaths(c,N)}var F=v.typings||v.types||v.main||"index.js";if(e.isString(F)&&(!g||!e.matchPatternOrExact(e.tryParsePatterns(k.paths),F))){var w=e.toPath(F,c,f);if(e.removeFileExtension(w)===e.removeFileExtension(f(_)))return{packageRootPath:c,moduleFileToTry:_}}}else{var P=f(_.substring(m.packageRootIndex+1));if("index.d.ts"===P||"index.js"===P||"index.ts"===P||"index.tsx"===P)return{moduleFileToTry:_,packageRootPath:c}}return{moduleFileToTry:_}}}function C(t,r,n){return e.mapDefined(r,(function(e){var r=N(t,e,n);return void 0!==r&&F(r)?void 0:r}))}function E(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+k(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&function(t,r){if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n1?function(t,r){var n=t.filter((function(e,t,r){return t===r.findIndex((function(t){return(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)}))}));if(0===n.length)return"";var i=function(e){return Math.log(e)*Math.LOG10E+1},a=n.map((function(r){return[r,e.countWhere(t,(function(e){return e.fileName===r.fileName}))]})),o=a.reduce((function(e,t){return Math.max(e,t[1]||0)}),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,l=Math.max(c,i(o)),d=Math.max(i(o)-c,0),p="";return p+=" ".repeat(d)+s+"\n",a.forEach((function(e){var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(t,t.now)}}function T(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=S(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));b(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(l(t),t),s,i,t)}))},o}function C(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getFilesInErrorForSummary=c,e.getWatchErrorSummaryDiagnosticMessage=l,e.getErrorSummaryText=d,e.isBuilderProgram=p,e.listFiles=_,e.explainFiles=f,e.explainIfFileIsRedirectAndImpliedFormat=g,e.getMatchedFileSpec=m,e.getMatchedIncludeSpec=h,e.fileIncludeReasonToDiagnostics=y,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()})),o={getSourceFile:function(n,i,a){var s,c=r();try{e.performance.mark("beforeIORead");var l=r().charset;s=l?t.readFile(n,l):o.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),s=""}return void 0!==s?e.createSourceFile(n,s,i,void 0,void 0,c):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return o},e.setGetSourceFileAsHashVersioned=function(t){var r=t.getSourceFile,n=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;ac)}}}function F(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function w(t,n,i){if(t.projectPendingBuild.size&&!l(n))for(var a=t.options,o=t.projectPendingBuild,s=0;sN&&(A=I,N=O)}if(!T)for(var j=e.getAllProjectOutputs(r,!S.useCaseSensitiveFileNames()),U=J(t,n),$=0,H=j;$=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&ro)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(o," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return s(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(d||(d={})),function(e){var t,r;function n(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(e){e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(e){e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(e){e.Original="original",e.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(e){e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused"}(e.OrganizeImportsMode||(e.OrganizeImportsMode={})),function(e){e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(e){e.Type="Type",e.Parameter="Parameter",e.Enum="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=n,e.testFormatSettings=n("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets"}(e.CompletionInfoFlags||(e.CompletionInfoFlags={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.structElement="struct",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e.etsModifier=".ets",e.detsModifier=".d.ets"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(d||(d={})),function(e){function t(t){switch(t.kind){case 259:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 167:case 206:case 170:case 169:case 302:case 303:case 172:case 171:case 174:case 175:case 176:case 261:case 216:case 217:case 298:case 291:return 1;case 166:case 264:case 265:case 185:return 2;case 351:return void 0===t.name?3:2;case 305:case 262:case 263:return 3;case 267:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 311:return 5}return 7}function r(t){for(;164===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(t,r,n,i,a){var o=i?l(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||_(e)?e.parent:e}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function _(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){var i=(n=w(n)).parent;return 311===n.kind?1:e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name?7:r(n)?function(t){var r=164===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&271===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 109:return!e.isExpressionNode(t);case 195:return!0}switch(t.parent.kind){case 181:return!0;case 203:return!t.parent.isTypeOf;case 232:return e.isPartOfTypeNode(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(164===t.parent.kind){for(;t.parent&&164===t.parent.kind;)t=t.parent;r=t.right===e}return 181===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(209===t.parent.kind){for(;t.parent&&209===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&232===t.parent.kind&&297===t.parent.parent.kind){var n=t.parent.parent.parent;return(262===n.kind||263===n.kind)&&118===t.parent.parent.token||264===n.kind&&95===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallExpression,n,r,i)},e.isNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isNewExpression,n,r,i)},e.isCallOrNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallOrNewExpression,n,r,i)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isTaggedTemplateExpression,i,r,n)},e.isDecoratorTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isDecorator,n,r,i)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isJsxOpeningLikeElement,o,r,n)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(255===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=_,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 170:case 169:case 302:case 305:case 172:case 171:case 175:case 176:case 267:return e.getNameOfDeclaration(t.parent)===t;case 210:return t.parent.argumentExpression===t;case 165:return!0;case 199:return 197===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 311:case 172:case 171:case 261:case 216:case 175:case 176:case 262:case 263:case 264:case 266:case 267:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 311:return e.isExternalModule(r)?"module":"script";case 267:return"module";case 262:case 230:return"class";case 263:return"struct";case 264:return"interface";case 265:case 344:case 351:return"type";case 266:return"enum";case 259:return c(r);case 206:return c(e.getRootDeclaration(r));case 217:case 261:case 216:return"function";case 175:return"getter";case 176:return"setter";case 172:case 171:return"method";case 302:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 170:case 169:case 303:case 304:return"property";case 179:return"index";case 178:return"construct";case 177:return"call";case 174:case 173:return"constructor";case 166:return"type parameter";case 305:return"enum member";case 167:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 225:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 277:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 109:return!0;case 79:return e.identifierIsThisKeyword(t)&&167===t.parent.kind;default:return!1}};var f=/^\/\/\/\s*=r.end}function y(e,t,r,n){return Math.max(e,r)r?1:u(a[e],c,s)?a[e-1]&&u(a[e-1])?1:0:i&&c===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var l=c();if("object"==typeof l)return l.value}function u(e,s,c){if(null!=c||(c=e.getEnd()),cr)return!1;if(rt.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function L(t,r,n,i){var a=function a(o){if(R(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(t=t||!q(l,r)||J(l)){var u=j(s,c,r,o.kind);return u&&B(u,r)}return a(l)}}e.Debug.assert(void 0!==n||311===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=j(s,s.length,r,o.kind);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&J(a))),a}function R(t){return e.isToken(t)&&!J(t)}function B(e,t){if(R(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=j(r,r.length,t,e.kind);return n&&B(n,t)}function j(t,r,n,i){for(var a=r-1;a>=0;a--){if(J(t[a]))0!==a||11!==i&&285!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[a],n))return t[a]}}function J(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function U(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)=r}))}function K(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=U(n,18,r)))return;break;case 21:if(!(n=U(n,20,r)))return;break;case 23:if(!(n=U(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 111:case 96:case 113:case 95:case 142:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function W(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function $(e,t,r){var n=W(e,t,void 0);return!!n&&r===f.test(e.text.substring(n.pos,n.end))}function G(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function H(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function X(e){return 155===e.kind}function Y(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function Z(e,t){return a(a({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function ee(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?te(n,i):n,void 0)}function te(t,r){return e.factory.createStringLiteral(t,0===r)}function re(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ne(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?re(n,t):1}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function ae(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function oe(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function se(t,r,n){var i=r.tryGetSourcePosition(t);return i&&(!n||n(e.normalizePath(i.fileName))?i:void 0)}function ce(e,t,r){var n=e.contextSpan&&se({fileName:e.fileName,pos:e.contextSpan.start},t,r),i=e.contextSpan&&se({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return n&&i?{start:n.pos,length:i.pos-n.pos}:void 0}function le(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"}))}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=m,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return y(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return y(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=y,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=I(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=285&&r.kind<=294||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(284!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(I(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=K(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==V(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=V,e.getPossibleTypeArgumentsInfo=K,e.isInComment=W,e.hasDocComment=function(t,r){var n=I(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),256&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),277===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 181===t.kind||211===t.kind?t.typeArguments:e.isFunctionLike(t)||262===t.kind||264===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=Y,e.getModuleSpecifierResolverHost=Z,e.moduleResolutionRespectsExports=function(t){return t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.moduleResolutionUsesNodeModules=function(t){return t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?ee(e,t,r,n):void 0},e.makeImport=ee,e.makeStringLiteral=te,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=re,e.getQuotePreference=ne,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ie(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ie,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!ae(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return e.canHaveModifiers(t)?e.find(t.modifiers,(function(e){return e.kind===r})):void 0},e.insertImports=function(t,r,n,i){var a=242===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(pe(" ",e.SymbolDisplayPartKind.space)),t.push(pe("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(de(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(ye()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(pe(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(pe(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function de(t,r){return pe(t,function(t){var r=t.flags;if(3&r)return le(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;return 4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function pe(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function _e(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function fe(t){return pe(t,e.SymbolDisplayPartKind.text)}function ge(t){return pe(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:G(r)}}}function he(t){return pe(t,e.SymbolDisplayPartKind.link)}e.symbolPart=de,e.displayPart=pe,e.spacePart=function(){return pe(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=_e,e.punctuationPart=function(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?fe(t):_e(r)},e.textPart=fe,e.typeAliasNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=ge,e.linkNamePart=me,e.linkPart=he,e.buildLinkParts=function(t,r){var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[he("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;var t=0,r=0;for(;r"===e[r]&&t--,r++,!t)return r;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=function(e){var t=0;if(124===e.charCodeAt(t++)){for(;t=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function We(e,t){return $e(e,e.fileExists,t)}function qe(e){try{return e()}catch(e){return}}function $e(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=De,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Ce,e.getSynthesizedDeepClonesWithReplacements=Ee,e.suppressLeadingAndTrailingTrivia=ke,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Ne,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=Pe,e.copyTrailingComments=Ie,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=Re,e.quote=function(t,r,n){var i=ne(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Be,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 227:case 213:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(r,n)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Je,Ue,ze,Ve),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Je(t.kind)){if(n&&27===n.kind)return!1}else if(ze(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Ue(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ve(t.kind))return!1;if(245===t.kind)return!0;var a=M(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=Ke,e.tryGetDirectories=function(e,t){return $e(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return $e(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=We,e.tryDirectoryExists=function(t,r){return qe((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=qe,e.tryIOAndConsumeErrors=$e,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,e.getPackageJsonByPMType(r.getCompilationSettings().packageManagerType));We(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){var i=e.getModuleByPMType(r.getCompilationSettings().packageManagerType),a=e.getPackageJsonByPMType(r.getCompilationSettings().packageManagerType);return t===i||(!!(n=e.findConfigFile(t,(function(e){return We(r,e)}),a))||void 0)})),n},e.getPackageJsonsVisibleToFile=Ge,e.createPackageJsonInfo=He,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||Ge(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());if(s(i))return!0;return o(n)||o(i)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);if(!r)return!0;return o(r)},allowsImportingSpecifier:function(t){if(!a.length||s(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return o(t)}};function o(t){for(var r=l(t),n=0,i=a;n=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Xe)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Xe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=function(t,r){var n=I(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":e.isExpression(n)&&oe(r,G(n,t))}))},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNamesForExportedSymbol=function(t,r){if(Ye(t)){var n=Ze(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(et(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(et(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=function(t,r,n){return Ye(t)?Ze(t)||e.codefix.moduleSymbolToValidIdentifier(et(t),r,!!n):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;iD.indexOf(e.nodeModulesPathPart)&&o.set(h,S);else o.set(h,S)}}}var T=1===_&&e.getLocalSymbolForExportDefault(l)||l,C=0===_||e.isExternalModuleSymbol(T)?e.unescapeLeadingUnderscores(u):e.getNamesForExportedSymbol(T,void 0),E="string"==typeof C?C:C[0],k="string"==typeof C?void 0:C[1],A=e.stripQuotes(d.name),N=n++,F=e.skipAlias(l,g),w=33554432&l.flags?void 0:l,P=33554432&d.flags?void 0:d;w&&P||a.set(N,[l,d]),i.add(function(t,r,n,i){var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)}(E,l,e.isExternalModuleNameRelative(A)?void 0:A,g),{id:N,symbolTableKey:u,symbolName:E,capitalizedSymbolName:k,moduleName:A,moduleFile:p,moduleFileName:null==p?void 0:p.fileName,packageName:h,exportKind:_,targetFlags:F.flags,isFromPackageJson:f,symbol:w,moduleSymbol:P})},get:function(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search:function(n,a,s,l){if(n===r)return e.forEachEntry(i,(function(r,n){var i=function(e){var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1),n=""===r?void 0:r;return{symbolName:t,ambientModuleName:n}}(n),u=i.symbolName,d=i.ambientModuleName,p=a&&r[0].capitalizedSymbolName||u;if(s(p,r[0].targetFlags)){var _=r.map(c).filter((function(n,i){return function(r,n){if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)}(n,r[i].packageName)}));if(_.length){var f=l(_,p,!!d,n);if(void 0!==f)return f}}}))},releaseSymbols:function(){a.clear()},onFileChanged:function(t,n,i){return(!l(t)||!l(n))&&(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!function(t,r){if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o=i.length){var b=r(o,l,e.lastOrUndefined(d));void 0!==b&&(m=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&y++;break;case 31:y>0&&y--;break;case 132:case 153:case 149:case 135:case 154:y>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 138:case 152:case 136:case 125:case 128:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:m,spans:h}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var p=r.length-o;p>0&&n.push({length:p,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,109,45,46,21,23,19,111,96],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(!(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 103:case 102:case 129:case 151:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 267:case 262:case 264:case 261:case 230:case 216:case 217:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 2885600&i?32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im,a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;p(c,s[1].length),u(c+=s[1].length,s[2].length,10),u(c+=s[2].length,s[3].length,21),c+=s[3].length;var l=s[4],d=c;for(;;){var _=a.exec(l);if(!_)break;var f=c+_.index+_[1].length;f>d&&(p(d,f-d),d=f),u(d,_[2].length,22),d+=_[2].length,_[3].length&&(p(d,_[3].length),d+=_[3].length),u(d,_[4].length,5),d+=_[4].length,_[5].length&&(p(d,_[5].length),d+=_[5].length),u(d,_[6].length,24),d+=_[6].length}(c+=s[4].length)>d&&p(d,c-d);s[5]&&(u(c,s[5].length,10),c+=s[5].length);var g=t+n;c=0),a>0){var o=n||h(t.kind,t);o&&u(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(259===n.kind||170===n.kind||167===n.kind||291===n.kind))return 5;if(225===n.kind||223===n.kind||224===n.kind||226===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&291===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 262:return r.parent.name===r?11:void 0;case 166:return r.parent.name===r?15:void 0;case 264:return r.parent.name===r?13:void 0;case 266:return r.parent.name===r?12:void 0;case 267:return r.parent.name===r?14:void 0;case 167:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(l,p,g);var h=f.valueDeclaration;if(h){var y=e.getCombinedModifierFlags(h),v=e.getCombinedNodeFlags(h);32&y&&(m|=2),512&y&&(m|=4),0!==g&&2!==g&&(64&y||2&v||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){e.isBindingElement(t)&&(t=i(t));if(e.isVariableDeclaration(t))return(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r;if(e.isFunctionDeclaration(t))return!e.isSourceFile(t.parent)&&t.getSourceFile()===r;return!1}(h,r)||(m|=32),t.isSourceFileDefaultLibrary(h.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);s(p,g,m)}}}p.virtual||(e.forEachChild(p,d),u=_)}}d(r)}(t,r,n,(function(e,t,n){c.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),s),c}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}!function(e){e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask"}(t.TokenEncodingConsts||(t.TokenEncodingConsts={})),function(e){e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member"}(t.TokenType||(t.TokenType={})),function(e){e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local"}(t.TokenModifier||(t.TokenModifier={})),t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;lr.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),m(s,o)}}));return e.length(l)?{kind:2,types:l,isNewIdentifier:a}:void 0}(C.invocation,n,C,a)||E()}case 272:case 278:case 283:return{kind:0,paths:b(r,n,o,s,a,c)};default:return E()}function E(){return{kind:2,types:m(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function f(t){switch(t.kind){case 194:return e.walkUpParenthesizedTypes(t);case 215:return e.walkUpParenthesizedExpressions(t);default:return t}}function g(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function m(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return m(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function h(e,t,r){return{name:e,kind:t,extension:r}}function y(e){return h(e,"directory",void 0)}function v(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function b(t,r,n,a,o,s){return v(r.text,r.getStart(t)+1,function(t,r,n,a,o,s){var c=e.normalizeSlashes(r.text),l=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,d=t.path,p=e.getDirectoryPath(d);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,n,a,o,s){var c=x(n,s);return n.rootDirs?function(t,r,n,a,o,s,c){var l=o.project||s.getCurrentDirectory(),u=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),d=function(t,r,n,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0}));return e.deduplicate(i(i([],t.map((function(t){return e.combinePaths(t,o)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,l,n,u);return e.flatMap(d,(function(t){return e.arrayFrom(T(r,t,a,s,c).values())}))}(n.rootDirs,t,r,c,n,a,o):e.arrayFrom(T(t,r,c,a,o).values())}(c,p,n,a,d,_()):function(t,r,n,i,a,o,s){var c=i.baseUrl,l=i.paths,d=u(),p=x(i,o);if(c){var _=i.project||a.getCurrentDirectory(),f=e.normalizePath(e.combinePaths(_,c));T(t,f,p,a,void 0,d),l&&E(d,t,f,p,a,l)}for(var g=N(t),m=0,y=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,g,s);m-1||e.isApplicableVersionedTypesKey(r,n))return A(t[n],r)}}function N(t){return L(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function F(t,r,n,i,o,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t,"script");var l=t.slice(0,t.length-1),u=e.tryRemovePrefix(n,l);return void 0===u?"/"===t[t.length-2]?d(l,"directory"):e.flatMap(r,(function(e){var t;return null===(t=w("",i,e,o,s))||void 0===t?void 0:t.map((function(e){var t=e.name,r=c(e,["name"]);return a({name:l+t},r)}))})):e.flatMap(r,(function(e){return w(u,i,e,o,s)}));function d(t,r){return e.startsWith(t,n)?[{name:e.removeTrailingDirectorySeparator(t),kind:r,extension:void 0}]:e.emptyArray}}function w(t,r,n,a,o){if(o.readDirectory){var s=e.tryParsePattern(n);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=L(t),p=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,_=d?e.combinePaths(l,u+p):l,f=e.normalizePath(s.suffix),g=e.normalizePath(e.combinePaths(r,_)),m=d?g:e.ensureTrailingDirectorySeparator(g)+u,v=f?"**/*"+f:"./*",b=e.mapDefined(e.tryReadDirectory(o,g,a.extensions,void 0,[v]),(function(t){var r,n,i,s,c,l=(r=t,i=e.normalizePath(r),s=m,c=f,void 0===(n=e.startsWith(i,s)&&e.endsWith(i,c)?i.slice(s.length,i.length-c.length):void 0)?void 0:P(n));if(l){if(L(l))return y(e.getPathComponents(P(l))[1]);var u=C(l,o.getCompilationSettings(),a.includeExtensionsOption);return h(u.name,"script",u.extension)}})),x=f?e.emptyArray:e.mapDefined(e.tryGetDirectories(o,g),(function(e){return"node_modules"===e?void 0:y(e)}));return i(i([],b,!0),x,!0)}}}function P(t){return t[0]===e.directorySeparator?t.slice(1):t}function I(t,r,n,i,a,o){void 0===o&&(o=u());for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c=e.pos&&r<=e.end}));if(!s)return;var c=t.text.slice(s.pos,r),l=O.exec(c);if(!l)return;var u=l[1],d=l[2],p=l[3],_=e.getDirectoryPath(t.path),f="path"===d?T(p,_,x(n,1),i,t.path):"types"===d?I(i,n,_,N(p),x(n)):e.Debug.fail();return v(p,s.pos+u.length,e.arrayFrom(f.values()))}(r,n,a,o);return u&&d(u)}if(e.isInString(r,n,i)){if(!i||!e.isStringLiteralLike(i))return;return function(r,n,i,a,o,s,c,l){if(void 0===r)return;var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return d(r.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,p,n,n,i,i,a,o,99,s,4,l,c,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:p};case 2:p=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:p};default:return e.Debug.assertNever(r)}}(u=_(r,i,n,s.getTypeChecker(),a,o,l),i,r,o,s,c,a,l)}},r.getStringLiteralCompletionDetails=function(r,n,i,a,o,s,c,l,u){if(a&&e.isStringLiteralLike(a)){var d=_(n,a,i,o,s,c,u);return d&&function(r,n,i,a,o,s){switch(i.kind){case 0:return(c=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,p(c.extension),c.kind,[e.textPart(r)]);case 1:var c;return(c=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(c,o,a,n,s);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,a,d,n,o,l)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var O=/^(\/\/\/\s*0},resolvedBeyondLimit:function(){return y>t.moduleSpecifierResolutionLimit}}),D=b?" (".concat((v/b*100).toFixed(1),"% hit rate)"):"";return null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": resolved ").concat(y," module specifiers, plus ").concat(h," ambient and ").concat(v," from cache").concat(D)),null===(p=n.log)||void 0===p||p.call(n,"".concat(r,": response is ").concat(m?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": ").concat(e.timestamp()-f)),x}function f(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function m(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function h(e,t,r){return{kind:4,keywordCompletions:K(e,t),isNewIdentifierLocation:r}}function y(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function v(t,r){return!e.isSourceFileJS(t)||!!e.isCheckJsEnabledForFile(t,r)}function b(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function x(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function D(e,r,n){return{name:x(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function S(n,i,a,o,s,d,_,f,g,m,h,y,v,b,x,D,S,C,E,A,P,I){var O,M,L,R,B,j,J,U,z=e.getReplacementSpanForContextToken(a),V=w(h),K=f.getTypeChecker(),W=h&&function(e){return!!(16&e.kind)}(h),q=h&&function(e){return!!(2&e.kind)}(h)||m;if(h&&function(e){return!!(1&e.kind)}(h))L=m?"this".concat(W?"?.":"","[").concat(N(d,C,g),"]"):"this".concat(W?"?.":".").concat(g);else if((q||W)&&v){L=q?"[".concat(m?N(d,C,g):g,"]"):g,(W||v.questionDotToken)&&(L="?.".concat(L));var $=e.findChildOfKind(v,24,d)||e.findChildOfKind(v,28,d);if(!$)return;var G=e.startsWith(g,v.name.text)?v.name.end:$.end;z=e.createTextSpanFromBounds($.getStart(d),G)}if(b&&(void 0===L&&(L=g),L="{".concat(L,"}"),"boolean"!=typeof b&&(z=e.createTextSpanFromNode(b,d))),h&&function(e){return!!(8&e.kind)}(h)&&v){void 0===L&&(L=g);var H=e.findPrecedingToken(v.pos,d),Q="";H&&e.positionIsASICandidate(H.end,H.parent,d)&&(Q=";"),Q+="(await ".concat(v.expression.getText(),")"),L=m?"".concat(Q).concat(L):"".concat(Q).concat(W?"?.":".").concat(L),z=e.createTextSpanFromBounds(v.getStart(d),v.end)}if(l(h)&&(j=[e.textPart(h.moduleSpecifier)],x&&(O=function(t,r,n,i,a,o,s){var c=r.replacementSpan,l=e.quote(a,s,n.moduleSpecifier),u=n.isDefaultExport?1:"export="===n.exportName?2:0,d=s.includeCompletionsWithSnippetText?"$1":"",p=e.codefix.getImportKind(a,u,o,!0),_=r.couldBeTypeOnlyImportSpecifier,f=r.isTopLevelTypeOnly?" ".concat(e.tokenToString(155)," "):" ",g=_?"".concat(e.tokenToString(155)," "):"",m=i?";":"";switch(p){case 3:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," = require(").concat(l,")").concat(m)};case 1:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," from ").concat(l).concat(m)};case 2:return{replacementSpan:c,insertText:"import".concat(f,"* as ").concat(e.escapeSnippetText(t)," from ").concat(l).concat(m)};case 0:return{replacementSpan:c,insertText:"import".concat(f,"{ ").concat(g).concat(e.escapeSnippetText(t)).concat(d," } from ").concat(l).concat(m)}}}(g,x,h,D,d,S,C),L=O.insertText,z=O.replacementSpan,B=!!C.includeCompletionsWithSnippetText||void 0)),64===(null==h?void 0:h.kind)&&(J=!0),C.includeCompletionsWithClassMemberSnippets&&C.includeCompletionsWithInsertText&&3===E&&function(t,r,n){if(e.isInJSFile(r))return!1;var i=106500;return!!(t.flags&i)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&r.parent.getLastToken(n)===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent))}(n,s,d)){var X=void 0;L=(M=T(_,f,S,C,g,n,s,o,A)).insertText,B=M.isSnippet,X=M.importAdder,z=M.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==X?void 0:X.hasFixes())&&(J=!0,V=r.ClassMemberSnippet)}if(h&&p(h)&&(L=h.insertText,B=h.isSnippet,U=h.labelDetails,C.useLabelDetailsInCompletionEntries||(g+=U.detail,U=void 0),V=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),P&&!I&&C.includeCompletionsWithSnippetText&&C.jsxAttributeCompletionStyle&&"none"!==C.jsxAttributeCompletionStyle){var Y="braces"===C.jsxAttributeCompletionStyle,Z=K.getTypeOfSymbolAtLocation(n,s);"auto"!==C.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,(function(e){return!!(528&e.flags)}))||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,(function(e){return!!(402686084&e.flags)}))?(L="".concat(e.escapeSnippetText(g),"=").concat(e.quote(d,C,"$1")),B=!0):Y=!0),Y&&(L="".concat(e.escapeSnippetText(g),"={$1}"),B=!0)}if(void 0===L||C.includeCompletionsWithInsertText)return(c(h)||l(h))&&(R=k(h),J=!x),{name:g,kind:e.SymbolDisplay.getSymbolKind(K,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(K,n),sortText:i,source:V,hasAction:!!J||void 0,isRecommended:F(n,y,K)||void 0,insertText:L,replacementSpan:z,sourceDisplay:j,labelDetails:U,isSnippet:B,isPackageJsonImport:u(h)||void 0,isImportStatementCompletion:!!x||void 0,data:R}}function T(t,r,n,i,a,o,s,c,l){var u,d,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var _,f=a,g=r.getTypeChecker(),m=s.getSourceFile(),h=E({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),y=e.codefix.createImportAdder(m,r,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var v=e.factory.createEmptyStatement();_=e.factory.createBlock([v],!0),e.setSnippetElement(v,{kind:0,order:0})}else _=e.factory.createBlock([],!0);var b=0,x=function(t){if(!t)return{modifiers:0};var r,n,i=0;(n=function(t){if(e.isModifier(t))return t.kind;if(e.isIdentifier(t)&&t.originalKeywordKind&&e.isModifierKind(t.originalKeywordKind))return t.originalKeywordKind;return}(t))&&(i|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t));e.isPropertyDeclaration(t.parent)&&(i|=126975&e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent));return{modifiers:i,span:r}}(c),D=x.modifiers,S=x.span,T=!!(256&D),C=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,m,{program:r,host:t},i,y,(function(t){var r=0;T&&(r|=256),e.isClassElement(t)&&1===g.getMemberOverrideModifierStatus(p,t)&&(r|=16384),C.length||(b=t.modifierFlagsCache|r|D),t=e.factory.updateModifiers(t,b),C.push(t)}),_,2,T),C.length){var k=131073;d=S,f=l?h.printAndFormatSnippetList(k,e.factory.createNodeArray(C),m,l):h.printSnippetList(k,e.factory.createNodeArray(C),m)}return{insertText:f,isSnippet:u,importAdder:y,replacementSpan:d}}function C(t,r,n,i,a,o,s,c){var l=s.includeCompletionsWithSnippetText||void 0,u=r,d=n.getSourceFile(),p=function(t,r,n,i,a,o){var s=t.getDeclarations();if(!s||!s.length)return;var c=i.getTypeChecker(),l=s[0],u=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l),!1),d=c.getWidenedType(c.getTypeOfSymbolAtLocation(t,r)),p=e.getQuotePreference(n,o),_=33554432|(0===p?268435456:0);switch(l.kind){case 169:case 170:case 171:case 172:var f=1048576&d.flags&&d.types.length<10?c.getUnionType(d.types,2):d;if(1048576&f.flags){var g=e.filter(f.types,(function(e){return c.getSignaturesOfType(e,0).length>0}));if(1!==g.length)return;f=g[0]}if(1!==c.getSignaturesOfType(f,0).length)return;var m=c.typeToTypeNode(f,r,_,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var h=void 0;if(o.includeCompletionsWithSnippetText){var y=e.factory.createEmptyStatement();h=e.factory.createBlock([y],!0),e.setSnippetElement(y,{kind:0,order:0})}else h=e.factory.createBlock([],!0);var v=m.parameters.map((function(t){return e.factory.createParameterDeclaration(void 0,t.dotDotDotToken,t.name,void 0,void 0,t.initializer)}));return e.factory.createMethodDeclaration(void 0,void 0,u,void 0,void 0,v,void 0,h);default:return}}(t,n,d,i,a,s);if(p){var _=E({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?_.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),d,c):_.printSnippetList(80,e.factory.createNodeArray([p],!0),d);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),g=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:u,labelDetails:{detail:f.printNode(4,g,d)}}}}function E(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),o=a(a({},n),{write:function(e){return s(e,(function(){return n.write(e)}))},nonEscapingWrite:n.write,writeLiteral:function(e){return s(e,(function(){return n.writeLiteral(e)}))},writeStringLiteral:function(e){return s(e,(function(){return n.writeStringLiteral(e)}))},writeSymbol:function(e,t){return s(e,(function(){return n.writeSymbol(e,t)}))},writeParameter:function(e){return s(e,(function(){return n.writeParameter(e)}))},writeComment:function(e){return s(e,(function(){return n.writeComment(e)}))},writeProperty:function(e){return s(e,(function(){return n.writeProperty(e)}))}});return{printSnippetList:function(t,n,i){var a=c(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList:function(t,n,i,o){var s={text:c(t,n,i),getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},l=e.getFormatCodeSettingsForWriting(o,i),u=e.flatMap(n,(function(t){var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,s,i.languageVariant,0,0,a(a({},o),{options:l}))})),d=r?e.stableSort(e.concatenate(u,r),(function(t,r){return e.compareTextSpans(t.span,r.span)})):u;return e.textChanges.applyChanges(s.text,d)}};function s(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function c(e,t,n){return r=void 0,o.clear(),i.writeList(e,t,n,o),o.getText()}}function k(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return l(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function A(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function N(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function F(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function w(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):l(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function P(r,n,i,a,o,s,c,l,u,_,g,m,h,y,v,b,x,D,T,C,E,k,A,N){for(var F,w=e.timestamp(),P=function(t){var r=e.findAncestor(t,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)}));return r}(o),I=e.probablyUsesSemicolons(s),O=l.getTypeChecker(),M=new e.Map,L=function(_){var w=r[_],L=null==E?void 0:E[_],R=U(w,u,L,g,!!x);if(!R||M.get(R.name)&&(!L||!p(L))||1===g&&k&&!function(r,n){var i=r.flags;if(!e.isSourceFile(o)){if(e.isExportAssignment(o.parent))return!0;if(P&&r.valueDeclaration===P)return!1;var a=e.skipAlias(r,O);if(s.externalModuleIndicator&&!h.allowUmdGlobalAccess&&n[e.getSymbolId(r)]===t.SortText.GlobalsOrKeywords&&(n[e.getSymbolId(a)]===t.SortText.AutoImportSuggestions||n[e.getSymbolId(a)]===t.SortText.LocationPriority))return!1;if(i|=e.getCombinedLocalAndExportSymbolFlags(a),e.isInRightSideOfInternalImportEqualsDeclaration(o))return!!(1920&i);if(v)return ce(r,O)}return!!(111551&i)}(w,k))return"continue";var B=R.name,j=R.needsConvertPropertyAccess,J=null!==(F=null==k?void 0:k[e.getSymbolId(w)])&&void 0!==F?F:t.SortText.LocationPriority,z=function(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}(w,O)?t.SortText.Deprecated(J):J,V=S(w,z,i,a,o,s,c,l,B,j,L,C,b,D,T,I,h,m,g,y,A,N);if(!V)return"continue";var K=(!L||d(L))&&!(void 0===w.parent&&!e.some(w.declarations,(function(e){return e.getSourceFile()===o.getSourceFile()})));if(M.set(B,K),w.getJsDocTags().length>0&&(V.jsDoc=w.getJsDocTags()),w.declarations&&_<50){var W=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(O,w,s,o,o,7),q=e.getContaningConstructorDeclaration(w.valueDeclaration),$=/(Missing)/g;V.displayParts=q&&q.virtual?W.displayParts.map((function(e){return e.text.match($)&&(e.text=e.text.replace($,V.name)),e})):W.displayParts}e.insertSorted(n,V,f,!0)},R=0;R=t.pos;case 24:case 22:return 205===n;case 58:return 206===n;case 20:return 298===n||Me(n);case 18:return 266===n;case 29:return 262===n||230===n||264===n||265===n||e.isFunctionLikeKind(n);case 125:return 170===n&&!e.isClassLike(r.parent);case 25:return 167===n||!!r.parent&&205===r.parent.kind;case 124:case 122:case 123:return 167===n&&!e.isConstructorDeclaration(r.parent);case 129:return 276===n||281===n||274===n;case 138:case 152:return!ee(t);case 79:if(276===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 85:case 93:case 119:case 99:case 114:case 101:case 120:case 86:case 139:return!0;case 155:return 276!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if($(H(t))&&ee(t))return!1;if(Ie(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(H(t))||je(t)))return!1;switch(H(t)){case 127:case 84:case 85:case 86:case 137:case 93:case 99:case 119:case 120:case 122:case 123:case 124:case 125:case 114:return!0;case 133:return e.isPropertyDeclaration(t.parent)}var a=e.findAncestor(t.parent,e.isClassLike);if(a&&t===w&&Oe(t,s))return!1;var o=e.getAncestor(t.parent,170);if(o&&t!==w&&e.isClassLike(w.parent.parent)&&s<=w.end){if(Oe(t,w.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==w||s>w.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(G===e.parent&&(286===G.kind||285===G.kind))return!1;if(286===e.parent.kind)return 286!==G.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(P))return n("Returning an empty list because completion was requested in an invalid position."),X?h(X,N,Pe()):void 0;var oe=P.parent;if(24===P.kind||28===P.kind)switch(B=24===P.kind,J=28===P.kind,oe.kind){case 209:L=(I=oe).expression;var se=e.getLeftmostAccessExpression(I);if(e.nodeIsMissing(se)||(e.isCallExpression(L)||e.isFunctionLike(L)||e.isEtsComponentExpression(L))&&L.end===P.pos&&L.getChildCount(i)&&21!==e.last(L.getChildren(i)).kind&&!L.getLastToken(i))return;if(L.virtual&&20===(null===(f=e.findPrecedingToken(L.pos,i))||void 0===f?void 0:f.kind))return;break;case 164:L=oe.left;break;case 267:L=oe.name;break;case 203:L=oe;break;case 235:L=oe.getFirstToken(i),e.Debug.assert(101===L.kind||104===L.kind);break;default:return}else if(!O){if(oe&&209===oe.kind&&(P=oe,oe=oe.parent),x.parent===G)switch(x.kind){case 31:284!==x.parent.kind&&286!==x.parent.kind||(G=x);break;case 43:285===x.parent.kind&&(G=x)}switch(oe.kind){case 287:43===P.kind&&(V=!0,G=P);break;case 225:if(!te(oe))break;case 285:case 284:case 286:W=!0,29===P.kind&&(z=!0,G=P);break;case 294:case 293:19===w.kind&&31===x.kind&&(W=!0);break;case 291:if(oe.initializer===w&&w.end0&&c.forEach((function(e){e.forEach((function(e){Ae(e,!1,r)}))}))}(d,n))}}else ge.push.apply(ge,e.filter(Y(t,m),(function(e){return m.isValidPropertyAccessForCompletions(i,t,e)})));if(r&&c.includeCompletionsWithInsertText){var _=m.getPromisedTypeOfPromise(t);if(_)for(var f=0,g=_.getApparentProperties();f0){var b=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a90))&&(!!l||le(t,o))}),(function(n,i,a,o){var s;if(!l||e.some(n,(function(t){return l.source===e.stripQuotes(t.moduleSymbol.name)}))){var c=e.find(n,h);if(c){var u=r.tryResolve(n,i,a)||{};if("failed"!==u){var d,p=c;"skipped"!==u&&(p=void 0===(s=u.exportInfo)?c:s,d=u.moduleSpecifier);var _=1===p.exportKind;!function(r,n){var i=e.getSymbolId(r);if(he[i]===t.SortText.GlobalsOrKeywords)return;me[ge.length]=n,he[i]=O?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,ge.push(r)}(_&&e.getLocalSymbolForExportDefault(p.symbol)||p.symbol,{kind:d?32:4,moduleSpecifier:d,symbolName:i,exportMapKey:o,exportName:2===p.exportKind?"export=":p.symbol.name,fileName:p.moduleFileName,isDefaultExport:_,moduleSymbol:p.moduleSymbol,isFromPackageJson:p.isFromPackageJson})}}}})),fe=r.skippedAny(),ie|=r.resolvedAny()?8:0,ie|=r.resolvedBeyondLimit()?16:0}))}function h(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!m||m.allowsImportingAmbientModule(t.moduleSymbol,be(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?g:r,i,n,c,m,be(t.isFromPackageJson),d)}}function Pe(){if(P){var e=P.parent.kind,t=H(P);switch(t){case 27:return 211===e||174===e||212===e||207===e||225===e||182===e||208===e;case 20:return 211===e||174===e||212===e||215===e||194===e;case 22:return 207===e||179===e||165===e;case 143:case 144:case 101:return!0;case 24:return 267===e;case 18:return 262===e||263===e||208===e;case 63:return 259===e||225===e;case 15:return 227===e;case 16:return 238===e;case 133:return 172===e||303===e;case 41:return 172===e}if($(t))return!0}return!1}function Ie(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Oe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function Me(t){return e.isFunctionLikeKind(t)&&174!==t}function Le(e,t){var r=e.expression,n=m.getSymbolAtLocation(r),i=n&&m.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function Re(){ge.forEach((function(r){var n;if(16777216&r.flags){var i=e.getSymbolId(r);he[i]=null!==(n=he[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Be(r,n){if(0!==r.size)for(var i=0,a=n;i");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}return}(h,r);if(L)return L}var R=e.createSortedArray(),B=v(r,a);if(B&&!m&&(!d||0===d.length)&&0===S)return;var j=P(d,R,void 0,p,h,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,A,x,N,k,w,E,C,O,N,F);if(0!==S)for(var J=0,U=K(S,!I&&e.isSourceFileJS(r));J=0&&!l(r,n[i],116);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&l(r,e.getFirstToken(),81,87)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 247:case 248:case 249:case 245:case 246:return u(t);case 254:return p(t)}}function p(t){var r=[];return l(r,t.getFirstToken(),108),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,89),e.forEach(a(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function _(t,r){var n=[];(l(n,t.getFirstToken(),112),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock)&&l(n,e.findChildOfKind(t,97,r),97);return n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||311===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,110,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,106,r))})),a}}function g(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,106,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,110,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){l(n,e,133)})),e.forEachChild(r,(function(t){h(t,(function(t){e.isAwaitExpression(t)&&l(n,t.getFirstToken(),134)}))})),n}}function h(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return h(e,r)}))}t.getDocumentHighlights=function(t,n,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var y=c.parent.parent,v=[y.openingElement,y.closingElement].map((function(e){return r(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}(o,c,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 100:case 92:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){var n=[];for(;e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);l(n,i[0],100);for(var a=i.length-1;a>=0&&!l(n,i[a],92);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 106:return c(t.parent,e.isReturnStatement,g);case 110:return c(t.parent,e.isThrowStatement,f);case 112:case 83:case 97:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,_);case 108:return c(t.parent,e.isSwitchStatement,p);case 82:case 89:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,p):void 0;case 81:case 87:return c(t.parent,e.isBreakOrContinueStatement,d);case 98:case 116:case 91:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 136:return s(e.isConstructorDeclaration,[136]);case 138:case 152:return s(e.isAccessor,[138,152]);case 134:return c(t.parent,e.isAwaitExpression,m);case 133:return y(m(t));case 126:return y(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){h(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),126)}))})),n}(t));case 102:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 268:case 311:case 240:case 295:case 296:return 256&r&&e.isClassDeclaration(t)?i(i([],t.members,!0),[t],!1):n.statements;case 174:case 172:case 261:return i(i([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 262:case 230:case 263:case 264:case 185:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(256&r)return i(i([],a,!0),[n],!1);return a;case 208:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(r,i){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function t(e){return!!e.sourceFile}function r(r,n,o){void 0===n&&(n="");var s=new e.Map,c=e.createGetCanonicalFileName(!!r);function l(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function u(e,t,r,n,i,a,o,s){return _(e,t,r,n,i,a,!0,o,s)}function d(e,t,r,n,i,a,o,s){return _(e,t,l(r),n,i,a,!1,o,s)}function p(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function _(r,n,i,c,u,d,_,f,g){var m,h,y,v;f=e.ensureScriptKind(r,f);var b=l(i),x=i===b?void 0:i,D=6===f?100:e.getEmitScriptTarget(b),S="object"==typeof g?g:{languageVersion:D,impliedNodeFormat:x&&e.getImpliedNodeFormatForFile(n,null===(v=null===(y=null===(h=null===(m=x.getCompilerHost)||void 0===m?void 0:m.call(x))||void 0===h?void 0:h.getModuleResolutionCache)||void 0===y?void 0:y.call(h))||void 0===v?void 0:v.getPackageJsonInfoCache(),x,b),setExternalModuleIndicator:e.getSetExternalModuleIndicator(b)};S.languageVersion=D;var T=s.size,C=a(c,S.impliedNodeFormat),E=e.getOrUpdate(s,C,(function(){return new e.Map}));if(e.tracing){s.size>T&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:b.configFilePath,key:C});var k=!e.isDeclarationFileName(n)&&e.forEachEntry(s,(function(e,t){return t!==C&&e.has(n)&&t}));k&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:k,key2:C})}var A=E.get(n),N=A&&p(A,f);!N&&o&&((F=o.getDocument(C,n))&&(e.Debug.assert(_),N={sourceFile:F,languageServiceRefCount:0},w()));if(N)N.sourceFile.version!==d&&(N.sourceFile=e.updateLanguageServiceSourceFile(N.sourceFile,u,d,u.getChangeRange(N.sourceFile.scriptSnapshot),void 0,b),o&&o.setDocument(C,n,N.sourceFile)),_&&N.languageServiceRefCount++;else{var F=e.createLanguageServiceSourceFile(r,u,S,d,!1,f,b);o&&o.setDocument(C,n,F),N={sourceFile:F,languageServiceRefCount:1},w()}return e.Debug.assert(0!==N.languageServiceRefCount),N.sourceFile;function w(){if(A)if(t(A)){var r=new e.Map;r.set(A.sourceFile.scriptKind,A),r.set(f,N),E.set(n,r)}else A.set(f,N);else E.set(n,N)}}function f(r,n,i,o){var c=e.Debug.checkDefined(s.get(a(n,o))),l=c.get(r),u=p(l,i);u.languageServiceRefCount--,e.Debug.assert(u.languageServiceRefCount>=0),0===u.languageServiceRefCount&&(t(l)?c.delete(r):(l.delete(i),1===l.size&&c.set(r,e.firstDefinedIterator(l.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,s,d){return u(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,d)},acquireDocumentWithKey:u,updateDocument:function(t,r,a,o,s,u){return d(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,u)},updateDocumentWithKey:d,releaseDocument:function(t,r,a,o){return f(e.toPath(t,n,c),i(r),a,o)},releaseDocumentWithKey:f,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(s.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&p(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(s.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=s.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(function(e){return n(e)})))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasProperty(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return n(e.getCompilerOptionValue(t,r))})).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function a(e,t){return t?"".concat(e,"|").concat(t):e}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(d||(d={})),function(e){!function(t){function r(t,r){return e.forEach(311===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function y(e){return 0===e.kind?e.textSpan:h(e.node,e.node.getSourceFile())}function v(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(16777216&t.flags)return!0;switch(t.kind){case 225:case 206:case 262:case 230:case 263:case 89:case 266:case 305:case 281:case 273:case 271:case 276:case 264:case 344:case 351:case 291:case 267:case 270:case 274:case 280:case 167:case 303:case 265:case 166:return!0;case 302:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 261:case 216:case 174:case 172:case 175:case 176:return!!t.body;case 259:case 170:return!!t.initializer||e.isCatchClause(t.parent);case 171:case 169:case 353:case 346:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||89===t.kind||e.isWriteAccess(t)}function b(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(89===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||136===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((function(e){return e===i||e===a}))))}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference"}(t.DefinitionKind||(t.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(t.EntryKind||(t.EntryKind={})),t.nodeEntry=n,t.isContextWithStartAndEndNode=o,t.getContextNode=c,t.toContextSpan=l,function(e){e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename"}(t.FindReferencesUse||(t.FindReferencesUse={})),t.findReferencedSymbols=function(t,n,i,o,s){var u=e.getTouchingPropertyName(o,s),d={use:1},p=r.getReferencedSymbolsForNode(s,u,t,i,n,d),m=t.getTypeChecker(),h=r.getAdjustedNode(u,d),y=function(t){return 89===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||136===t.kind&&e.isConstructorDeclaration(t.parent)}(h)?m.getSymbolAtLocation(h):void 0;return p&&p.length?e.mapDefined(p,(function(t){var r=t.definition,i=t.references;return r&&{definition:m.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=f(g=t.symbol,r,n),o=i.displayParts,s=i.kind,l=o.map((function(e){return e.text})).join(""),u=g.declarations&&e.firstOrUndefined(g.declarations),d=u?e.getNameOfDeclaration(u)||u:n;return a(a({},_(d)),{name:l,kind:s,displayParts:o,context:c(u)});case 1:d=t.node;return a(a({},_(d)),{name:d.text,kind:"label",displayParts:[e.displayPart(d.text,e.SymbolDisplayPartKind.text)]});case 2:d=t.node;var p=e.tokenToString(d.kind);return a(a({},_(d)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:d=t.node;var g,m=(g=r.getSymbolAtLocation(d))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,g,d.getSourceFile(),e.getContainerNode(d),d).displayParts||[e.textPart("this")];return a(a({},_(d)),{name:"this",kind:"var",displayParts:m});case 4:d=t.node;return a(a({},_(d)),{name:d.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(d),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.sourceFile,s=i.textSpan,u=i.name,d=i.kind,p=i.displayParts,g=i.context;return a({containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:u,textSpan:s,displayParts:p},l(s,o,g))}(r,t,u)})),references:i.map((function(e){return function(e,t){var r=g(e);return t?a(a({},r),{isDefinition:0!==e.kind&&b(e.node,t)}):r}(e,y)}))}})):void 0},t.getImplementationsAtPosition=function(t,r,n,o,s){var c,l=e.getTouchingPropertyName(o,s),d=u(t,r,n,l,s);if(209===l.parent.kind||206===l.parent.kind||210===l.parent.kind||107===l.kind)c=d&&i([],d,!0);else if(d)for(var p=e.createQueue(d),_=new e.Map;!p.isEmpty();){var g=p.dequeue();if(e.addToSeen(_,e.getNodeId(g.node))){c=e.append(c,g);var h=u(t,r,n,g.node,g.node.pos);h&&p.enqueue.apply(p,h)}}var y=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=m(t);if(0!==t.kind){var i=t.node;return a(a({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?f(n,r,t):208===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:230===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return a(a({},n),{kind:"",displayParts:[]})}(t,y)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(p(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=d,t.toRenameLocation=function(t,r,n,i){return a(a({},m(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=g,t.toHighlightSpan=function(e){var t=m(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=v(e.node),n=a({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=y,t.isDeclarationOfSymbol=b,function(r){function i(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function a(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function T(t,r){var i=t.getSourceFile(),a=r.text,o=e.mapDefined(D(i,a,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,a)===r?n(t):void 0}));return[{definition:{type:1,node:r},references:o}]}function C(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=S(t,r.text,e);a0;o--){S(t,i=n[o])}return[n.length-1,n[0]]}function S(e,t){var r=v(e,t);m(o,r),u.push(o),d.push(s),s=void 0,o=r}function T(){o.children&&(N(o.children,o),M(o.children)),o=u.pop(),s=d.pop()}function C(e,t,r){S(e,r),A(t),T()}function E(t){t.initializer&&function(e){switch(e.kind){case 217:case 216:case 230:return!0;default:return!1}}(t.initializer)?(S(t),e.forEachChild(t.initializer,A),T()):C(t,t.initializer)}function k(t){return!e.hasDynamicName(t)||225!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function A(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 174:var i=t;C(i,i.body);for(var a=0,o=i.parameters;a0&&(S(J,L),e.forEachChild(J.right,A),T()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,L):(S(J,L),C(t,J.right,I.name),T()),void x(M);case 7:case 9:var R=t,B=(L=7===P?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=D(t,L);M=j[0];return S(t,j[1]),S(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),A(t.arguments[2]),T(),T(),void x(M);case 5:var J,U=(I=(J=t).left).expression;if(e.isIdentifier(U)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(U.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,U):e.isBindableStaticAccessExpression(I)&&(S(J,U),C(J.left,J.right,e.getNameOrArgument(I)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,A)}}function N(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&f(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c0)return Q(n)}switch(t.kind){case 311:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"";case 277:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 217:case 261:case 216:case 262:case 230:case 263:return 1024&e.getSyntacticModifierFlags(t)?"default":G(t);case 174:return"constructor";case 178:return"new()";case 177:return"()";case 179:return"[]";default:return""}}function j(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),nameSpan:t.name&&q(t.name),childItems:e.map(t.children,j)}}function J(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),childItems:e.map(t.children,(function(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:U(t),childItems:p,indent:0,bolded:!1,grayed:!1}}))||p,indent:t.indent,bolded:!1,grayed:!1}}function U(e){var t=[q(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return Q(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return Q(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return f(r.left).replace(c,"");if(e.isPropertyAssignment(r))return f(r.name);if(1024&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=H(r.expression);if(void 0!==n){if((n=Q(n)).length>l)return"".concat(n," callback");var a=Q(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "));return"".concat(n,"(").concat(a,") callback")}}return""}function H(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=H(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function Q(e){return(e=e.length>l?e.substring(0,l)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),function(e){!function(t){function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s=2)return!0}return!1}function i(t,r,n){for(var i=n.getTypeChecker(),o=n.getCompilerOptions(),s=i.getJsxNamespace(r),c=i.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),d=[],p=0,_=t;p<_.length;p++){var f=_[p],g=f.importClause,m=f.moduleSpecifier;if(g){var h=g.name,y=g.namedBindings;if(h&&!b(h)&&(h=void 0),y)if(e.isNamespaceImport(y))b(y.name)||(y=void 0);else{var v=y.elements.filter((function(e){return b(e.name)}));v.length0?g[0]:y[0],A=0===E.length?D?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(y[0].importClause.namedBindings,E);f&&D&&A?(s.push(l(k,D,void 0)),s.push(l(null!==(r=y[0])&&void 0!==r?r:k,void 0,A))):s.push(l(k,D,A))}}else{var N=g[0];s.push(l(N,N.importClause.name,m[0].importClause.namedBindings))}}return s}function c(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}function d(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...")}function p(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}function _(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}function m(t){return t.length?l(e.createTextSpanFromRange(t),"code"):void 0}function h(t){if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return l(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))}}(i,t);p&&n.push(p),u--,e.isCallExpression(i)?(u++,m(i.expression),u--,i.arguments.forEach(m),null===(d=i.typeArguments)||void 0===d||d.forEach(m)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(m(i.expression),m(i.thenStatement),u++,m(i.elseStatement),u--):i.forEachChild(m),u++}}}(t,r,u),function(t,r){for(var i=[],a=t.getLineStarts(),o=0,s=a;o1&&a.push(s(c,l,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(d||(d={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=y(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,(function(t,n){return p(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,_=n(i,o);d<_.length;d++){var f=_[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!l(i,g,a,!1)||!l(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){return u(e)||d(e)||_(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:h(e)}}function h(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;at.length)return;for(var l=n.length-2,u=t.length-1;l>=0;l-=1,u-=1)s=o(s,a(t[u],n[l],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=h,e.breakIntoWordSpans=y}(d||(d={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(u=!0)}function g(){var t=e.scanner.getToken();return 137===t&&(143===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(101===t){if(20===(t=d())){if(10===(t=d())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(155===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 159!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=d())}if(79===t||e.isKeyword(t))if(159===(t=d())){if(10===(t=d()))return _(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&159===(t=d())&&10===(t=d())&&_()}else 41===t&&129===(t=d())&&(79===(t=d())||e.isKeyword(t))&&159===(t=d())&&10===(t=d())&&_()}return!0}return!1}function h(){var t=e.scanner.getToken();if(94===t){if(f(),155===(t=d())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&159===(t=d())&&10===(t=d())&&_()}else if(41===t)159===(t=d())&&10===(t=d())&&_();else if(101===t){if(155===(t=d())){r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)}));r&&(t=d())}if((79===t||e.isKeyword(t))&&63===(t=d())&&y(!0))return!0}return!0}return!1}function y(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 148===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&_(),!0)}function v(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||_(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()];e:for(;e.length(r);){var i=e.scanner.scan();switch(i){case 1:break e;case 101:m();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}}d()}g()||m()||h()||n&&(y(!1,!0)||v())||d()}e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var b=0,x=i;bt)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,h.end));if(v&&2===v.kind&&C(v.pos,v.end),r(n,t,h)){if(e.isFunctionBody(h)&&e.isFunctionLikeDeclaration(_)&&!e.positionsAreOnSameLine(h.getStart(n),h.getEnd(),n)&&T(h.getStart(n),h.getEnd()),e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||m&&e.isTemplateHead(m)||e.isVariableDeclarationList(h)&&e.isVariableStatement(_)||e.isSyntaxList(h)&&e.isVariableDeclarationList(_)||e.isVariableDeclaration(h)&&e.isSyntaxList(_)&&1===f.length||e.isJSDocTypeExpression(h)||e.isJSDocSignature(h)||e.isJSDocTypeLiteral(h)){_=h;break}if(e.isTemplateSpan(_)&&y&&e.isTemplateMiddleOrTemplateTail(y))T(h.getFullStart()-2,y.getStart()+1);var b=e.isSyntaxList(h)&&(d=void 0,18===(d=(c=m)&&c.kind)||22===d||20===d||286===d)&&l(y)&&!e.positionsAreOnSameLine(m.getStart(),y.getStart(),n),x=b?m.getEnd():h.getStart(),D=b?y.getStart():u(n,h);if(e.hasJSDocNodes(h)&&(null===(o=h.jsDoc)||void 0===o?void 0:o.length)&&T(e.first(h.jsDoc).getStart(),D),e.isSyntaxList(h)){var S=h.getChildren()[0];S&&e.hasJSDocNodes(S)&&(null===(s=S.jsDoc)||void 0===s?void 0:s.length)&&S.getStart()!==h.pos&&(x=Math.min(x,e.first(S.jsDoc).getStart()))}T(x,D),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&T(x+1,D-1),_=h;break}if(g===f.length-1)break e}}return p;function T(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!p||!e.textSpansEqual(i,p.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(p=a({textSpan:i},p&&{parent:p}))}}function C(e,t){T(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;T(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){var r;if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var i=t.getChildren(),a=i[0],l=i.slice(1),u=e.Debug.checkDefined(l.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(u.kind,19);var d=o(l,(function(e){return e===t.readonlyToken||147===e.kind||e===t.questionToken||57===e.kind})),p=o(d,(function(e){var t=e.kind;return 22===t||166===t||23===t}));return[a,c(s(p,(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t)){var _=326===(null===(r=(l=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})))[0])||void 0===r?void 0:r.kind)?l[0]:void 0,f=s(_?l.slice(1):l,(function(e){return 58===e.kind}));return _?[_,c(f)]:f}if(e.isParameter(t)){var g=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(g,(function(e){return e===g[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(n).kind&&i++;return i}(a,e.isInString(n,r,t));0!==o&&e.Debug.assertLessThan(o,s);var c=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(a,n);return{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?p(i,0,n):void 0;if(e.isTemplateHead(t)&&213===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(227===_.kind),p(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;l=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n);return p(f,l,n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,h-m),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function d(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function g(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,d){var p=t.getTypeChecker(),_=e.findTokenOnLeftOfPosition(r,n);if(_){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(r,n,_)&&!e.isInComment(r,n)){var h=!!i&&"invoked"===i.kind,b=function(t,r,n,i,a){for(var d=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n,i){if(20!==t.kind&&27!==t.kind)return;var a=t.parent;switch(a.kind){case 215:case 172:case 216:case 217:var s=o(t,n,r);if(!s)return;var u=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan,_=e.isMethodDeclaration(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return _&&{contextualType:_,argumentIndex:u,argumentCount:d,argumentsSpan:p};case 225:var f=c(a),g=i.getContextualType(f),m=20===t.kind?0:l(a)-1,h=l(f);return g&&{contextualType:g,argumentIndex:m,argumentCount:h,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}(t,n,r,i);if(!a)return;var s=a.contextualType,d=a.argumentIndex,p=a.argumentCount,_=a.argumentsSpan,f=s.getNonNullableType(),g=f.symbol;if(void 0===g)return;var m=e.lastOrUndefined(f.getCallSignatures());if(void 0===m)return;var h={kind:2,signature:m,node:t,symbol:u(g)};return{isTypeParameterList:!1,invocation:h,argumentsSpan:_,argumentIndex:d,argumentCount:p}}(t,r,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},p=t;!e.isSourceFile(p)&&(a||!e.isBlock(p));p=p.parent){var _=d(p);if("object"==typeof _)return _.value}return}(_,n,r,p,h);if(b){d.throwIfCancellationRequested();var x=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,p,r,_,f);return d.throwIfCancellationRequested(),x?p.runWithCancellationToken(d,(function(e){return 0===x.kind?y(x.candidates,x.resolvedSignature,b,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!c)return;var l=[v(e,c,n,m(o),r)];return{items:l,applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}}(x.symbol,b,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=g(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}(b,t,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var h=70246400;function y(t,r,n,a,o,s){var c,l=n.isTypeParameterList,u=n.argumentCount,d=n.argumentsSpan,p=n.invocation,_=n.argumentIndex,f=m(p),h=2===p.kind?p.symbol:o.getSymbolAtLocation(g(p))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),y=h?e.symbolToDisplayParts(o,h,s?a:void 0,void 0):e.emptyArray,v=e.map(t,(function(t){return function(t,r,n,a,o,s){var c=(n?x:D)(t,a,o,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,d=i(i([],r,!0),l,!0),p=i(i([],u,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a),!0),_=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:b,parameters:c,documentation:_,tags:f}}))}(t,y,l,o,f,a)}));0!==_&&e.Debug.assertLessThan(_,u);for(var S=0,T=0,C=0;C1))for(var k=0,A=0,N=E;A=u){S=T+k;break}k++}T+=E.length}e.Debug.assert(-1!==S);var w={items:e.flatMapToMutable(v,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:_,argumentCount:u},P=w.items[S];if(P.isVariadic){var I=e.findIndex(P.parameters,(function(e){return!!e.isRest}));-1t?e.substr(0,t-3)+"...":e}function x(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}function D(t){if((e.isParameterDeclaration(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&t.initializer){var r=e.skipParentheses(t.initializer);return!(y(r)||e.isNewExpression(r)||e.isObjectLiteralExpression(r)||e.isAssertionExpression(r))}return!0}}}(e.InlayHints||(e.InlayHints={}))}(d||(d={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===d)return;var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p},toLineColumnOffset:function(e,t){return u(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),l=a.get(c);if(l)return l;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=u(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function u(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||l(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=u;p<_.length;p++){var f=_[p],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),m=o(g,d);if(e.isString(m))return r(n,m,g);if(void 0!==m)return m||void 0}}}(d||(d={})),function(e){var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 272:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&274===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 271:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((function(e){return l(e,r)})))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((function(e){return l(e,r)})))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var _,f,g,m,h=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",D=!1,S=109===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),T=!1;if(109===l.kind&&!S)return{displayParts:[e.keywordPart(109)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){if("getter"===x||"setter"===x)if(q=e.find(o.declarations,(function(e){return e.name===l})))switch(q.kind){case 175:x="getter";break;case 176:x="setter";break;case 170:x="accessor";break;default:e.Debug.assertNever(q)}else x="property";var C=void 0;if(_=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&209===l.parent.kind){var E=l.parent.name;(E===l||E&&0===E.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){C=a.getResolvedSignature(k);var A=212===k.kind||e.isCallExpression(k)&&107===k.expression.kind,N=A?_.getConstructSignatures():_.getCallSignatures();if(!C||e.contains(N,C.target)||e.contains(N,C)||(C=N.length?N[0]:void 0),C){switch(A&&32&b?(x="constructor",te(_.symbol,x)):2097152&b?(re(x="alias"),h.push(e.spacePart()),A&&(4&C.flags&&(h.push(e.keywordPart(127)),h.push(e.spacePart())),h.push(e.keywordPart(104)),h.push(e.spacePart())),ee(o)):te(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(58)),h.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(h,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),h.push(e.lineBreakPart())),A&&(4&C.flags&&(h.push(e.keywordPart(127)),h.push(e.spacePart())),h.push(e.keywordPart(104)),h.push(e.spacePart())),ne(C,N,262144);break;default:ne(C,N)}D=!0,T=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||136===l.kind&&174===l.parent.kind){var F=l.parent,w=o.declarations&&e.find(o.declarations,(function(e){return e===(136===l.kind?F.parent:F)}));if(w){N=174===F.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();C=a.isImplementationOfOverload(F)?N[0]:a.getSignatureFromDeclaration(F),174===F.kind?(x="constructor",te(_.symbol,x)):te(177!==F.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,x),C&&ne(C,N),D=!0,T=N.length>1}}}if(32&b&&!D&&!S&&(Y(),e.getDeclarationOfKind(o,230)?re("local class"):e.getDeclarationOfKind(o,263)?h.push(e.keywordPart(85)):h.push(e.keywordPart(84)),h.push(e.spacePart()),ee(o),ie(o,s)),64&b&&2&u&&(X(),h.push(e.keywordPart(119)),h.push(e.spacePart()),ee(o),ie(o,s)),524288&b&&2&u&&(X(),h.push(e.keywordPart(155)),h.push(e.spacePart()),ee(o),ie(o,s),h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(X(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(h.push(e.keywordPart(86)),h.push(e.spacePart())),h.push(e.keywordPart(93)),h.push(e.spacePart()),ee(o)),1536&b&&!S){X();var P=(q=e.getDeclarationOfKind(o,267))&&q.name&&79===q.name.kind;h.push(e.keywordPart(P?144:143)),h.push(e.spacePart()),ee(o)}if(262144&b&&2&u)if(X(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),ee(o),o.parent)Z(),ee(o.parent,c),ie(o.parent,c);else{var I=e.getDeclarationOfKind(o,166);if(void 0===I)return e.Debug.fail();if(q=I.parent)if(e.isFunctionLikeKind(q.kind)){Z();C=a.getSignatureFromDeclaration(q);178===q.kind?(h.push(e.keywordPart(104)),h.push(e.spacePart())):177!==q.kind&&q.name&&ee(q.symbol),e.addRange(h,e.signatureToDisplayParts(a,C,s,32))}else 265===q.kind&&(Z(),h.push(e.keywordPart(155)),h.push(e.spacePart()),ee(q.symbol),ie(q.symbol,s))}if(8&b&&(x="enum member",te(o,"enum member"),305===(null==(q=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:q.kind))){var O=a.getConstantValue(q);void 0!==O&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(X(),!D){var M=a.getAliasedSymbol(o);if(M!==o&&M.declarations&&M.declarations.length>0){var L=M.declarations[0],R=e.getNameOfDeclaration(L);if(R){var B=e.isModuleWithStringLiteralName(L)&&e.hasSyntacticModifier(L,2),j="default"!==o.name&&!B,J=t(a,M,e.getSourceFileOfNode(L),L,R,u,j?o:M);h.push.apply(h,J.displayParts),h.push(e.lineBreakPart()),g=J.documentation,m=J.tags}else g=M.getContextualDocumentationComment(L,a),m=M.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 270:h.push(e.keywordPart(94)),h.push(e.spacePart()),h.push(e.keywordPart(144));break;case 277:h.push(e.keywordPart(94)),h.push(e.spacePart()),h.push(e.keywordPart(o.declarations[0].isExportEquals?63:89));break;case 281:h.push(e.keywordPart(94));break;default:h.push(e.keywordPart(101))}h.push(e.spacePart()),ee(o),e.forEach(o.declarations,(function(t){if(271===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.keywordPart(148)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),ee(n,c))}return!0}}))}if(!D)if(""!==x){if(_)if(S?(X(),h.push(e.keywordPart(109))):te(o,x),"property"===x||"accessor"===x||"getter"===x||"setter"===x||"JSX attribute"===x||3&b||"local var"===x||"index"===x||S){if(h.push(e.punctuationPart(58)),h.push(e.spacePart()),_.symbol&&262144&_.symbol.flags&&"index"!==x){var U=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(_,c,r);Q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(h,U)}else e.addRange(h,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var z=o.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.textPart(e.idText(z.name))),h.push(e.punctuationPart(21))}}else if(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x){(N=_.getNonNullableType().getCallSignatures()).length&&(ne(N[0],N),T=N.length>1)}}else x=n(a,o,l);if(0!==y.length||T||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 311===e.kind})))for(var V=0,K=o.declarations;V0))break}}if(0===y.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var q,$=(q=o.valueDeclaration).parent;if(e.isIdentifier(q.name)&&e.isObjectBindingPattern($)){var G=e.getTextOfIdentifierOrLiteral(q.name),H=a.getTypeAtLocation($);y=e.firstDefined(H.isUnion()?H.types:[H],(function(e){var t=e.getProperty(G);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==v.length||T||(v=o.getContextualJsDocTags(c,a)),0===y.length&&g&&(y=g),0===v.length&&m&&(v=m),{displayParts:h,documentation:y,symbolKind:x,tags:0===v.length?void 0:v};function Q(){return f||(f=e.createPrinter({removeComments:!0})),f}function X(){h.length&&h.push(e.lineBreakPart()),Y()}function Y(){d&&(re("alias"),h.push(e.spacePart()))}function Z(){h.push(e.spacePart()),h.push(e.keywordPart(102)),h.push(e.spacePart())}function ee(t,r){var n;d&&t===o&&(t=d),"index"===x&&(n=a.getIndexInfosOfIndexSymbol(t));var i=[];131072&t.flags&&n?(t.parent&&(i=e.symbolToDisplayParts(a,t.parent)),i.push(e.punctuationPart(22)),n.forEach((function(t,r){i.push.apply(i,e.typeToDisplayParts(a,t.keyType)),r!==n.length-1&&(i.push(e.spacePart()),i.push(e.punctuationPart(51)),i.push(e.spacePart()))})),i.push(e.punctuationPart(23))):i=e.symbolToDisplayParts(a,t,r||s,void 0,7),e.addRange(h,i),16777216&o.flags&&h.push(e.punctuationPart(57))}function te(t,r){X(),r&&(re(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(h.push(e.spacePart()),ee(t)))}function re(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function ne(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(39)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags().filter((function(e){return"deprecated"!==e.name})))}function ie(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);Q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(h,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=s;return r}(f,_),0,n),a[l]=(p=1+((u=f)>>(d=_)&c),e.Debug.assert((p&c)===p,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(c<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter((function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)})).sort((function(e,t){return e.start-t.start}));if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)}))}function p(r,n,i,a,o,s,c,l,u){var d,p,f,g,m,h,y=s.options,v=s.getRules,b=s.host,x=new t.FormattingContext(u,c,y),D=-1,S=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(n.getStart(u)).line,C=T;e.hasDecorators(n)&&(C=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,d,_){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd()))return;var g=F(i,s,d,_),m=a;e.forEachChild(i,(function(e){b(e,-1,i,g,s,c,!1)}),(function(e){x(e,i,s,g)}));for(;o.isOnToken()&&o.getStartPos()Math.min(i.end,r.end))break;S(v,i,g,i)}function b(a,s,c,l,d,p,_,f){if(e.Debug.assert(!e.nodeIsSynthesized(a)),e.nodeIsMissing(a))return s;var g=a.getStart(u),v=u.getLineAndCharacterOfPosition(g).line,b=v;e.hasDecorators(a)&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var x=-1;if(_&&e.rangeContainsRange(r,c)&&(x=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,y);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(y);return d>l?d:l}}return-1}(g,a.end,d,r,s),-1!==x&&(s=x)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endr.end)return s;if(T.token.end>g){T.token.pos>g&&o.skipToStartOf(a);break}S(T,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)return s;if(e.isToken(a)){var T=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(T.token.end===a.end,"Token end is child end"),S(T,i,l,a),s}var C=168===a.kind?v:p,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===h?D:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===h?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,x,i,l,C);return n(a,m,v,b,E.indentation,E.delta),m=i,f&&207===c.kind&&-1===s&&(s=E.indentation),s}function x(n,a,s,c){e.Debug.assert(e.isNodeArray(n)),e.Debug.assert(!e.nodeIsSynthesized(n));var l=function(e,t){switch(e.kind){case 174:case 261:case 216:case 172:case 171:case 217:case 177:case 178:case 182:case 183:case 175:case 176:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 211:case 212:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 262:case 230:case 264:case 265:if(e.typeParameters===t)return 29;break;case 181:case 213:case 184:case 232:case 203:if(e.typeArguments===t)return 29;break;case 185:return 18}return 0}(a,n),d=c,p=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()n.pos)break;if(h.token.kind===l){p=u.getLineAndCharacterOfPosition(h.token.pos).line,S(h,a,c,a);var _=void 0;if(-1!==D)_=D;else{var f=e.getLineStartPositionForPosition(h.token.pos,u);_=t.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,u,y)}d=F(a,s,_,y.indentSize)}else S(h,a,c,a)}for(var g=-1,m=0;m=r.end){var A=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(A&&A.pos===p){var N=(null===(d=e.findPrecedingToken(A.end,u,n))||void 0===d?void 0:d.parent)||g;O(A,u.getLineAndCharacterOfPosition(A.pos).line,N,f,m,g,N,void 0)}}return S;function F(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 92:case 116:case 59:return!1;case 43:case 31:switch(a.kind){case 286:case 287:case 285:return!1}break;case 22:case 23:if(198!==a.kind)return!1}return n!==t&&!(e.hasDecorators(r)&&i===function(t){if(e.canHaveModifiers(t)){var r=e.find(t.modifiers,e.isModifier,e.findIndex(t.modifiers,e.isDecorator));if(r)return r.kind}switch(t.kind){case 262:return 84;case 263:return 85;case 264:return 119;case 261:return 99;case 266:return 266;case 175:return 138;case 176:return 152;case 172:if(t.asteriskToken)return 41;case 170:case 167:var n=e.getNameOfDeclaration(t);if(n)return n.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,u,!0)?a:0}}function w(t,n,i,a){for(var o=0,s=t;o0){var S=_(D,y);U(b,x.character,S)}else J(b,x.character)}}}else i||M(r.pos,n,!1)}function R(t,r,n){for(var i=t;io)){var s=B(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),J(s,o+1-s))}}}function B(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function j(e,t,r){R(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function J(t,r){r&&S.push(e.createTextChangeFromStartLength(t,r,""))}function U(t,r,n){(r||n)&&S.push(e.createTextChangeFromStartLength(t,r,n))}}function _(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return u(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return u(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return p(s,e,i,a,t,o,1,(function(e){return!1}),r)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var v=s(g,e,i),b=v.line===t.line||p(g,e,t.line,i);if(h){var x=null===(f=_(e,i))||void 0===f?void 0:f[0],S=m(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,b,i,l)))return S+n}D(l,g,e,i,o)&&!b&&(n+=l.indentSize);var T=d(g,e,t.line,i);g=(e=g).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=_(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(311===r.kind||!i)?y(n,a,o):-1}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function p(t,r,n,i){if(244===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,92,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 181:return a(n.typeArguments);case 208:return a(n.properties);case 207:case 275:case 279:case 204:case 205:return a(n.elements);case 185:return a(n.members);case 261:case 216:case 217:case 172:case 171:case 177:case 174:case 183:case 178:return a(n.typeParameters)||a(n.parameters);case 175:return a(n.parameters);case 262:case 230:case 263:case 264:case 265:case 350:return a(n.typeParameters);case 212:case 211:return a(n.typeArguments)||a(n.arguments);case 260:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=u(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;if(0===l)return l;var d=t.text.charCodeAt(s+u);return 42===d?l-1:l}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}var o=e.getLineStartPositionForPosition(i,t);return b(o,i,t,n)}(n,r,i);if(27===c.kind&&225!==c.parent.kind){var x=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==x)return x}var S=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);if(S&&!e.rangeContainsRange(S,c)){var T=-1!==[216,217].indexOf(_.parent.kind)?0:i.indentSize;return g(S,n,i)+T}return function(t,r,n,i,s,c){var d,p=n;for(;p;){if(e.positionBelongsToNode(p,r,t)&&D(c,p,d,t,!0)){var _=u(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var g=m(p,t,c,!0);if(-1!==g)return g;d=p,p=p.parent}return a(c)}(n,r,c,p,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,l;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function _(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var l=r.getStart(t),d=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,d)?d:l}if(s===c.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var g=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===g)return s===c.IncludeAll?_:f;if(i){var m=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,_))||void 0===o?void 0:o[0]);if(m)return e.skipTrivia(t.text,m.end,!0,!0)}var h=_>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+h,t);return y=u(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),c=null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var u=g(t,r,n);if(u)return u;var d=e.skipTrivia(t.text,a,!0);return d===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(d-1))?a:d}function h(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&208===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,v=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length)if(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var a=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,D(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=D(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=v,t.getNewFileText=function(e,t,r,n){return y.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map((function(e){return 4===e?"":n(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=A(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,i,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))}))},u=0;u0?{fileName:s.fileName,textChanges:p}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(y||(y={})),t.applyChanges=S;var T,C=a(a({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function E(t){var n=e.visitEachChild(t,E,C,k,E),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function k(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),o(t)),l}function A(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}function N(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function F(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=m(t,r,n);e.deleteRange(t,{pos:i,end:a})}function w(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?m(n,i,{}):x(n,i,a[o-1],a[o+1])})):F(t,n,i)}t.assignPositionsToNode=E,t.createWriter=A,t.isValidLocationToAddComment=N,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{F(t,r,e.getAncestor(n,272))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 167:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):w(t,n,i,a);break;case 272:case 271:F(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 206:var s=a.parent;205===s.kind&&a!==e.last(s.elements)?F(t,i,a):w(t,n,i,a);break;case 259:!function(t,r,n,i){var a=i.parent;if(298===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void w(t,r,n,i);var o=a.parent;switch(o.kind){case 249:case 248:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 247:F(t,n,a);break;case 242:F(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 166:w(t,n,i,a);break;case 276:var u=a.parent;1===u.elements.length?r(t,i,u):w(t,n,i,a);break;case 274:r(t,i,a);break;case 26:F(t,i,a,{trailingTriviaOption:l.Exclude});break;case 99:F(t,i,a,{leadingTriviaOption:c.Exclude});break;case 262:case 263:case 261:F(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else F(t,r,n.name)}else F(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?w(t,n,i,a):F(t,i,a):F(t,i,a)}}}(T||(T={})),t.deleteNode=F}(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function s(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=u(t);i1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=s,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return s(e.textChanges.ChangeTracker.with(t,(function(e){return l(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(d||(d={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(158)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(158),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(512|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u){return[i(t,u,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l){return i(r,l,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],a,!0);function s(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&function(t,r,n,i,a){var o=a.getTypeChecker(),s=o.getDiagnostics(t,i);return e.some(s,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(o)?o:void 0}function c(r,n,i,a,s,c){var l=r.sourceFile,p=r.program,_=r.cancellationToken,f=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;170!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,137,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function a(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var i=r.getSymbolAtLocation(t.parent.expression);if(!(null==i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=a(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getTypeChecker(),s=function(t,r,n){var i,o,s=a(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(t,r,n){return e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType()}(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);if(null===(o=null===(i=u.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some((function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)})))return e.emptyArray;return n.getExactOptionalProperties(u)}(n.sourceFile,n.span,o);if(s.length){var c=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r){for(var n=0,a=r;n1?(t.delete(r,u),t.insertNodeAfter(r,p,d)):t.replaceNode(r,p,d)}}function _(n){var i=[];return n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(125)],i)})),n.members&&n.members.forEach((function(a,s){var c,u,d,p;if("constructor"===s&&a.valueDeclaration){var _=null===(p=null===(d=null===(u=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===p?void 0:p.parent;_&&e.isBinaryExpression(_)&&e.isObjectLiteralExpression(_.right)&&e.some(_.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var u,d,p=n.valueDeclaration,_=p.parent,f=_.right;if(u=p,d=f,e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))if(!e.some(l,(function(t){var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var g=_.parent&&243===_.parent.kind?_.parent:_;if(t.delete(r,g),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),h=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;if(e.isNumericLiteral(i))return i;if(e.isStringLiteralLike(i))return e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i;return}(p,c,m);h&&v(l,f,h)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,(function(t){(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&v(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(p)){var y=e.factory.createPropertyDeclaration(i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,y,r),void l.push(y)}}else l.push(e.factory.createPropertyDeclaration(i,n.name,void 0,void 0,void 0))}}function v(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,133)),c=e.factory.createMethodDeclaration(s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),void t.push(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=240===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,133)),u=e.factory.createMethodDeclaration(l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(_,u,r),t.push(u)}(t,n,o)}}}}function a(t,r){return e.canHaveModifiers(t)?e.filter(t.modifiers,(function(e){return e.kind===r})):void 0}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(a),u=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")||c(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=T(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=a.get(u);if(d&&d.some((function(e){return e!==s}))){var _=p(o,a);i.set(l,_.identifier),n.set(l,_),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,A(f)),a.add(u,s)}}}else{var g=e.firstOrUndefined(c.parameters),m=(null==g?void 0:g.valueDeclaration)&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=p(m,a);n.set(l,h),a.add(m.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var m=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,h={checker:i,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(m.length){var y=e.skipTrivia(r.text,e.moveRangePastModifiers(a).pos);t.insertModifierAt(r,y,133,{suffix:" "});for(var v=function(n){if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=g(a,a,h,!1);if(_())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),_()))return!0})),_())return{value:void 0}},b=0,x=m;b0)return w;if(h){A=S(o.checker,h,m);if(O(a,o))return x(A,u(a,t,o.checker));var P=b(n,A,void 0);return n&&n.types.push(o.checker.getAwaitedType(h)||h),P}return f();default:return f()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function T(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function C(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=g(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function E(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||A(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function A(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function N(e){return e.hasBeenReferenced=!0,e.identifier}function F(e){return I(e)?P(e):w(e)}function w(e){for(var t=0,r=e.elements;t1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(94),e.factory.createToken(86)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(94),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,h,i,d,_)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,p=!1,m=e.map(d.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return p=!0,h([]);if(e.isRequireCall(u,!0))return p=!0,function(r,n,i,a,o,s){switch(r.kind){case 204:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return h([e.makeImport(void 0,c,n,s)]);case 205:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return h([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d0||u.length>0||p.size>0||_.size>0}};function f(t){var r,n,i=t.fix,a=t.symbolName;switch(i.kind){case 0:c.push(i);break;case 1:u.push(i);break;case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,l=i.addAsTypeOnly,d=String(e.getNodeId(o));if((h=p.get(d))||p.set(d,h={importClauseOrBindingPattern:o,defaultImport:void 0,namedImports:new e.Map}),0===s){var f=null==h?void 0:h.namedImports.get(a);h.namedImports.set(a,y(f,l))}else e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),h.defaultImport={name:a,addAsTypeOnly:y(null===(r=h.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,l)};break;case 3:var g=i.moduleSpecifier,m=(s=i.importKind,i.useRequire),h=function(e,t,r,n){var i=v(e,!0),a=v(e,!1),o=_.get(i),s=_.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};if(1===t&&2===n)return o||(_.set(i,c),c);if(1===n&&(o||s))return o||s;if(s)return s;return _.set(a,c),c}(g,s,m,l=i.addAsTypeOnly);switch(e.Debug.assert(h.useRequire===m,"(Add new) Tried to add an `import` and a `require` for the same module"),s){case 1:e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),h.defaultImport={name:a,addAsTypeOnly:y(null===(n=h.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,l)};break;case 0:f=(h.namedImports||(h.namedImports=new e.Map)).get(a);h.namedImports.set(a,y(f,l));break;case 3:case 2:e.Debug.assert(void 0===h.namespaceLikeImport||h.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),h.namespaceLikeImport={importKind:s,name:a,addAsTypeOnly:l}}break;case 4:break;default:e.Debug.assertNever(i,"fix wasn't never - got kind ".concat(i.kind))}function y(e,t){return Math.max(null!=e?e:0,t)}function v(e,t){return"".concat(t?1:0,"|").concat(e)}}}function l(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return v(_(r,a,o,s,i,t,c,l).fixes,t,i,u,c)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i,a,o,s,c){var l=h(a,o);return e.getExportInfoMap(t,o,a,s,c).search(t.path,i,(function(e){return e===n}),(function(t){if(e.skipAlias(t[0].symbol,l(t[0].isFromPackageJson))===r)return t}))}function p(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function _(t,r,n,a,o,s,c,l,u,d){void 0===u&&(u=g(o.getTypeChecker(),s,o.getCompilerOptions()));var p=o.getTypeChecker(),_=e.flatMap(t,u.getImportsForExportInfo),m=r&&function(t,r,n,i){return e.firstDefined(t,(function(t){var a,o=t.declaration,s=function(t){var r,n,i;switch(t.kind){case 259:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 271:return t.name.text;case 272:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=function(t,r){var n;switch(t.kind){case 259:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 271:return r.getAliasedSymbol(t.symbol);case 272:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}}))}(_,r.symbolName,r.position,p),y=function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&271!==a.kind){if(259===a.kind)return 0!==o&&1!==o||204!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var p=f(r,!1,s,c,n,i);if(!(1===o&&(u||2===p&&d)||0===o&&274===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:p}}}}}))}(_,n,p,o.getCompilerOptions());if(y)return{computedWithoutCacheCount:0,fixes:i(i([],m?[m]:e.emptyArray,!0),[y],!1)};var v=function(t,r,n,i,a,o,s,c,l,u){var d=e.firstDefined(r,(function(t){return function(t,r,n,i,a){var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d){return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:n?4:f(r,!0,l,u,i,a),useRequire:n}}}(t,o,s,n.getTypeChecker(),n.getCompilerOptions())}));return d?{fixes:[d]}:function(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),d=t.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(t,s),_=h(t,s),g=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),m=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,p,c),computedWithoutCache:!1}}:function(t,n){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,d,r,p,c)},y=0,v=e.flatMap(o,(function(t,o){var s=_(t.isFromPackageJson),c=m(t.moduleSymbol,s),l=c.computedWithoutCache,p=c.moduleSpecifiers,h=!!(111551&t.targetFlags),v=f(i,!0,t.symbol,t.targetFlags,s,d);return y+=l?1:0,e.mapDefined(p,(function(i){return g&&e.pathContainsNodeModules(i)?void 0:!h&&u&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:D(r,t.exportKind,d),useRequire:a,addAsTypeOnly:v,exportInfo:t,isReExport:o>0}}))}));return{computedWithoutCacheCount:y,fixes:v}}(n,i,a,o,s,t,c,l,u)}(t,_,o,s,null==r?void 0:r.position,n,a,c,l,d),b=v.fixes,x=v.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===x?0:x,fixes:i(i([],m?[m]:e.emptyArray,!0),b,!0)}}function f(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function g(t,r,n){for(var i,a=0,o=r.imports;a=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 273:return c(r),r;case 274:return c(r.parent),r.parent;case 271:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&276===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(86)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixImportNonExportedMember",n=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];function a(t,r,n){var i,a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)){var o=e.findAncestor(a,e.isImportDeclaration);if(void 0===o)return;var s=e.isStringLiteral(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(void 0===s)return;var c=e.getResolvedModule(t,s,void 0);if(void 0===c)return;var l=n.getSourceFile(c.resolvedFileName);if(void 0===l||e.isSourceFileFromLibrary(n,l))return;var u=null===(i=l.symbol.valueDeclaration)||void 0===i?void 0:i.locals;if(void 0===u)return;var d=u.get(a.escapedText);if(void 0===d)return;var p=function(t){if(void 0===t.valueDeclaration)return e.firstOrUndefined(t.declarations);var r=t.valueDeclaration,n=e.isVariableDeclaration(r)?e.tryCast(r.parent.parent,e.isVariableStatement):void 0;return n&&1===e.length(n.declarationList.declarations)?n:r}(d);if(void 0===p)return;return{exportName:{node:a,isTypeOnly:e.isTypeDeclaration(p)},node:p,moduleSourceFile:l,moduleSpecifier:s}}}function o(t,r,n,i,a){e.length(i)&&(a?c(t,r,n,a,i):l(t,r,n,i))}function s(t,r){return e.findLast(t.statements,(function(t){return e.isExportDeclaration(t)&&(r&&t.isTypeOnly||!t.isTypeOnly)}))}function c(t,r,n,a,o){var s=a.exportClause&&e.isNamedExports(a.exportClause)?a.exportClause.elements:e.factory.createNodeArray([]),c=!(a.isTypeOnly||!r.getCompilerOptions().isolatedModules&&!e.find(s,(function(e){return e.isTypeOnly})));t.replaceNode(n,a,e.factory.updateExportDeclaration(a,a.modifiers,a.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(i(i([],s,!0),u(o,c),!0),s.hasTrailingComma)),a.moduleSpecifier,a.assertClause))}function l(t,r,n,i){t.insertNodeAtEndOfScope(n,n,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(u(i,!!r.getCompilerOptions().isolatedModules)),void 0,void 0))}function u(t,r){return e.factory.createNodeArray(e.map(t,(function(t){return e.factory.createExportSpecifier(r&&t.isTypeOnly,void 0,t.node)})))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var i=n.sourceFile,o=n.span,u=n.program,d=a(i,o.start,u);if(void 0!==d){var p=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){var i=n.exportName,a=n.node,o=n.moduleSourceFile,u=s(o,i.isTypeOnly);u?c(t,r,o,u,[i]):e.canHaveExportModifier(a)?t.insertExportModifier(o,a):l(t,r,o,[i])}(t,u,d)}));return[t.createCodeFixAction(r,p,[e.Diagnostics.Export_0_from_module_1,d.exportName.node.text,d.moduleSpecifier],r,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(r){var c=r.program;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(l){var u=new e.Map;t.eachDiagnostic(r,n,(function(t){var r=a(t.file,t.start,c);if(void 0!==r){var n=r.exportName,i=r.node,o=r.moduleSourceFile;if(void 0===s(o,n.isTypeOnly)&&e.canHaveExportModifier(i))l.insertExportModifier(o,i);else{var d=u.get(o)||{typeOnlyExports:[],exports:[]};n.isTypeOnly?d.typeOnlyExports.push(n):d.exports.push(n),u.set(o,d)}}})),u.forEach((function(e,t){var r=s(t,!0);r&&r.isTypeOnly?(o(l,c,t,e.typeOnlyExports,r),o(l,c,t,e.exports,s(t,!1))):o(l,c,t,i(i([],e.exports,!0),e.typeOnlyExports,!0),r)}))})))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 200===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(!n)return;var i=n.type,a=!1,o=!1;for(;188===i.kind||189===i.kind||194===i.kind;)188===i.kind?a=!0:189===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);if(s===n)return;t.replaceNode(r,n,s)}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&102===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var g=e.findAncestor(a,e.isClassLike),m=g?e.getEffectiveBaseTypeNode(g):void 0,h=m?c.getTypeAtLocation(m):void 0;h&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,d)}));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]);if(u(t,n,c(t,l.label,l.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,512)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 259:case 167:case 206:case 170:case 302:return t.initializer;case 291:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 303:case 169:case 305:case 353:case 346:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function _(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([g(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[m(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,n,i,a,o){var s=e.getTokenAtPosition(t,n),c=s.parent;if(i===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!e.isObjectLiteralExpression(c)||!e.isCallExpression(c.parent))return;var l=e.findIndex(c.parent.arguments,(function(e){return e===c}));if(l<0)return;if(!((f=a.getResolvedSignature(c.parent))&&f.declaration&&f.parameters[l]))return;var u=f.parameters[l].valueDeclaration;if(!(u&&e.isParameter(u)&&e.isIdentifier(u.name)))return;var d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c),a.getParameterType(f,l),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:u.name,properties:d,parentDeclaration:c}}if(e.isMemberName(s)){if(e.isIdentifier(s)&&e.hasInitializer(c)&&c.initializer&&e.isObjectLiteralExpression(c.initializer)){d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c.initializer),a.getTypeAtLocation(s),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:s,properties:d,parentDeclaration:c.initializer}}if(e.isIdentifier(s)&&e.isJsxOpeningLikeElement(s.parent)){var p=function(t,r,n){var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}));a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 95===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(118)),2===i.length&&95===i[0].token&&118===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions:function(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,function(n,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(function(e){return e.filterJSDocTags(n.sourceFile,o,(function(e){return e!==s}))}));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)}(i,s)),e.append(o,function(r,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(!e.length(o.parameters))return;for(var c=r.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,p=l;dl,v=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 261:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||y(c,n,s);case 216:case 217:return y(c,n,s);case 176:return!1;case 175:return!0;default:return e.Debug.failBadSyntaxKind(c)}}(i,r,n,a,o,s,c))if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r)))for(var l=0,u=n.modifiers;li}))}function y(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,h=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles(),D=e.getTokenAtPosition(h,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(T=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,h,D)})),e.Diagnostics.Remove_type_parameters)];var S=p(D);if(S){var T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,S)}));return[t.createCodeFixAction(r,T,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(D)&&(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(h,D,e,b,x,y,v,!1)}))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(h)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,E=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(h)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,h,D.parent)})),E)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(h,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,h,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(139===D.kind){T=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,h,D)}));var A=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;if((N=e.textChanges.ChangeTracker.with(i,(function(e){return m(h,D,e,b,x,y,v,!1)}))).length){A=e.isComputedPropertyName(D.parent)?D.parent:D;k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(h)]))}}var F=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,h,D)}));return F.length&&k.push(t.createCodeFixAction(r,F,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(h)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,y=r.program,v=r.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:g(t,s.code,l,D);break;case a:var S=p(D);S?t.delete(l,S):d(D)&&m(l,D,t,b,x,y,v,!0);break;case i:if(139===D.kind||d(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!h(D.parent.parent,b,x)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;_(l,D)?f(t,l,D.parent):m(l,D,t,b,x,y,v,!0)}break;case o:139===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 244:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 246:case 247:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nz.length)W(F,b.getSignatureFromDeclaration(h[h.length-1]),E,q(S),$(p,F));else e.Debug.assert(h.length===z.length,"Declarations and signatures should match count"),l(function(t,n,i,a,o,s,c,l,p){for(var _=a[0],f=a[0].minArgumentCount,g=!1,m=0,h=a;m=_.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(_))&&(_=y)}var v=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((function(e){return e.name})),x=u(v,b,void 0,f,!1);if(g){var D=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(158)),void 0);x.push(D)}return function(t,r,n,i,a,o,s,c){return e.factory.createMethodDeclaration(t,void 0,r,n?e.factory.createToken(57):void 0,i,a,o,c||d(s))}(c,o,s,void 0,x,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),l,p)}(b,o,n,z,q(S),A&&!!(1&_),E,F,p))}function W(e,t,r,a,s){var u=i(172,o,e,t,s,a,r,A&&!!(1&_),n,c);u&&l(u)}function q(t){return e.getSynthesizedDeepClone(t,!1)}function $(t,r,n){return n?void 0:e.getSynthesizedDeepClone(t,!1)||d(r)}function G(t){return e.getSynthesizedDeepClone(t,!1)}}function i(t,n,i,a,o,s,c,l,u,d){var p=n.program,_=p.getTypeChecker(),f=e.getEmitScriptTarget(p.getCompilerOptions()),g=524545|(0===i?268435456:0),h=_.signatureToSignatureDeclaration(a,t,u,g,r(n));if(h){var v=h.typeParameters,b=h.parameters,x=h.type;if(d){if(v){var D=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;n&&((r=m(n,f))&&(n=r.typeNode,y(d,r.symbols)));i&&((r=m(i,f))&&(i=r.typeNode,y(d,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));v!==D&&(v=e.setTextRange(e.factory.createNodeArray(D,v.hasTrailingComma),v))}var S=e.sameMap(b,(function(t){var r=m(t.type,f),n=t.type;return r&&(n=r.typeNode,y(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var T=m(x,f);T&&(x=T.typeNode,y(d,T.symbols))}}var C=l?e.factory.createToken(57):void 0,E=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,x,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,c,E,null!=s?s:e.factory.createIdentifier(""),C,v,b,x,o):e.isFunctionDeclaration(h)?e.factory.updateFunctionDeclaration(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):void 0}}function a(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function o(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=m(c,a);l&&(y(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function s(e){return e.isUnionOrIntersection()?e.types.some(s):262144&e.flags}function c(t,r,n,i,c,u,d){for(var p,_=[],f=new e.Map,g=0;g=i?e.factory.createToken(57):void 0,a?void 0:(null==n?void 0:n[c])||e.factory.createKeywordTypeNode(158),void 0);o.push(d)}return o}function d(t){return p(e.Diagnostics.Method_not_implemented.message,t)}function p(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function _(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=g(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(101===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(203===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function o(t,r,n){var a,o,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(void 0,e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(147):void 0,d,void 0,s.questionToken,s.type,void 0),_=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[p],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(a=c,o=_,e.factory.createTypeAliasDeclaration(a.modifiers,a.name,a.typeParameters,o)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 134===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&104!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];function i(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r));if(void 0!==a){var o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,86,t);if(void 0!==s)return{symbol:a,token:s}}}}function a(t,r,n){t.replaceNode(r,n,e.factory.createToken(120))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.program,l=i(o,s.start,c);if(void 0!==l){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l.token)}));return[t.createCodeFixActionMaybeFixAll(r,u,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(r){var o=r.program,s=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(c){t.eachDiagnostic(r,n,(function(t){var r=i(t.file,t.start,o);if(r&&e.addToSeen(s,e.getSymbolId(r.symbol)))return a(c,t.file,r.token)}))})))},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(115)]).types[0]);p&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!g||3&g.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,l.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!(s&&(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=i.getTypeChecker(),l=function(t,r){var n=t.parent;if(e.isSourceFile(n))return n.symbol;var i=n.parent.symbol;if(i.valueDeclaration&&e.isExternalModuleAugmentation(i.valueDeclaration))return r.getMergedSymbol(i);return i}(s,c),u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?1025:0),d=!!(1024&u);if(!(1&u)||!d&&l.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var p=function(t){return e.isIdentifier(t)&&c.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 261:case 262:case 264:case 266:case 265:case 267:if(!(g=s).name)return;return p(g.name)||{exportNode:g,exportName:g.name,wasDefault:d,exportingModuleSymbol:l};case 242:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!d,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:d,exportingModuleSymbol:l};case 277:var g;if((g=s).isExportEquals)return;return p(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:d,exportingModuleSymbol:l};default:return}}function s(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},n),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,89),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,94),"Should find an export keyword in modifier list");switch(o.kind){case 261:case 262:case 264:n.insertNodeAfter(t,d,e.factory.createToken(89));break;case 242:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,o.text,a,(function(t){if(o!==t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 209:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 276:case 281:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 273:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref");o=s(i,r.text);var l=c.namedBindings;if(l)if(274===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;case 203:var p=a;n.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,p.assertions,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 209:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 276:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 281:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(r,t,n)}}))}(r,n,i,a)}(r.file,r.program,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(o,o.parent,n);if(!(l&&c>l.getStart())){var u=o.importClause;return u?u.namedBindings?274===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:s(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&function(e,t){var r=t.resolveExternalModuleName(e);if(!r)return!1;var n=t.resolveExternalModuleSymbol(r);return r!==n}(r.parent.moduleSpecifier,t.getTypeChecker())}function c(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function l(t,r,n,i,a){void 0===a&&(a=s(r,i.parent));var o=r.getTypeChecker(),c=i.parent.parent,l=c.moduleSpecifier,d=new e.Set;i.elements.forEach((function(e){var t=o.getSymbolAtLocation(e.name);t&&d.add(t)}));var p=l&&e.isStringLiteral(l)?e.codefix.moduleSpecifierToValidIdentifier(l.text,99):"module";for(var _=i.elements.some((function(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(t){var r=o.resolveName(p,t,67108863,!0);return!!r&&(!d.has(r)||e.isExportSpecifier(t.parent))}))}))?e.getUniqueName(p,t):p,f=new e.Set,g=function(r){var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(a){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(r):n.replaceNode(t,a,o)}))},m=0,h=i.elements;m=d.pos?_.getEnd():d.getEnd()),g=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(d):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(d,f),m=g&&s(g)?function(t){if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,h):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i){var a=i.finalExpression,o=i.occurrences,s=i.expression,c=o[o.length-1],l=_(r,a,o);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(s)?n.replaceNodeRange(t,c,a,l):e.isConditionalExpression(s)&&n.replaceNode(t,s,e.factory.createBinaryExpression(l,e.factory.createToken(60),s.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(o){var s=c(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s))return[{name:r,description:n,actions:[i]}];if(o.preferences.provideRefactorNotApplicableReason)return[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:s.error})]}];return e.emptyArray}})}(t.convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(){var r="Convert overload list to single signature",n=e.Diagnostics.Convert_overload_list_to_single_signature.message,i={name:r,description:n,kind:"refactor.rewrite.function.overloadList"};function a(e){switch(e.kind){case 171:case 172:case 177:case 174:case 178:case 261:return!0}return!1}function o(t,r,n){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,a);if(o&&!(e.isFunctionLikeDeclaration(o)&&o.body&&e.rangeContainsPosition(o.body,r))){var s=n.getTypeChecker(),c=o.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&a(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.modifiers||!e.isIdentifier(t.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===_})))return d}}}}}}}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=o(r,n,i);if(!a)return;var s=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 171:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 172:l=e.factory.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 177:l=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 174:l=e.factory.updateConstructorDeclaration(c,c.modifiers,d(a),c.body);break;case 178:l=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 261:l=e.factory.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l===c)return;var u=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}));return{renameFilename:void 0,renameLocation:void 0,edits:u};function d(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,p)))])}function p(t){var r=e.map(t.parameters,_);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function _(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(132)),t),n=t.symbol&&t.symbol.getDocumentationComment(s);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var a=t.file,s=t.startPosition,c=t.program;return o(a,s,c)?[{name:r,description:n,actions:[i]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var n=r.kind,i=_(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,n)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:A(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:A(i.errors)})]}),s}var d=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 174:return"constructor";case 216:case 261:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 217:return"arrow function";case 172:return"method '".concat(t.name.getText(),"'");case 175:return"'get ".concat(t.name.getText(),"'");case 176:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 262===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 268===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}));return c}(o,r);if(void 0===d)return e.emptyArray;for(var p,f,g=[],h=new e.Map,y=[],v=new e.Map,b=0,x=0,D=d;x0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,p).slice();if(s&&!a&&e.isStatement(t)){var d=v(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0};function p(t){if(!c&&e.isReturnStatement(t)&&s){var a=v(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,p)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var l=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var u=i.get(e.getNodeId(t).toString()),d=u?e.getSynthesizedDeepClone(u):e.visitEachChild(t,p,e.nullTransformationContext);return c=l,d}}(t,a,l,p,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var M=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var L=D?[]:[e.factory.createModifier(122)];o.facts&i.InStaticRegion&&L.push(e.factory.createModifier(125)),o.facts&i.IsAsyncFunction&&L.push(e.factory.createModifier(133)),w=e.factory.createMethodDeclaration(L.length?L:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,void 0,A,C,c,I)}else M&&C.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(o.thisNode),r,1),void 0)),w=e.factory.createFunctionDeclaration(o.facts&i.IsAsyncFunction?[e.factory.createToken(133)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,A,C,c,I);var R=e.textChanges.ChangeTracker.fromContext(s),B=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((b(o.range)?e.last(o.range):o.range).end,r);B?R.insertNodeBefore(s.file,B,w,!0):R.insertNodeAtEndOfScope(s.file,r,w);g.writeFixes(R);var j=[],J=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x);M&&E.unshift(e.factory.createIdentifier("this"));var U=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(J,"call"):J,N,E);o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U));o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U));S(t)&&(U=e.factory.createJsxExpression(void 0,U));if(a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var z=a[0];j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),U)],z.parent.flags)))}else{for(var V=[],K=[],W=a[0].parent.flags,q=!1,$=0,G=a;$0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,b,y,!0),m.replaceNode(o.file,t,v)}else{var x=e.factory.createVariableDeclaration(d,void 0,_,f),T=function(t,r){var n;for(;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T){m.insertNodeBefore(o.file,T,x);v=e.factory.createIdentifier(d);m.replaceNode(o.file,t,v)}else if(243===t.parent.kind&&r===e.findAncestor(t,g)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,C)}else{C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)g(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(D(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===b.pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,b,C,!1),243===t.parent.kind)m.delete(o.file,t.parent);else{v=e.factory.createIdentifier(d);S(t)&&(v=e.factory.createJsxExpression(void 0,v)),m.replaceNode(o.file,t,v)}}}var E=m.getChanges(),k=t.getSourceFile().fileName,A=e.getRenameLocation(E,k,d,!0);return{renameFilename:k,renameLocation:A,edits:E};function N(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis,s=a;break;case 217:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 262:case 261:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 230:case 216:case 172:case 174:case 175:case 176:return!1}var p=u;switch(a.kind){case 244:u&=-5;break;case 257:u=0;break;case 240:a.parent&&257===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 296:case 295:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 195:case 109:g|=i.UsesThis,s=a;break;case 255:var _=a.label;(l||(l=[])).push(_.escapedText),e.forEachChild(a,t),l.pop();break;case 251:case 250:(_=a.label)?e.contains(l,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(251===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 222:g|=i.IsAsyncFunction;break;case 228:g|=i.IsGenerator;break;case 252:4&u?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=p}(t),g&i.UsesThis){var d=e.getThisContainer(t,!1);(261===d.kind||172===d.kind&&208===d.parent.kind||216===d.kind)&&(g|=i.UsesThisInFunction)}return o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:T(t)?t:void 0}function g(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var a=r.file,o=function(t){var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(167===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),g(r)&&(o.push(r),311===r.kind))return o}(t),s=function(t,r){return b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,d=new e.Map,p=[],_=[],f=[],g=[],m=[],h=new e.Map,y=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,n.uselessConstantType));for(var T=0,C=r;T0){for(var P=new e.Map,I=0,O=F;void 0!==O&&I0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;g[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&f[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(p[a].usages.forEach((function(t){2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===y.length,"No variable declarations expected if something was extracted"),u&&!b(t.range)){var d=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[a].push(d),g[a].push(d)}else if(c&&a>0){d=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[a].push(d),g[a].push(d)}else if(l){d=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity);f[a].push(d),g[a].push(d)}},U=0;U=l)return m;if(A.set(m,l),h){for(var y=0,v=p;y=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();h.has(a)||(y.push(i),h.set(a,!0))}else l=l||i}e.forEachChild(r,$)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function H(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=H(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,s,a,r.program.getTypeChecker(),r.cancellationToken);return{scopes:o,readsAndWrites:c}}function h(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;nn.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)=n&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 261:return m(t)&&g(t,r);case 172:if(e.isObjectLiteralExpression(t.parent)){var a=s(t.name,r);return 1===(null===(i=null==a?void 0:a.declarations)||void 0===i?void 0:i.length)&&g(t,r)}return g(t,r);case 174:return e.isClassDeclaration(t.parent)?m(t.parent)&&g(t,r):h(t.parent.parent)&&g(t,r);case 216:case 217:return h(t.parent)}return!1}(o,i)&&e.rangeContainsRange(o,a))||o.body&&e.rangeContainsRange(o.body,a)?void 0:o}function f(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function g(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,89)}function h(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function v(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function b(t,r){var n=v(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=D(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(t,s),s}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(D(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function x(t,r,n){var i,a,o,s=r.getTypeChecker(),c=v(t.parameters),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,D(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer);return r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,g),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,u,void 0,d,o);if(y(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function g(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,D(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c}function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function D(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(t,n){e.Debug.assert(n===r,"Unexpected action name");var a=t.file,o=t.startPosition,g=t.program,m=t.cancellationToken,h=t.host,y=_(a,o,g.getTypeChecker());if(!y||!m)return;var v=function(t,r,n){var a=function(t){switch(t.kind){case 261:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,89),"Nameless function declaration should be a default export")];case 172:return[t.name];case 174:var r=e.Debug.checkDefined(e.findChildOfKind(t,136,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 230===t.parent.kind?[t.parent.parent.name,r]:[r];case 217:return[t.parent.name];case 216:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),o=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 262:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,89),"Nameless class declaration should be a default export")];case 230:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],_=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),g=r.getTypeChecker(),m=e.flatMap(_,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})),h=y(m);e.every(h.declarations,(function(t){return e.contains(_,t)}))||(h.valid=!1);return h;function y(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},_=e.map(a,v),m=e.map(o,v),h=e.isConstructorDeclaration(t),y=e.map(a,(function(e){return s(e,g)})),b=0,x=r;b0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}};function p(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function _(t,r){for(var n=[],i="",a="";t1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(o,a);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,a,1);return c?{declaration:a,returnTypeNode:c}:void 0}}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n)){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),l=e.isArrowFunction(o)&&void 0===c,void((u=l?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}}return},getAvailableActions:function(s){var c=o(s);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c))return[{name:r,description:n,actions:[i]}];if(s.preferences.provideRefactorNotApplicableReason)return[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:c.error})]}];return e.emptyArray}})}(t.inferFunctionReturnType||(t.inferFunctionReturnType={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new u(79,n,i):80===t?new d(80,n,i):new c(t,n,i);return o.parent=a,o.flags=1124462592&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;var o=i?i.fileName:r.getSourceFile().fileName;o&&8===e.getScriptKindFromFileName(o)&&e.scanner.setEtsContext(!0);e.scanner.setText((i||r.getSourceFile()).text);var s=r.pos,c=function(e){n(a,s,e.pos,r),a.push(e),s=e.end},l=function(e){n(a,s,e.pos,r),a.push(function(e,r){var i=t(354,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o353}));return n.kind<164?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<164?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){if(!a.virtual)for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 261:case 216:case 172:case 171:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 262:case 230:case 263:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 175:case 176:case 185:r(a),e.forEachChild(a,i);break;case 167:if(!e.hasSyntacticModifier(a,16476))break;case 259:case 206:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 305:case 170:case 169:r(a);break;case 278:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 272:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(274===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 225:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),v=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function b(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!x(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[x(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function x(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D(){return{target:1,jsx:1}}e.toEditorSettings=b,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=D,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,p=e.getScriptKind(t,this.host),_=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=C(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},_,!0,p,this.host.getCompilationSettings());else if(this.currentFileVersion!==_){var f=u.getChangeRange(this.currentFileScriptSnapshot);d=E(this.currentSourceFile,u,_,f,void 0,this.host.getCompilationSettings())}return d&&(this.currentFileVersion=_,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function T(e,t,r){e.version=r,e.scriptSnapshot=t}function C(t,r,n,i,a,o,s){var c=e.createSourceFile(t,e.getSnapshotText(r),n,a,o,s);return T(c,r,i),c}function E(t,r,n,i,a,o){if(i&&n!==t.version){var s=void 0,c=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)s=c&&l?c+l:c||l;else{var u=r.getText(i.span.start,i.span.start+i.newLength);s=c&&l?c+u+l:c?c+u:u+l}var d=e.updateSourceFile(t,s,i,a,o);return T(d,r,n),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}var p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return C(t.fileName,r,p,n,!0,t.scriptKind,o)}e.createLanguageServiceSourceFile=C,e.updateLanguageServiceSourceFile=E;var k={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},A=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),N=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=N;var F=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],w=i(i([],F,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function P(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(165===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||208!==t.parent.parent.kind&&292!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var o,s,c;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),c=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var l,u,d=new S(t),p=0,_=t.getCancellationToken?new A(t.getCancellationToken()):k,f=t.getCurrentDirectory();function g(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(s=t.getLocalizedDiagnosticMessages)||void 0===s?void 0:s.bind(t));var m=e.hostUsesCaseSensitiveFileNames(t),h=e.createGetCanonicalFileName(m),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return m},getCurrentDirectory:function(){return f},getProgram:D,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:g});function v(e){var t=l.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=l.getSourceFiles().map((function(e){return e.fileName})),r}return t}function x(){var n,a,o;if(e.Debug.assert(c!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var s=t.getProjectVersion();if(s){if(u===s&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;u=s}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;p!==d&&(g("TypeRoots version has changed; provide new program"),l=void 0,p=d);var v,b=t.getScriptFileNames().slice(),x=t.getCompilationSettings()||{target:1,jsx:1},D=t.hasInvalidatedResolutions||e.returnFalse,S=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(a=t.getProjectReferences)||void 0===a?void 0:a.call(t),C={getSourceFile:I,getSourceFileByPath:O,getCancellationToken:function(){return _},getCanonicalFileName:h,useCaseSensitiveFileNames:function(){return m},getNewLine:function(){return e.getNewLineCharacter(x,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile&&t.readFile(e)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:P,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&P(r.sourceFile,n)},hasInvalidatedResolutions:D,hasChangedAutomaticTypeDirectiveNames:S,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w,getJsDocNodeCheckedConfig:e.maybeBind(t,t.getJsDocNodeCheckedConfig),getJsDocNodeConditionCheckedResult:e.maybeBind(t,t.getJsDocNodeConditionCheckedResult),getFileCheckedModuleInfo:e.maybeBind(t,t.getFileCheckedModuleInfo)},E=C.getSourceFile,k=e.changeCompilerHostLikeToUseCache(C,(function(t){return e.toPath(t,f,h)}),(function(){for(var e=[],t=0;t0?E-m.length:0;v=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:E-v}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&B(n)}function j(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:D(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i,triggerReason:o,kind:s}}E.forEach((function(e,t){return E.set(e.toString(),Number(t))}));var J={dispose:function(){if(l){var n=r.getKeyForCompilationSettings(l.getCompilerOptions());e.forEach(l.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat)})),l=void 0}t=void 0},cleanupSemanticCache:function(){l=void 0},getSyntacticDiagnostics:function(e){return x(),l.getSyntacticDiagnostics(v(e),_).slice()},getSemanticDiagnostics:function(t){x();var r=v(t),n=l.getSemanticDiagnostics(r,_);if(!e.getEmitDeclarations(l.getCompilerOptions()))return n.slice();var a=l.getDeclarationDiagnostics(r,_);return i(i([],n,!0),a,!0)},getSuggestionDiagnostics:function(t){return x(),e.computeSuggestionDiagnostics(v(t),l,_)},getCompilerOptionsDiagnostics:function(){return x(),i(i([],l.getOptionsDiagnostics(_),!0),l.getGlobalDiagnostics(_),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return x(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(l,_,v(t),r):e.getSemanticClassifications(l.getTypeChecker(),_,v(t),l.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return x(),"original"===(n||"original")?e.getEncodedSemanticClassifications(l.getTypeChecker(),_,v(t),l.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(l,_,v(t),r)},getCompletionsAtPosition:function(r,n,i,o){void 0===i&&(i=e.emptyOptions);var s=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return x(),e.Completions.getCompletionsAtPosition(t,l,g,v(r),n,s,i.triggerCharacter,i.triggerKind,_,o&&e.formatting.getFormatContext(o,t))},getCompletionEntryDetails:function(r,n,i,a,o,s,c){return void 0===s&&(s=e.emptyOptions),x(),e.Completions.getCompletionEntryDetails(l,g,v(r),n,{name:i,source:o,data:c},t,a&&e.formatting.getFormatContext(a,t),s,_)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),x(),e.Completions.getCompletionEntrySymbol(l,g,v(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;x();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(l,a,r,i,_)},getQuickInfoAtPosition:function(t,r){x();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=l.getTypeChecker(),o=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;if(e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos)return t.parent;if(e.isImportMeta(t.parent)&&t.parent.name===t)return t.parent;return t}(i),s=function(t,r){var n=P(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 209:case 164:return!e.isInComment(t,n);case 109:case 195:case 107:case 200:return!0;case 235:return e.isImportMeta(r);default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(_,(function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(o))})),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),d=u.symbolKind,p=u.displayParts,f=u.documentation,g=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r,n,i){return x(),e.GoToDefinition.getDefinitionAtPosition(l,v(t),r,n,i)},getDefinitionAndBoundSpan:function(t,r){return x(),e.GoToDefinition.getDefinitionAndBoundSpan(l,v(t),r)},getImplementationAtPosition:function(t,r){return x(),e.FindAllReferences.getImplementationsAtPosition(l,_,l.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return x(),e.GoToDefinition.getTypeDefinitionAtPosition(l.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return x(),C(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return x(),e.FindAllReferences.findReferencedSymbols(l,_,l.getSourceFiles(),v(t),r)},getFileReferences:function(t){return x(),e.FindAllReferences.Core.getReferencesForFileName(t,l,l.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(T(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 209:case 164:case 10:case 96:case 111:case 105:case 107:case 109:case 195:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(267!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=d.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),x();var a=n?[v(n)]:l.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,l.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return x(),e.Rename.getRenameInfo(l,v(t),r,n||{})},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,d.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){x();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return C(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(d.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(d.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=d.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){x();var n=v(t);_.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/"))&&!function(t){return e.stringContains(t,"/oh_modules/")}(n.fileName))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")",i=t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source;return new RegExp(i,"gim")}(),l=void 0;l=c.exec(o);){_.throwIfCancellationRequested();e.Debug.assert(l.length===r.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var g=l[2];s.push({descriptor:p,message:g,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?E.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=b(n),o=d.getCurrentSourceFile(t);g("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return g("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=d.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(d.getCurrentSourceFile(r),e.formatting.getFormatContext(b(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=d.getCurrentSourceFile(r),s=e.formatting.getFormatContext(b(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),d.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=d.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&R(a))return{newText:"")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&B(o)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),x();var c=v(r),u=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:c,span:u,program:l,host:t,cancellationToken:_,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:l,host:t,cancellationToken:_,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return N(e)}))):N(n)},organizeImports:function(r,n,i){var a;void 0===i&&(i=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(n,t),c=null!==(a=r.mode)&&void 0!==a?a:r.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(o,s,t,l,i,c)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(D(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){x();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(l,a,!!n,_,o,i)},getNonBoundSourceFile:function(e){return d.getCurrentSourceFile(e)},getProgram:D,getCurrentProgram:function(){return l},getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},updateIsDefinitionOfReferencedSymbols:function(r,n){var i=l.getTypeChecker(),a=function(){for(var a=0,o=r;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return d(n)}function o(r,n){var i=e.canHaveDecorators(r)?e.findLast(r.modifiers,e.isDecorator):void 0,a=i?e.skipTrivia(t.text,i.end):r.getStart(t);return e.createTextSpanFromBounds(a,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 242:return h(r.declarationList.declarations[0]);case 259:case 170:case 169:return h(r);case 167:return function t(r){if(e.isBindingPattern(r.name))return x(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 261:case 172:case 171:case 175:case 176:case 174:case 216:case 217:return function(e){if(!e.body)return;if(y(e))return o(e);return d(e.body)}(r);case 240:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(y(e.parent))return c(e.parent,t);return d(t)}(r);case 268:return v(r);case 298:return v(r.block);case 243:return o(r.expression);case 252:return o(r.getChildAt(0),r.expression);case 246:return s(r,r.expression);case 245:return d(r.statement);case 258:return o(r.getChildAt(0));case 244:return s(r,r.expression);case 255:return d(r.statement);case 251:case 250:return o(r.getChildAt(0),r.label);case 247:return function(e){if(e.initializer)return b(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(r);case 248:return s(r,r.expression);case 249:return b(r);case 254:return s(r,r.expression);case 295:case 296:return d(r.statements[0]);case 257:return v(r.tryBlock);case 256:case 277:return o(r,r.expression);case 271:return o(r,r.moduleReference);case 272:case 278:return o(r,r.moduleSpecifier);case 267:if(1!==e.getModuleInstanceState(r))return;case 262:case 266:case 305:case 206:return o(r);case 253:return d(r.statement);case 168:return function(r,n,i){if(r){var a=r.indexOf(n);if(a>=0){for(var s=a,c=a+1;s>0&&i(r[s-1]);)s--;for(;c0?d(t.declarations[0]):void 0}function x(t){var r=e.forEach(t.elements,(function(e){return 231!==e.kind?e:void 0}));return r?d(r):206===t.parent.kind?o(t.parent):m(t.parent)}function D(t){e.Debug.assert(205!==t.kind&&204!==t.kind);var r=207===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 231!==e.kind?e:void 0}));return n?d(n):o(225===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(d||(d={}));var d,p=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function s(e,t,r,n){return u(e,t,!0,r,n)}function u(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=_;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p&&p.CollectGarbage&&(p.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return _(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getCompletionsAtPosition(e,t,r,n)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.uncommentSelection(e,t)}))},r}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return l(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(311===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})}(d||(d={})),function(e){e.isTypeAssertion=e.Debug.deprecate((function(e){return 214===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(d||(d={})),function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(d||(d={})),function(e){function t(t){var r=t.createConstructorTypeNode,n=t.updateConstructorTypeNode;t.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(e){return 4===e.length},1:function(e){return 3===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(e){return 5===e.length},1:function(e){return 4===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){function t(t){var r=t.createImportTypeNode,n=t.updateImportTypeNode;t.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(e,t,n,i,a){return r(e,t,n,i,a)},1:function(e,t,n,i){return r(e,void 0,t,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),t.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(e,t,r,i,a,o){return n(e,t,r,i,a,o)},1:function(e,t,r,i,a){return n(e,t,e.assertions,r,i,a)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){function t(t){var r=t.createTypeParameterDeclaration,n=t.updateTypeParameterDeclaration;t.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(t){var r=t[0];return void 0===r||e.isArray(r)},1:function(t){var r=t[0];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(t){var r=t[1];return void 0===r||e.isArray(r)},1:function(t){var r=t[1];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){var t={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function i(i){var a=i.createParameterDeclaration,o=i.updateParameterDeclaration,s=i.createPropertyDeclaration,c=i.updatePropertyDeclaration,l=i.createMethodDeclaration,u=i.updateMethodDeclaration,d=i.createConstructorDeclaration,p=i.updateConstructorDeclaration,_=i.createGetAccessorDeclaration,f=i.updateGetAccessorDeclaration,g=i.createSetAccessorDeclaration,m=i.updateSetAccessorDeclaration,h=i.createIndexSignature,y=i.updateIndexSignature,v=i.createClassStaticBlockDeclaration,b=i.updateClassStaticBlockDeclaration,x=i.createClassExpression,D=i.updateClassExpression,S=i.createFunctionDeclaration,T=i.updateFunctionDeclaration,C=i.createClassDeclaration,E=i.updateClassDeclaration,k=i.createInterfaceDeclaration,A=i.updateInterfaceDeclaration,N=i.createTypeAliasDeclaration,F=i.updateTypeAliasDeclaration,w=i.createEnumDeclaration,P=i.updateEnumDeclaration,I=i.createModuleDeclaration,O=i.updateModuleDeclaration,M=i.createImportEqualsDeclaration,L=i.updateImportEqualsDeclaration,R=i.createImportDeclaration,B=i.updateImportDeclaration,j=i.createExportAssignment,J=i.updateExportAssignment,U=i.createExportDeclaration,z=i.updateExportDeclaration;i.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(e,t,r,n,i,o){return a(e,t,r,n,i,o)},1:function(t,r,n,i,o,s,c){return a(e.concatenate(t,r),n,i,o,s,c)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(e,t,r,n,i,a,s){return o(e,t,r,n,i,a,s)},1:function(t,r,n,i,a,s,c,l){return o(t,e.concatenate(r,n),i,a,s,c,l)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(e,t,r,n,i){return s(e,t,r,n,i)},1:function(t,r,n,i,a,o){return s(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(e,t,r,n,i,a){return c(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return c(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return l(e,t,r,n,i,a,o,s)},1:function(t,r,n,i,a,o,s,c,u){return l(e.concatenate(t,r),n,i,a,o,s,c,u)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s,c){return u(e,t,r,n,i,a,o,s,c)},1:function(t,r,n,i,a,o,s,c,l,d){return u(t,e.concatenate(r,n),i,a,o,s,c,l,d)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return void 0===t[9]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(e,t,r){return d(e,t,r)},1:function(e,t,r,n){return d(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return!(void 0!==t[3]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(e,t,r,n){return p(e,t,r,n)},1:function(e,t,r,n,i){return p(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return!(void 0!==t[4]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(e,t,r,n,i){return _(e,t,r,n,i)},1:function(t,r,n,i,a,o){return _(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(e,t,r,n,i,a){return f(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return f(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(e,t,r,n){return g(e,t,r,n)},1:function(t,r,n,i,a){return g(e.concatenate(t,r),n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(e,t,r,n,i){return m(e,t,r,n,i)},1:function(t,r,n,i,a,o){return m(t,e.concatenate(r,n),i,a,o)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(e,t,r){return h(e,t,r)},1:function(e,t,r,n){return h(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(e,t,r,n){return y(e,t,r,n)},1:function(e,t,r,n,i){return y(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(e){return v(e)},1:function(e,t,r){return v(r)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[0],n=t[1],i=t[2];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(e,t){return b(e,t)},1:function(e,t,r,n){return b(e,n)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(e,t,r,n,i){return x(e,t,r,n,i)},1:function(t,r,n,i,a,o){return x(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(e,t,r,n,i,a){return D(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return D(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o){return S(e,t,r,n,i,a,o)},1:function(e,t,r,n,i,a,o,s){return S(t,r,n,i,a,o,s)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return T(e,t,r,n,i,a,o,s)},1:function(e,t,r,n,i,a,o,s,c){return T(e,r,n,i,a,o,s,c)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(e,t,r,n,i){return C(e,t,r,n,i)},1:function(t,r,n,i,a,o){return C(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(){return!0}}).deprecate({1:t}).finish(),i.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(e,t,r,n,i,a){return E(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return E(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:t}).finish(),i.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(e,t,r,n,i){return k(e,t,r,n,i)},1:function(e,t,r,n,i,a){return k(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(e,t,r,n,i,a){return A(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return A(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(e,t,r,n){return N(e,t,r,n)},1:function(e,t,r,n,i){return N(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(e,t,r,n,i){return F(e,t,r,n,i)},1:function(e,t,r,n,i,a){return F(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(e,t,r){return w(e,t,r)},1:function(e,t,r,n){return w(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(e,t,r,n){return P(e,t,r,n)},1:function(e,t,r,n,i){return P(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(e,t,r,n){return I(e,t,r,n)},1:function(e,t,r,n,i){return I(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)&&(void 0===i||e.isModuleBody(i))&&(void 0===a||"number"==typeof a)},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||"object"==typeof a)&&(void 0===o||"number"==typeof o)}}).deprecate({1:r}).finish(),i.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(e,t,r,n){return O(e,t,r,n)},1:function(e,t,r,n,i){return O(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isModuleBody(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||e.isModuleBody(a))}}).deprecate({1:r}).finish(),i.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(e,t,r,n){return M(e,t,r,n)},1:function(e,t,r,n,i){return M(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(e,t,r,n,i){return L(e,t,r,n,i)},1:function(e,t,r,n,i,a){return L(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(e,t,r,n){return R(e,t,r,n)},1:function(e,t,r,n,i){return R(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&void 0!==i&&e.isExpression(i)&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(e,t,r,n,i){return B(e,t,r,n,i)},1:function(e,t,r,n,i,a){return B(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isExpression(i))&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(e,t,r){return j(e,t,r)},1:function(e,t,r,n){return j(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"object"==typeof i},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&void 0!==a&&e.isExpression(a)}}).deprecate({1:r}).finish(),i.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(e,t,r){return J(e,t,r)},1:function(e,t,r,n){return J(e,r,n)}}).bind({0:function(t){var r=t[1],n=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isExpression(i)}}).deprecate({1:r}).finish(),i.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(e,t,r,n,i){return U(e,t,r,n,i)},1:function(e,t,r,n,i,a){return U(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish(),i.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(e,t,r,n,i,a){return z(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return z(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish()}var a=e.createNodeFactory;e.createNodeFactory=function(e,t){var r=a(e,t);return i(r),r},i(e.factory)}(d||(d={})),function(e){e.cookBookMsg=[],e.cookBookTag=[];for(var t=0;t<=151;t++)e.cookBookMsg[t]="";e.cookBookTag[1]="Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)",e.cookBookTag[2]='"Symbol()" API is not supported (arkts-no-symbol)',e.cookBookTag[3]='Private "#" identifiers are not supported (arkts-no-private-identifiers)',e.cookBookTag[4]="Use unique names for types and namespaces. (arkts-unique-names)",e.cookBookTag[5]='Use "let" instead of "var" (arkts-no-var)',e.cookBookTag[6]="",e.cookBookTag[7]="",e.cookBookTag[8]='Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)',e.cookBookTag[9]="",e.cookBookTag[10]="",e.cookBookTag[11]="",e.cookBookTag[12]="",e.cookBookTag[13]="",e.cookBookTag[14]='Use "class" instead of a type with call signature (arkts-no-call-signatures)',e.cookBookTag[15]='Use "class" instead of a type with constructor signature (arkts-no-ctor-signatures-type)',e.cookBookTag[16]="Only one static block is supported (arkts-no-multiple-static-blocks)",e.cookBookTag[17]="Indexed signatures are not supported (arkts-no-indexed-signatures)",e.cookBookTag[18]="",e.cookBookTag[19]="Use inheritance instead of intersection types (arkts-no-intersection-types)",e.cookBookTag[20]="",e.cookBookTag[21]='Type notation using "this" is not supported (arkts-no-typing-with-this)',e.cookBookTag[22]="Conditional types are not supported (arkts-no-conditional-types)",e.cookBookTag[23]="",e.cookBookTag[24]="",e.cookBookTag[25]='Declaring fields in "constructor" is not supported (arkts-no-ctor-prop-decls)',e.cookBookTag[26]="",e.cookBookTag[27]="Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)",e.cookBookTag[28]="Indexed access types are not supported (arkts-no-aliases-by-index)",e.cookBookTag[29]="Indexed access is not supported for fields (arkts-no-props-by-index)",e.cookBookTag[30]="Structural typing is not supported (arkts-no-structural-typing)",e.cookBookTag[31]="",e.cookBookTag[32]="",e.cookBookTag[33]="",e.cookBookTag[34]="Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)",e.cookBookTag[35]="",e.cookBookTag[36]="",e.cookBookTag[37]="RegExp literals are not supported (arkts-no-regexp-literals)",e.cookBookTag[38]="Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",e.cookBookTag[39]="",e.cookBookTag[40]="Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",e.cookBookTag[41]="",e.cookBookTag[42]="",e.cookBookTag[43]="Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)",e.cookBookTag[44]="",e.cookBookTag[45]="",e.cookBookTag[46]="Use arrow functions instead of function expressions (arkts-no-func-expressions)",e.cookBookTag[47]="",e.cookBookTag[48]="",e.cookBookTag[49]="Use generic functions instead of generic arrow functions (arkts-no-generic-lambdas)",e.cookBookTag[50]="Class literals are not supported (arkts-no-class-literals)",e.cookBookTag[51]='Classes cannot be specified in "implements" clause (arkts-implements-only-iface)',e.cookBookTag[52]="Reassigning object methods is not supported (arkts-no-method-reassignment)",e.cookBookTag[53]='Only "as T" syntax is supported for type casts (arkts-as-casts)',e.cookBookTag[54]="JSX expressions are not supported (arkts-no-jsx)",e.cookBookTag[55]='Unary operators "+", "-" and "~" work only on numbers (arkts-no-polymorphic-unops)',e.cookBookTag[56]="",e.cookBookTag[57]="",e.cookBookTag[58]="",e.cookBookTag[59]='"delete" operator is not supported (arkts-no-delete)',e.cookBookTag[60]='"typeof" operator is allowed only in expression contexts (arkts-no-type-query)',e.cookBookTag[61]="",e.cookBookTag[62]="",e.cookBookTag[63]="",e.cookBookTag[64]="",e.cookBookTag[65]='"instanceof" operator is partially supported (arkts-instanceof-ref-types)',e.cookBookTag[66]='"in" operator is not supported (arkts-no-in)',e.cookBookTag[67]="",e.cookBookTag[68]="",e.cookBookTag[69]="Destructuring assignment is not supported (arkts-no-destruct-assignment)",e.cookBookTag[70]="",e.cookBookTag[71]='The comma operator "," is supported only in "for" loops (arkts-no-comma-outside-loops)',e.cookBookTag[72]="",e.cookBookTag[73]="",e.cookBookTag[74]="Destructuring variable declarations are not supported (arkts-no-destruct-decls)",e.cookBookTag[75]="",e.cookBookTag[76]="",e.cookBookTag[77]="",e.cookBookTag[78]="",e.cookBookTag[79]="Type annotation in catch clause is not supported (arkts-no-types-in-catch)",e.cookBookTag[80]='"for .. in" is not supported (arkts-no-for-in)',e.cookBookTag[81]="",e.cookBookTag[82]="",e.cookBookTag[83]="Mapped type expression is not supported (arkts-no-mapped-types)",e.cookBookTag[84]='"with" statement is not supported (arkts-no-with)',e.cookBookTag[85]="",e.cookBookTag[86]="",e.cookBookTag[87]='"throw" statements cannot accept values of arbitrary types (arkts-limited-throw)',e.cookBookTag[88]="",e.cookBookTag[89]="",e.cookBookTag[90]="Function return type inference is limited (arkts-no-implicit-return-types)",e.cookBookTag[91]="Destructuring parameter declarations are not supported (arkts-no-destruct-params)",e.cookBookTag[92]="Nested functions are not supported (arkts-no-nested-funcs)",e.cookBookTag[93]='Using "this" inside stand-alone functions is not supported (arkts-no-standalone-this)',e.cookBookTag[94]="Generator functions are not supported (arkts-no-generators)",e.cookBookTag[95]="",e.cookBookTag[96]='Type guarding is supported with "instanceof" and "as" (arkts-no-is)',e.cookBookTag[97]="",e.cookBookTag[98]="",e.cookBookTag[99]="It is possible to spread only arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)",e.cookBookTag[100]="",e.cookBookTag[101]="",e.cookBookTag[102]="Interface can not extend interfaces with the same method (arkts-no-extend-same-prop)",e.cookBookTag[103]="Declaration merging is not supported (arkts-no-decl-merging)",e.cookBookTag[104]="Interfaces cannot extend classes (arkts-extends-only-class)",e.cookBookTag[105]="",e.cookBookTag[106]="Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",e.cookBookTag[107]="",e.cookBookTag[108]="",e.cookBookTag[109]="",e.cookBookTag[110]="",e.cookBookTag[111]="Enumeration members can be initialized only with compile time expressions of the same type (arkts-no-enum-mixed-types)",e.cookBookTag[112]="",e.cookBookTag[113]='"enum" declaration merging is not supported (arkts-no-enum-merging)',e.cookBookTag[114]="Namespaces cannot be used as objects (arkts-no-ns-as-obj)",e.cookBookTag[115]="",e.cookBookTag[116]="Non-declaration statements in namespaces are not supported (single semicolons are considered as empty non-delcaration statements) (arkts-no-ns-statements)",e.cookBookTag[117]="",e.cookBookTag[118]="Special import type declarations are not supported (arkts-no-special-imports)",e.cookBookTag[119]="Importing a module for side-effects only is not supported (arkts-no-side-effects-imports)",e.cookBookTag[120]='"import default as ..." is not supported (arkts-no-import-default-as)',e.cookBookTag[121]='"require" and "import" assignment are not supported (arkts-no-require)',e.cookBookTag[122]="",e.cookBookTag[123]="",e.cookBookTag[124]="",e.cookBookTag[125]="",e.cookBookTag[126]='"export = ..." assignment is not supported (arkts-no-export-assignment)',e.cookBookTag[127]='Special "export type" declarations are not supported (arkts-no-special-exports)',e.cookBookTag[128]="Ambient module declaration is not supported (arkts-no-ambient-decls)",e.cookBookTag[129]="Wildcards in module names are not supported (arkts-no-module-wildcards)",e.cookBookTag[130]="Universal module definitions (UMD) are not supported (arkts-no-umd)",e.cookBookTag[131]="",e.cookBookTag[132]='"new.target" is not supported (arkts-no-new-target)',e.cookBookTag[133]="",e.cookBookTag[134]="Definite assignment assertions are not supported (arkts-no-definite-assignment)",e.cookBookTag[135]="",e.cookBookTag[136]="Prototype assignment is not supported (arkts-no-prototype-assignment)",e.cookBookTag[137]='"globalThis" is not supported (arkts-no-globalthis)',e.cookBookTag[138]="Some of utility types are not supported (arkts-no-utility-types)",e.cookBookTag[139]="Declaring properties on functions is not supported (arkts-no-func-props)",e.cookBookTag[140]='"Function.apply", "Function.bind", "Function.call" are not supported (arkts-no-func-apply-bind-call)',e.cookBookTag[141]="",e.cookBookTag[142]='"as const" assertions are not supported (arkts-no-as-const)',e.cookBookTag[143]="Import assertions are not supported (arkts-no-import-assertions)",e.cookBookTag[144]="Usage of standard library is restricted (arkts-limited-stdlib)",e.cookBookTag[145]="Strict type checking is enforced (arkts-strict-typing)",e.cookBookTag[146]="Switching off type checks with in-place comments is not allowed (arkts-strict-typing-required)",e.cookBookTag[147]="No dependencies on TypeScript code are currently allowed (arkts-no-ts-deps)",e.cookBookTag[148]="No decorators except ArkUI decorators are currently allowed (arkts-no-decorators-except-arkui)",e.cookBookTag[149]="Classes cannot be used as objects (arkts-no-classes-as-obj)",e.cookBookTag[150]='"import" statements after other statements are not allowed (arkts-no-misplaced-imports)',e.cookBookTag[151]='Usage of "ESObject" type is restricted (arkts-limited-esobj)'}(d||(d={})),function(e){!function(e){e.TYPE_0_IS_NOT_ASSIGNABLE_TO_TYPE_1_ERROR_CODE=2322,e.TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type '(.*)\bunknown\b(.*)' is not assignable to type '.*'\.$/,e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type 'null' is not assignable to type '.*'\.$/,e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type 'undefined' is not assignable to type '.*'\.$/,e.ARGUMENT_OF_TYPE_0_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_ERROR_CODE=2345,e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE=/^Argument of type 'null' is not assignable to parameter of type '.*'\.$/,e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE=/^Argument of type 'undefined' is not assignable to parameter of type '.*'\.$/,e.NO_OVERLOAD_MATCHES_THIS_CALL_ERROR_CODE=2769;var t=function(){function t(e){this.inLibCall=!1,this.filteredDiagnosticMessages=[],this.filteredDiagnosticMessages=e}return t.prototype.configure=function(e,t){this.inLibCall=e,this.diagnosticMessages=t},t.prototype.checkMessageText=function(t){return!this.inLibCall||!(t.match(e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE)||t.match(e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE)||t.match(e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)||t.match(e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))},t.prototype.checkMessageChain=function(t){if(t.code==e.TYPE_0_IS_NOT_ASSIGNABLE_TO_TYPE_1_ERROR_CODE){if(t.messageText.match(e.TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1}if(t.code==e.ARGUMENT_OF_TYPE_0_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_ERROR_CODE){if(this.inLibCall&&t.messageText.match(e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE))return!1}return null==t.next||this.checkMessageChain(t.next[0])},t.prototype.checkFilteredDiagnosticMessages=function(e){if(0==this.filteredDiagnosticMessages.length)return!0;if("string"!=typeof e&&this.filteredDiagnosticMessages.includes(e))return!1;for(var t=0,r=this.filteredDiagnosticMessages;t=63&&e.kind<=78}function a(r){return!(void 0===r||!e.isTypeReferenceNode(r))&&t.TYPED_ARRAYS.includes(s(r.typeName))}function o(t,r){return!(void 0===t||!e.isTypeReferenceNode(t))&&s(t.typeName)===r}function s(t){return e.isIdentifier(t)?t.escapedText.toString():s(t.left)+s(t.right)}function c(e){if(e.isUnion()){for(var t=0,r=e.types;t0)return e.declarations[0]}function k(t){if(e.isParenthesizedExpression(t)||e.isAsExpression(t)&&149===t.type.kind)return k(t.expression);switch(t.kind){case 223:return function(e){return t=e.operator,(39===t||40===t||54===t)&&k(e.operand);var t}(t);case 215:case 225:return function(e){return t=e.operatorToken,(41===t.kind||43===t.kind||44===t.kind||40===t.kind||39===t.kind||47===t.kind||48===t.kind||56===t.kind||49===t.kind||50===t.kind||52===t.kind||51===t.kind||55===t.kind)&&k(e.left)&&k(e.right);var t}(t);case 226:return function(e){return k(e.whenTrue)&&k(e.whenFalse)}(t);case 79:return function(t){var n=r.getSymbolAtLocation(t),i=E(n);return!!i&&(function(t){return e.isVariableDeclaration(t)&&e.isVariableDeclarationList(t.parent)}(i)&&A(i.parent)||305===i.kind)}(t);case 8:case 10:return!0;case 209:var n=t;if(N(n))return!0;var i=r.getSymbolAtLocation(n.expression);if(!i)return!1;var a=i.getDeclarations();return!(!a||1!==a.length)&&e.isEnumDeclaration(a[0]);default:return!1}}function A(t){return!!(2&e.getCombinedNodeFlags(t))}function N(e){var t=8===e.kind?Number(e.getText()):r.getConstantValue(e);return void 0!==t&&"number"==typeof t}function F(e){var t=r.getConstantValue(e);return void 0!==t&&"string"==typeof t}function w(t,r){if(S(t)&&t.target!==t&&(t=t.target),S(r)&&r.target!==r&&(r=r.target),t===r||O(r))return!0;if(!t.symbol||!t.symbol.declarations)return!1;for(var n=0,i=t.symbol.declarations;n0&&0===e.declarations[0].parameters.length)&&(r=!0)})),!t||r}(t)&&!function(t){if(void 0===t.symbol.members)return!1;var r=!1;return t.symbol.members.forEach((function(t){void 0!==t.declarations&&t.declarations.length>0&&e.isPropertyDeclaration(t.declarations[0])&&f(e.getModifiers(t.declarations[0]),147)&&(r=!0)})),r}(t)&&!function(t){if(t.isClass()&&t.symbol.declarations&&t.symbol.declarations.length>0){var r=t.symbol.declarations[0];if(f(e.getModifiers(r),127))return!0}return!1}(t))}function L(e){return 263===e}function R(e){return L(e.kind)}function B(e){var t=r.getPropertiesOfType(e);if(null==t?void 0:t.length)for(var n=0,i=t;n0}function K(e){var t=e.getSymbol();return t&&"Function"===t.getName()&&G(t)}function W(e){return 524288&e.getFlags()&&4&e.objectFlags?e.target:e}function q(t,n){for(var i,a=0,o=n.properties;a0){var i=r.declarations[0].getSourceFile();if(!i)return!1;var a=i.fileName,o=e.getAnyExtensionFromPath(a),s=t.ARKTS_IGNORE_DIRS.some((function(t){return re(e.normalizePath(a),t)}))||t.ARKTS_IGNORE_FILES.some((function(t){return e.getBaseFileName(a)===t})),c=".ets"===o,l=".ts"===o&&!i.isDeclarationFile;return!((c||l&&n)&&!s)&&!t.STANDARD_LIBRARIES.includes(e.getBaseFileName(i.fileName).toLowerCase())}return!1}function re(t,r){for(var n=0,i=e.getPathComponents(t);n0){var n=r.declarations[0].getSourceFile();return n&&t.STANDARD_LIBRARIES.includes(e.getBaseFileName(n.fileName).toLowerCase())}return!1}function ae(e){return!!(67108864&e.flags)}function oe(e){if(void 0===e)return!1;if((e=e.getNonNullableType()).isUnion()){for(var t=0,r=e.types;t=0;i--){var a=n[i];if(21===a.kind&&a.getEnd()0?e.cookBookMsg[m]:"",rule:m>0&&""!==h?h:f||g,ruleTag:m,autofixable:o,autofix:s};c.problemsInfos.push(v),c.reportDiagnostics||n.logEvent("Warning: ".concat(this.sourceFile.fileName," (").concat(p,", ").concat(_,"): ").concat(f||g)),c.lineCounters[a]++,r[a].warning?p!==this.currentWarningLine&&(this.currentWarningLine=p,++c.totalWarningLines,c.warningLineNumbersString+=p+", "):p!==this.currentErrorLine&&(this.currentErrorLine=p,++c.totalErrorLines,c.errorLineNumbersString+=p+", ")}},c.prototype.visitTSNode=function(t){var r=this;!function t(n){if(null===n||null===n.kind)return;if(c.totalVisitedNodes++,e.isStructDeclaration(n))return void r.handleStructDeclaration(n);if(r.handleComments(n),e.LinterConfig.terminalTokens.has(n.kind))return;var i=e.LinterConfig.incrementOnlyTokens.get(n.kind);if(void 0!==i)r.incrementCounters(n,i);else{var a=r.handlersMap.get(n.kind);void 0!==a&&a.call(r,n)}e.forEachChild(n,t)}(t)},c.prototype.countInterfaceExtendsDifferentPropertyTypes=function(e,r,n,i){if(i){var a=i.getText(),o=r.get(n);o?o!==a&&this.incrementCounters(e,t.IntefaceExtendDifProps):r.set(n,a)}},c.prototype.countDeclarationsWithDuplicateName=function(r,n,i){var a=c.tsTypeChecker.getSymbolAtLocation(r);a&&e.Utils.symbolHasDuplicateName(a,null!=i?i:n.kind)&&this.incrementCounters(n,t.DeclWithDuplicateName)},c.prototype.countClassMembersWithDuplicateName=function(r){for(var n=0,i=r.members;n1&&this.incrementCounters(r,t.EnumMerging)}}},c.prototype.handleInterfaceDeclaration=function(r){var n=r,i=e.Utils.trueSymbolAtLocation(n.name),a=i?i.getDeclarations():null;if(a){for(var o=0,s=0,c=a;s1&&this.incrementCounters(r,t.InterfaceMerging)}n.heritageClauses&&this.interfaceInheritanceLint(r,n.heritageClauses),this.countDeclarationsWithDuplicateName(n.name,n)},c.prototype.handleThrowStatement=function(r){var n=r,i=c.tsTypeChecker.getTypeAtLocation(n.expression);i.isClassOrInterface()&&e.Utils.isDerivedFrom(i,e.Utils.CheckType.Error)||this.incrementCounters(r,t.ThrowStatement)},c.prototype.handleForStatement=function(r){var n=r.initializer;n&&(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment)},c.prototype.handleForInStatement=function(r){var n=r.initializer;(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment),this.incrementCounters(r,t.ForInStatement)},c.prototype.handleForOfStatement=function(r){var n=r.initializer;(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment)},c.prototype.handleImportDeclaration=function(r){for(var n=r,i=0,a=n.parent.statements;in.end))}));this.tscStrictDiagnostics.set(o,c)}}},c.prototype.checkInRange=function(e,t){for(var r=0;r=e[r].begin&&t0,l=this.handleMissingReturnType(i),u=l[0],d=l[1],p=!(c||a||o||u);p&&e.Autofixer.shouldAutofix(r,t.FunctionExpression)&&(n=[e.Autofixer.fixFunctionExpression(i,i.parameters,d)]),this.incrementCounters(r,t.FunctionExpression,p,n),c&&this.incrementCounters(i,t.LambdaWithTypeParameters),a&&this.incrementCounters(i,t.GeneratorFunction),o&&!s&&this.incrementCounters(i,t.FunctionContainsThis),u&&this.incrementCounters(i,t.LimitedReturnTypeInference)},c.prototype.handleArrowFunction=function(r){var n=r,i=this.functionContainsThis(n.body),a=e.Utils.hasPredecessor(n,e.isClassLike)||e.Utils.hasPredecessor(n,e.isInterfaceDeclaration);i&&!a&&this.incrementCounters(n,t.FunctionContainsThis);var o=c.tsTypeChecker.getContextualType(n);o&&e.Utils.isLibraryType(o)||(n.type||this.handleMissingReturnType(n),n.typeParameters&&n.typeParameters.length>0&&this.incrementCounters(r,t.LambdaWithTypeParameters))},c.prototype.handleClassExpression=function(e){this.incrementCounters(e,t.ClassExpression)},c.prototype.handleFunctionDeclaration=function(r){var n=r;n.type||this.handleMissingReturnType(n),n.name&&this.countDeclarationsWithDuplicateName(n.name,n),n.body&&this.functionContainsThis(n.body)&&this.incrementCounters(r,t.FunctionContainsThis),e.isSourceFile(n.parent)||e.isModuleBlock(n.parent)||this.incrementCounters(n,t.LocalFunction),n.asteriskToken&&this.incrementCounters(r,t.GeneratorFunction)},c.prototype.handleMissingReturnType=function(r){if(!r.body)return[!1,void 0];var n,i,a=!1,o=e.isFunctionExpression(r),s=this.hasLimitedTypeInferenceFromReturnExpr(r.body),l=c.tsTypeChecker.getSignatureFromDeclaration(r);if(l){var u=c.tsTypeChecker.getReturnTypeOfSignature(l);!u||e.Utils.isUnsupportedType(u)?s=!0:s&&(a=!!(i=c.tsTypeChecker.typeToTypeNode(u,r,0)),!o&&i&&e.Autofixer.shouldAutofix(r,t.LimitedReturnTypeInference)&&(n=[e.Autofixer.fixReturnType(r,i)]))}return s&&!o&&this.incrementCounters(r,t.LimitedReturnTypeInference,a,n),[s&&!i,i]},c.prototype.hasLimitedTypeInferenceFromReturnExpr=function(t){var r=!1;if(e.isBlock(t))!function t(n){r||(e.isReturnStatement(n)&&n.expression&&e.Utils.isCallToFunctionWithOmittedReturnType(e.Utils.unwrapParenthesized(n.expression))?r=!0:e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.isMethodDeclaration(n)||e.isAccessor(n)||e.isArrowFunction(n)||n.forEachChild(t))}(t);else{var n=e.Utils.unwrapParenthesized(t);r=e.Utils.isCallToFunctionWithOmittedReturnType(n)}return r},c.prototype.handlePrefixUnaryExpression=function(r){var n=r,i=n.operator;39!==i&&40!==i&&54!==i||(2344&c.tsTypeChecker.getTypeAtLocation(n.operand).getFlags()&&(54!==i||8!==n.operand.kind||e.Utils.isIntegerConstantValue(n.operand))||this.incrementCounters(r,t.UnaryArithmNotNumber))},c.prototype.handleBinaryExpression=function(r){var n=r,i=n.left,a=n.right;if(e.Utils.isAssignmentOperator(n.operatorToken)&&((e.isObjectLiteralExpression(i)||e.isArrayLiteralExpression(i))&&this.incrementCounters(r,t.DestructuringAssignment),e.isPropertyAccessExpression(i))){var o=e.Utils.trueSymbolAtLocation(i),s=e.Utils.trueSymbolAtLocation(i.expression);o&&8192&o.flags&&this.incrementCounters(i,t.NoUndefinedPropAccess),e.Utils.isMethodAssignment(o)&&s&&16&s.flags&&this.incrementCounters(i,t.PropertyDeclOnFunction)}var l=c.tsTypeChecker.getTypeAtLocation(i),u=c.tsTypeChecker.getTypeAtLocation(a);if(39===n.operatorToken.kind)if(e.Utils.isEnumMemberType(l)&&e.Utils.isEnumMemberType(u)){if(296&l.flags&&296&u.getFlags()||402653316&l.flags&&402653316&u.getFlags())return}else{if(e.Utils.isNumberType(l)&&e.Utils.isNumberType(u))return;if(e.Utils.isStringLikeType(l)||e.Utils.isStringLikeType(u))return}else if(50===n.operatorToken.kind||51===n.operatorToken.kind||52===n.operatorToken.kind||47===n.operatorToken.kind||48===n.operatorToken.kind||49===n.operatorToken.kind){if(!e.Utils.isNumberType(l)||!e.Utils.isNumberType(u)||8===i.kind&&!e.Utils.isIntegerConstantValue(i)||8===a.kind&&!e.Utils.isIntegerConstantValue(a))return}else if(27===n.operatorToken.kind){for(var d=n,p=d.parent;p&&225===p.kind;)p=(d=p).parent;if(p&&247===p.kind){var _=p;if(d===_.initializer||d===_.incrementor)return}this.incrementCounters(r,t.CommaOperator)}else if(103===n.operatorToken.kind){var f=e.Utils.unwrapParenthesized(n.left),g=e.Utils.trueSymbolAtLocation(f);if(109===i.kind)return;(e.Utils.isPrimitiveType(l)||e.isTypeNode(f)||e.Utils.isTypeSymbol(g))&&this.incrementCounters(r,t.InstanceofUnsupported)}else if(63===n.operatorToken.kind){e.Utils.needToDeduceStructuralIdentity(u,l)&&this.incrementCounters(n,t.StructuralIdentity);var m=e.Utils.getVariableDeclarationTypeNode(i);this.handleEsObjectAssignment(n,m,a)}},c.prototype.handleVariableDeclarationList=function(r){3&e.getCombinedNodeFlags(r)||this.incrementCounters(r,t.VarDeclaration)},c.prototype.handleVariableDeclaration=function(r){var n=this,i=r;(e.isArrayBindingPattern(i.name)||e.isObjectBindingPattern(i.name))&&this.incrementCounters(r,t.DestructuringDeclaration);var a=function(t){if(e.isIdentifier(t))n.countDeclarationsWithDuplicateName(t,t,t.parent.kind);else for(var r=0,i=t.elements;r1&&e.isObjectLiteralExpression(n[1]))for(var i=0,a=n[1].properties;i{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=9953,e.exports=t},9844:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const r=[],n=[],i=new Map;if(i.set(Date,(e=>new Date(e))),i.set(Map,((e,t)=>new Map(o(Array.from(e),t)))),i.set(Set,((e,t)=>new Set(o(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){const s=Object.keys(e),c=new Array(s.length);for(let l=0;lnew Date(e))),r.set(Map,((e,t)=>new Map(i(Array.from(e),t)))),r.set(Set,((e,t)=>new Set(i(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)r.set(t[0],t[1]);let n=null;return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return i(a,e);if(a.constructor!==Object&&(n=r.get(a.constructor)))return n(a,e);const o={};for(const i in a){const s=a[i];"object"!=typeof s||null===s?o[i]=s:s.constructor!==Object&&(n=r.get(s.constructor))?o[i]=n(s,e):ArrayBuffer.isView(s)?o[i]=t(s):o[i]=e(s)}return o}:function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return i(a,e);if(a.constructor!==Object&&(n=r.get(a.constructor)))return n(a,e);const o={};for(const i in a){if(!1===Object.hasOwnProperty.call(a,i))continue;const s=a[i];"object"!=typeof s||null===s?o[i]=s:s.constructor!==Object&&(n=r.get(s.constructor))?o[i]=n(s,e):ArrayBuffer.isView(s)?o[i]=t(s):o[i]=e(s)}return o};function i(e,i){const a=Object.keys(e),o=new Array(a.length);for(let s=0;s{e=r.nmd(e);var n,i=r(9665).SourceMapConsumer,a=r(6928);try{(n=r(9896)).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r(2746);function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,d="auto",p={},_={},f=/^data:application\/json[^,]+base64,/,g=[],m=[];function h(){return"browser"===d||"node"!==d&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function y(e){return function(t){for(var r=0;r";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"")}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=T,t}function E(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!h()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(p={},_={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+E(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function A(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=p[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function N(e){var t=A(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),function(e){if("object"==typeof process&&null!==process&&"function"==typeof process.exit)process.exit(e)}(1)}m.push((function(e){var t,r=function(e){var t;if(h())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=v(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=v(r);return t?{url:r,map:t}:null}));var F=g.slice(0),w=m.slice(0);t.wrapCallSite=E,t.getErrorSource=A,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(d=t.environment,-1===["node","browser","auto"].indexOf(d)))throw new Error("environment "+d+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!h()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return p[t]=e,_[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return N(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=F.slice(0),m=w.slice(0),x=y(m),v=y(g)}},735:(e,t,r)=>{var n=r(251),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{var n=r(2364);t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<>1,1&~o?s:-s),r.rest=t}},2364:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},3302:(e,t,r)=>{var n=r(251);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;t=this._last,r=e,i=t.generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=i},3801:(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i{var n=r(251),i=r(1163),a=r(735).C,o=r(7092),s=r(3801).g;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new d(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),d=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=g+a[1],g+=a[1],r.originalLine=_+a[2],_=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=m+a[4],m+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t{var n=r(7092),i=r(251),a=r(735).C,o=r(3302).P;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,d=0,p="",_=this._mappings.toArray(),f=0,g=_.length;f0){if(!i.compareByGeneratedPositionsInflated(t,_[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-d),d=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=s},1683:(e,t,r)=>{var n=r(4041).x,i=r(251),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},9665:(e,t,r)=>{r(4041).x,t.SourceMapConsumer=r(7446).SourceMapConsumer,r(1683)},4202:(e,t,r)=>{const n=r(2667);e.exports=class extends n{constructor(e,t,r){t&&"object"==typeof t&&(r=t,t=null),r||(r={}),t||(t="yyyy-MM-dd"),r.pattern=t,r.numBackups||0===r.numBackups?r.daysToKeep=r.numBackups:(r.daysToKeep||0===r.daysToKeep?process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001"):r.daysToKeep=1,r.numBackups=r.daysToKeep),super(e,r),this.mode=this.options.mode}get theStream(){return this.currentFileStream}}},5814:(e,t,r)=>{const n=r(2667);e.exports=class extends n{constructor(e,t,r,n){n||(n={}),t&&(n.maxSize=t),n.numBackups||0===n.numBackups||(r||0===r||(r=1),n.numBackups=r),super(e,n),this.backups=n.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}}},2667:(e,t,r)=>{const n=r(5753)("streamroller:RollingFileWriteStream"),i=r(1605),a=r(6928),o=r(857),s=r(6301),c=r(3011),{Writable:l}=r(2203),u=r(2072),d=r(655),p=r(4777);e.exports=class extends l{constructor(e,t){if(n(`constructor: creating RollingFileWriteStream. path=${e}`),"string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(a.sep))throw new Error(`Filename is a directory: ${e}`);0===e.indexOf(`~${a.sep}`)&&(e=e.replace("~",o.homedir())),super(t),this.options=this._parseOption(t),this.fileObject=a.parse(e),""===this.fileObject.dir&&(this.fileObject=a.parse(a.join(process.cwd(),e))),this.fileFormatter=u({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`)}else delete r.maxSize;if(r.numBackups||0===r.numBackups){if(r.numBackups<0)throw new Error(`options.numBackups (${r.numBackups}) should be >= 0`);if(r.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${r.numBackups}) should be < Number.MAX_SAFE_INTEGER`);r.numToKeep=r.numBackups+1}else if(r.numToKeep<=0)throw new Error(`options.numToKeep (${r.numToKeep}) should be > 0`);return n(`_parseOption: creating stream with option=${JSON.stringify(r)}`),r}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,r){this._shouldRoll().then((()=>{n(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length,r(t)}))}))}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(n(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==c(this.options.pattern,s())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return n("_roll: closing the current stream"),new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();for(let t=(this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e).length;t>=0;t--){n(`_moveOldFiles: i = ${t}`);const e=this.fileFormatter({date:this.state.currentDate,index:t}),r=this.fileFormatter({date:this.state.currentDate,index:t+1}),i={compress:this.options.compress&&0===t,mode:this.options.mode};await p(e,r,i)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?c(this.options.pattern,s()):null,n(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await i.readdir(this.fileObject.dir).catch((()=>[]));n(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e)),r=e=>(e.timestamp?e.timestamp:s().getTime())-e.index;return t.sort(((e,t)=>r(e)-r(t))),t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0}),t=e=>{try{return i.mkdirSync(e,{recursive:!0})}catch(r){if("ENOENT"===r.code)return t(a.dirname(e)),t(e);if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;try{if(i.statSync(e).isDirectory())return e;throw r}catch(e){throw r}}};t(this.fileObject.dir);const r={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};var n,o;i.appendFileSync(e,"",(n={...r},o="flags",n["flag"]=n[o],delete n[o],n)),this.currentFileStream=i.createWriteStream(e,r),this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();if(n(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),n("_clean: existing files are: ",e),this._tooManyFiles(e.length)){const r=e.slice(0,e.length-this.options.numToKeep).map((e=>a.format({dir:this.fileObject.dir,base:e.filename})));await(t=r,n(`deleteFiles: files to delete: ${t}`),Promise.all(t.map((e=>i.unlink(e).catch((t=>{n(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))))))}var t}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}}},2072:(e,t,r)=>{const n=r(5753)("streamroller:fileNameFormatter"),i=r(6928);e.exports=({file:e,keepFileExt:t,needsIndex:r,alwaysIncludeDate:a,compress:o,fileNameSep:s})=>{let c=s||".";const l=i.join(e.dir,e.name),u=t=>t+e.ext,d=(e,t,n)=>!r&&n||!t?e:e+c+t,p=(e,t,r)=>(t>0||a)&&r?e+c+r:e,_=(e,t)=>t&&o?e+".gz":e,f=t?[p,d,u,_]:[u,p,d,_];return({date:e,index:t})=>(n(`_formatFileName: date=${e}, index=${t}`),f.reduce(((r,n)=>n(r,t,e)),l))}},655:(e,t,r)=>{const n=r(5753)("streamroller:fileNameParser"),i=r(3011);e.exports=({file:e,keepFileExt:t,pattern:r,fileNameSep:a})=>{let o=a||".";const s="__NOT_MATCHING__";let c=[(e,t)=>e.endsWith(".gz")?(n("it is gzipped"),t.isCompressed=!0,e.slice(0,-3)):e,t?t=>t.startsWith(e.name)&&t.endsWith(e.ext)?(n("it starts and ends with the right things"),t.slice(e.name.length+1,-1*e.ext.length)):s:t=>t.startsWith(e.base)?(n("it starts with the right things"),t.slice(e.base.length+1)):s,r?(e,t)=>{const a=e.split(o);let s=a[a.length-1];n("items: ",a,", indexStr: ",s);let c=e;void 0!==s&&s.match(/^\d+$/)?(c=e.slice(0,-1*(s.length+1)),n(`dateStr is ${c}`),r&&!c&&(c=s,s="0")):s="0";try{const n=i.parse(r,c,new Date(0,0));return i.asString(r,n)!==c?e:(t.index=parseInt(s,10),t.date=c,t.timestamp=n.getTime(),"")}catch(t){return n(`Problem parsing ${c} as ${r}, error was: `,t),e}}:(e,t)=>e.match(/^\d+$/)?(n("it has an index"),t.index=parseInt(e,10),""):e];return e=>{let t={filename:e,index:0,isCompressed:!1};return c.reduce(((e,r)=>r(e,t)),e)?null:t}}},1129:(e,t,r)=>{e.exports={RollingFileWriteStream:r(2667),RollingFileStream:r(5814),DateRollingFileStream:r(4202)}},4777:(e,t,r)=>{const n=r(5753)("streamroller:moveAndMaybeCompressFile"),i=r(1605),a=r(3106);e.exports=async(e,t,r)=>{if(r=function(e){const t={mode:parseInt("0600",8),compress:!1},r=Object.assign({},t,e);return n(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(r)}`),r}(r),e!==t){if(await i.pathExists(e))if(n(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${r.compress?"with":"without"} compress`),r.compress)await new Promise(((o,s)=>{let c=!1;const l=i.createWriteStream(t,{mode:r.mode,flags:"wx"}).on("open",(()=>{c=!0;const t=i.createReadStream(e).on("open",(()=>{t.pipe(a.createGzip()).pipe(l)})).on("error",(t=>{n(`moveAndMaybeCompressFile: error reading ${e}`,t),l.destroy(t)}))})).on("finish",(()=>{n(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`),i.unlink(e).then(o).catch((t=>{n(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t),i.truncate(e).then(o).catch((t=>{n(`moveAndMaybeCompressFile: error truncating ${e}`,t),s(t)}))}))})).on("error",(e=>{c?(n(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e),i.unlink(t).then((()=>{s(e)})).catch((e=>{n(`moveAndMaybeCompressFile: error deleting ${t}`,e),s(e)}))):(n(`moveAndMaybeCompressFile: error creating ${t}`,e),s(e))}))})).catch((()=>{}));else{n(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await i.move(e,t,{overwrite:!0})}catch(r){if(n(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,r),"ENOENT"!==r.code){n("moveAndMaybeCompressFile: trying copy+truncate instead");try{await i.copy(e,t,{overwrite:!0}),await i.truncate(e)}catch(e){n("moveAndMaybeCompressFile: error copy+truncate",e)}}}}}else n("moveAndMaybeCompressFile: source and target are the same, not doing anything")}},6301:e=>{e.exports=()=>new Date},7687:(e,t,r)=>{"use strict";const n=r(857),i=r(2018),a=r(5884),{env:o}=process;let s;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const r=s||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?s=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=1),"FORCE_COLOR"in o&&(s="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}},4467:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SceneConfig=t.Config=void 0;const s=o(r(9896)),c=o(r(6928)),l=a(r(7015)),u=r(8089),d=l.default.getLogger();t.Config=class{constructor(e,t,r,n){this.projectName=e,this.project_dir=t,this.sdkName=r,this.sdk_dir=n}};t.SceneConfig=class{constructor(){this.configJsonPath="",this.targetProjectName="",this.targetProjectDirectory="",this.etsSdkPath="",this.sdksObj=[],this.sdkFiles=[],this.sdkFilesMap=new Map,this.logPath="./out/ArkAnalyzer.log",this.logLevel="ERROR",this.projectFiles=[]}buildConfig(e,t,r,n,i,a){r&&(this.logPath=r),n&&(this.logLevel=n),l.default.configure(this.logPath,l.LOG_LEVEL[this.logLevel]),this.sdksObj=i,this.targetProjectName=e,this.targetProjectDirectory=t,a&&this.projectFiles.push(...a)}buildFromProjectDir(e){this.targetProjectDirectory=e,this.targetProjectName=c.default.basename(e),l.default.configure(this.logPath,l.LOG_LEVEL.ERROR),this.projectFiles=(0,u.getAllFiles)(e,[".ets",".ts"])}buildFromJson(e){if(s.default.existsSync(e)){const t=s.default.readFileSync(e,"utf8");d.info(t);const r=JSON.parse(t),n=r.targetProjectName?r.targetProjectName:"",i=r.targetProjectDirectory?r.targetProjectDirectory:"",a=r.logPath?r.logPath:"",o=r.logLevel?r.logLevel:"",c=r.sdks?r.sdks:[];this.buildConfig(n,i,a,o,c)}else d.error(`Your configJsonPath: "${e}" is not exist.`)}getTargetProjectName(){return this.targetProjectName}getTargetProjectDirectory(){return this.targetProjectDirectory}getProjectFiles(){return this.projectFiles}getSdkFiles(){return this.sdkFiles}getSdkFilesMap(){return this.sdkFilesMap}getEtsSdkPath(){return this.etsSdkPath}getSdksObj(){return this.sdksObj}}},6805:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleScene=t.Scene=void 0;const i=n(r(9896)),a=n(r(6928)),o=r(6348),s=r(9045),c=r(1796),l=r(2029),u=r(8596),d=r(6784),p=r(3433),_=r(1812),f=n(r(7015)),g=r(7570),m=r(2293),h=r(8089),y=r(4040),v=r(7733),b=r(732),x=r(9803),D=f.default.getLogger();var S;!function(e){e[e.BUILD_INIT=0]="BUILD_INIT",e[e.CLASS_DONE=1]="CLASS_DONE",e[e.METHOD_DONE=2]="METHOD_DONE"}(S||(S={}));t.Scene=class{constructor(){this.projectName="",this.projectFiles=[],this.moduleScenesMap=new Map,this.modulePath2NameMap=new Map,this.extendedClasses=new Map,this.globalImportInfos=[],this.moduleSdkMap=new Map,this.projectSdkMap=new Map,this.sdkFilesProjectMap=new Map,this.visibleValue=new d.VisibleValue,this.filesMap=new Map,this.namespacesMap=new Map,this.classesMap=new Map,this.methodsMap=new Map,this.sdkArkFilesMap=new Map,this.ohPkgContentMap=new Map,this.ohPkgFilePath="",this.ohPkgContent={},this.buildStage=S.BUILD_INIT}buildSceneFromProjectDir(e){this.buildBasicInfo(e),this.genArkFiles(),this.collectProjectImportInfos()}buildBasicInfo(e){var t;this.projectName=e.getTargetProjectName(),this.realProjectDir=i.default.realpathSync(e.getTargetProjectDirectory()),this.projectFiles=e.getProjectFiles();const r=a.default.join(this.realProjectDir,"./build-profile.json5");if(i.default.existsSync(r)){const e=(0,m.parseJsonText)(i.default.readFileSync(r,"utf-8")).modules;e instanceof Array&&e.forEach((e=>{this.modulePath2NameMap.set(a.default.resolve(this.realProjectDir,a.default.join(e.srcPath)),e.name)}))}else D.warn("There is no build-profile.json5 for this project.");const n=a.default.join(this.realProjectDir,"./oh-package.json5");i.default.existsSync(n)?(this.ohPkgFilePath=n,this.ohPkgContent=(0,m.fetchDependenciesFromFile)(this.ohPkgFilePath),this.ohPkgContentMap.set(n,this.ohPkgContent)):D.warn("This project has no oh-package.json5!"),null===(t=e.getSdksObj())||void 0===t||t.forEach((e=>{if(e.moduleName){let t=this.moduleSdkMap.get(e.moduleName);t?t.push(e):this.moduleSdkMap.set(e.moduleName,[e])}else this.buildSdk(e.name,e.path),this.projectSdkMap.set(e.name,e)}))}buildAllMethodBody(){this.buildStage=S.CLASS_DONE;for(const e of this.getFiles()){for(const t of e.getClasses())for(const e of t.getMethods())e.buildBody();(0,b.generateDefaultClassField)(e.getDefaultClass())}for(const e of this.getNamespacesMap().values()){for(const t of e.getClasses())for(const e of t.getMethods())e.buildBody();(0,b.generateDefaultClassField)(e.getDefaultClass())}this.buildStage=S.METHOD_DONE}genArkFiles(){this.projectFiles.forEach((e=>{D.info("=== parse file:",e);let t=new p.ArkFile;t.setScene(this),t.setProjectName(this.projectName),(0,g.buildArkFileFromFile)(e,this.realProjectDir,t),this.filesMap.set(t.getFileSignature().toString(),t)})),this.buildAllMethodBody(),(0,g.expandImportAll)(this.filesMap)}buildSdk(e,t){(0,h.getAllFiles)(t,[".ets",".ts"]).forEach((r=>{D.info("=== parse sdk file:",r);let n=new p.ArkFile;n.setScene(this),n.setProjectName(e),(0,g.buildArkFileFromFile)(r,a.default.normalize(t),n);const i=n.getFileSignature().toString();this.sdkArkFilesMap.set(i,n)})),(0,g.expandImportAll)(this.sdkArkFilesMap)}buildScene4HarmonyProject(){this.modulePath2NameMap.forEach(((e,t)=>{const r=a.default.resolve(t,"./oh-package.json5");if(i.default.existsSync(r)){const e=(0,m.fetchDependenciesFromFile)(r);this.ohPkgContentMap.set(r,e)}let n=new T;n.ModuleScenBuilder(e,t,this),this.moduleScenesMap.set(e,n)})),this.buildAllMethodBody(),(0,g.expandImportAll)(this.filesMap)}buildModuleScene(e,t){if(this.moduleScenesMap.get(e))return;const r=a.default.resolve(this.realProjectDir,a.default.join(t,"./oh-package.json5"));if(i.default.existsSync(r)){const e=(0,m.fetchDependenciesFromFile)(r);this.ohPkgContentMap.set(r,e)}else D.warn("Module: ",e,"has no oh-package.json5.");const n=this.ohPkgContentMap.get(r);n&&n.dependencies instanceof Object&&Object.entries(n.dependencies).forEach((([e,t])=>{const n=new RegExp("^(\\.\\.\\/|\\.\\/)");if("string"==typeof t){let e="";if(n.test(t))e=a.default.join(r,t);else if(t.startsWith("file:")){const n=a.default.join(r,t.replace(/^file:/,"")),i=(0,y.getFileRecursively)(a.default.dirname(n),"oh-package.json5");e=a.default.dirname(i)}D.info("Dependency path: ",e);const i=this.modulePath2NameMap.get(e);i&&this.buildModuleScene(i,e)}}));let o=new T;o.ModuleScenBuilder(e,t,this),this.moduleScenesMap.set(e,o),this.buildAllMethodBody()}getRealProjectDir(){return this.realProjectDir}getProjectName(){return this.projectName}getProjectFiles(){return this.projectFiles}getFile(e){return this.projectName===e.getProjectName()?this.filesMap.get(e.toString())||null:this.sdkArkFilesMap.get(e.toString())||null}getFiles(){return Array.from(this.filesMap.values())}getSdkArkFilesMap(){return this.sdkArkFilesMap}getModuleSdkMap(){return this.moduleSdkMap}getProjectSdkMap(){return this.projectSdkMap}getFilesMap(){return this.filesMap}getNamespace(e){if(this.projectName===e.getDeclaringFileSignature().getProjectName())return this.getNamespacesMap().get(e.toString())||null;{const t=this.sdkArkFilesMap.get(e.getDeclaringFileSignature().toString());return(null==t?void 0:t.getNamespace(e))||null}}getNamespacesMap(){if(0==this.namespacesMap.size)for(const e of this.getFiles())l.ModelUtils.getAllNamespacesInFile(e).forEach((e=>{this.namespacesMap.set(e.getNamespaceSignature().toString(),e)}));return this.namespacesMap}getNamespaces(){return Array.from(this.getNamespacesMap().values())}getClass(e){var t;if(this.projectName===e.getDeclaringFileSignature().getProjectName())return this.getClassesMap().get(e.toString())||null;{const r=this.sdkArkFilesMap.get(e.getDeclaringFileSignature().toString()),n=e.getDeclaringNamespaceSignature();return n?(null===(t=null==r?void 0:r.getNamespace(n))||void 0===t?void 0:t.getClass(e))||null:(null==r?void 0:r.getClass(e))||null}}getClassesMap(){if(0==this.classesMap.size){for(const e of this.getFiles())for(const t of e.getClasses())this.classesMap.set(t.getSignature().toString(),t);for(const e of this.getNamespacesMap().values())for(const t of e.getClasses())this.classesMap.set(t.getSignature().toString(),t)}return this.classesMap}getClasses(){return Array.from(this.getClassesMap().values())}getMethod(e){var t;return this.projectName===e.getDeclaringClassSignature().getDeclaringFileSignature().getProjectName()?this.getMethodsMap().get(e.toString())||null:(null===(t=this.getClass(e.getDeclaringClassSignature()))||void 0===t?void 0:t.getMethod(e))||null}getMethodsMap(){if(0==this.methodsMap.size)for(const e of this.getClassesMap().values())for(const t of e.getMethods())this.methodsMap.set(t.getSignature().toString(),t);return this.methodsMap}getMethods(){return Array.from(this.getMethodsMap().values())}hasMainMethod(){return!1}getEntryPoints(){return[]}getVisibleValue(){return this.visibleValue}getOhPkgContent(){return this.ohPkgContent}getOhPkgContentMap(){return this.ohPkgContentMap}getOhPkgFilePath(){return this.ohPkgFilePath}makeCallGraphCHA(e){let t;return t=new o.ClassHierarchyAnalysisAlgorithm(this),t.loadCallGraph(e),t}makeCallGraphRTA(e){let t;return t=new s.RapidTypeAnalysisAlgorithm(this),t.loadCallGraph(e),t}makeCallGraphVPA(e){let t;return t=new c.VariablePointerAnalysisAlogorithm(this),t.loadCallGraph(e),t}inferTypes(){this.getClassesMap().forEach((e=>{e.getFields().forEach((e=>u.TypeInference.inferTypeInArkField(e)))})),this.getMethodsMap().forEach((e=>{e.isDefaultArkMethod()||u.TypeInference.inferTypeInMethod(e)})),this.genExtendedClasses()}inferSimpleTypes(){for(let e of this.getFiles())for(let t of e.getClasses())for(let e of t.getMethods())u.TypeInference.inferSimpleTypeInMethod(e)}collectProjectImportInfos(){this.getFiles().forEach((e=>{e.getImportInfos().forEach((e=>{this.globalImportInfos.push(e)}))}))}genExtendedClasses(){this.getClassesMap().forEach((e=>{if(""!==e.getSuperClassName()){const t=u.TypeInference.inferUnclearReferenceType(e.getSuperClassName(),e);let r;t&&t instanceof x.ClassType&&(r=e.getDeclaringArkFile().getScene().getClass(t.getClassSignature())),r&&(e.setSuperClass(r),r.addExtendedClass(e))}}))}getClassMap(){var e,t,r,n;const i=new Map;for(const a of this.getFiles()){const o=[],s=[],c=new Map,l=[];for(const e of a.getClasses())o.push(e);for(const e of a.getNamespaces())s.push(e),c.set(e,a);i.set(a.getFileSignature(),o);for(;s.length>0;){const e=s.shift(),t=[];for(const r of e.getClasses())t.push(r);if(i.set(e.getNamespaceSignature(),t),0==e.getNamespaces().length)l.push(e);else for(const t of e.getNamespaces())s.push(t),c.set(t,e)}for(;l.length>0;){const a=l.shift(),o=[];for(const e of a.getClasses())e.isExported()&&o.push(e);const s=c.get(a);s instanceof _.ArkNamespace?null===(e=i.get(s.getNamespaceSignature()))||void 0===e||e.push(...o):s instanceof p.ArkFile&&(null===(t=i.get(s.getFileSignature()))||void 0===t||t.push(...o));let u=a;for(;!(c.get(u)instanceof p.ArkFile)&&u.isExported();){const e=c.get(c.get(u));if(e instanceof _.ArkNamespace)null===(r=i.get(e.getNamespaceSignature()))||void 0===r||r.push(...o),u=c.get(u);else if(e instanceof p.ArkFile){null===(n=i.get(e.getFileSignature()))||void 0===n||n.push(...o);break}}s instanceof _.ArkNamespace&&!l.includes(s)&&l.push(s)}}for(const e of this.getFiles()){const t=[],r=[];for(const n of e.getImportInfos()){const a=l.ModelUtils.getClassInImportInfoWithName(n.getImportClauseName(),e);a&&!t.includes(a)&&t.push(a);const o=l.ModelUtils.getNamespaceInImportInfoWithName(n.getImportClauseName(),e);if(o&&!r.includes(o))try{const e=i.get(o.getNamespaceSignature());t.push(...e.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}catch(e){}}const n=i.get(e.getFileSignature());n.push(...t.filter((e=>!n.includes(e))));const a=[...e.getNamespaces()];for(const e of a){const t=i.get(e.getNamespaceSignature());t.push(...n.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}for(;a.length>0;){const e=a.shift(),t=i.get(e.getNamespaceSignature());for(const r of e.getNamespaces()){const e=i.get(r.getNamespaceSignature());e.push(...t.filter((t=>!e.includes(t)&&"_DEFAULT_ARK_CLASS"!=t.getName()))),a.push(r)}}}return i}getGlobalVariableMap(){var e,t,r,n;const i=new Map;for(const a of this.getFiles()){const o=[],s=new Map,c=[],l=[];a.getDefaultClass().getDefaultArkMethod().getBody().getLocals().forEach((e=>{e.getDeclaringStmt()&&"this"!=e.getName()&&"$"!=e.getName()[0]&&l.push(e)})),i.set(a.getFileSignature(),l);for(const e of a.getNamespaces())o.push(e),s.set(e,a);for(;o.length>0;){const e=o.shift(),t=[];if(e.getDefaultClass().getDefaultArkMethod().getBody().getLocals().forEach((e=>{e.getDeclaringStmt()&&"this"!=e.getName()&&"$"!=e.getName()[0]&&t.push(e)})),i.set(e.getNamespaceSignature(),t),0==e.getNamespaces().length)c.push(e);else for(const t of e.getNamespaces())o.push(t),s.set(t,e)}for(;c.length>0;){const a=c.shift(),o=[];for(const e of a.getExportInfos())e.getExportClauseType()===v.ExportType.LOCAL&&e.getTypeSignature()&&o.push(e.getTypeSignature());const l=s.get(a);l instanceof _.ArkNamespace?null===(e=i.get(l.getNamespaceSignature()))||void 0===e||e.push(...o):l instanceof p.ArkFile&&(null===(t=i.get(l.getFileSignature()))||void 0===t||t.push(...o));let u=a;for(;!(s.get(u)instanceof p.ArkFile)&&u.isExported();){const e=s.get(s.get(u));if(e instanceof _.ArkNamespace)null===(r=i.get(e.getNamespaceSignature()))||void 0===r||r.push(...o),u=s.get(u);else if(e instanceof p.ArkFile){null===(n=i.get(e.getFileSignature()))||void 0===n||n.push(...o);break}}l instanceof _.ArkNamespace&&!c.includes(l)&&c.push(l)}}for(const e of this.getFiles()){const t=[],r=[];for(const n of e.getImportInfos()){const a=l.ModelUtils.getLocalInImportInfoWithName(n.getImportClauseName(),e);a&&!t.includes(a)&&t.push(a);const o=l.ModelUtils.getNamespaceInImportInfoWithName(n.getImportClauseName(),e);if(o&&!r.includes(o))try{const e=i.get(o.getNamespaceSignature());t.push(...e.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}catch(e){}}const n=i.get(e.getFileSignature());n.push(...t.filter((e=>!n.includes(e))));const a=[...e.getNamespaces()];for(const e of a){const t=i.get(e.getNamespaceSignature()),r=new Set(t.map((e=>e.getName())));for(const e of n)r.has(e.getName())||t.push(e)}for(;a.length>0;){const e=a.shift(),t=i.get(e.getNamespaceSignature());for(const r of e.getNamespaces()){const e=i.get(r.getNamespaceSignature()),n=new Set(e.map((e=>e.getName())));for(const r of t)n.has(r.getName())||e.push(r);a.push(r)}}}return i}buildClassDone(){return this.buildStage>=S.CLASS_DONE}getModuleScene(e){return this.moduleScenesMap.get(e)}};class T{constructor(){this.moduleName="",this.modulePath="",this.moduleOhPkgFilePath="",this.otherSdkMap=new Map,this.ohPkgContent={},this.moduleImportInfos=[],this.filesMap=new Map,this.namespacesMap=new Map,this.classesMap=new Map,this.methodsMap=new Map}ModuleScenBuilder(e,t,r,n=!1){this.moduleName=e,this.modulePath=t,this.projectScene=r,this.getModuleOhPkgFilePath(),this.moduleOhPkgFilePath?this.ohPkgContent=(0,m.fetchDependenciesFromFile)(this.moduleOhPkgFilePath):D.warn("This module has no oh-package.json5!"),this.genArkFiles()}getModuleOhPkgFilePath(){const e=a.default.resolve(this.projectScene.getRealProjectDir(),a.default.join(this.modulePath,"./oh-package.json5"));i.default.existsSync(e)&&(this.moduleOhPkgFilePath=e)}getModuleName(){return this.moduleName}getModulePath(){return this.modulePath}getOhPkgFilePath(){return this.moduleOhPkgFilePath}getOhPkgContent(){return this.ohPkgContent}genArkFiles(){(0,h.getAllFiles)(this.modulePath,[".ets",".ts"]).forEach((e=>{D.info("=== parse file:",e);let t=new p.ArkFile;t.setScene(this.projectScene),t.setModuleScene(this),t.setProjectName(this.projectScene.getProjectName()),(0,g.buildArkFileFromFile)(e,this.projectScene.getRealProjectDir(),t);const r=t.getFileSignature().toString();this.filesMap.set(r,t),this.projectScene.getFilesMap().set(r,t)}))}}t.ModuleScene=T},7799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCallGraph=void 0;const n=r(978);t.AbstractCallGraph=class{get signatureManager(){return this._signatureManager}get scene(){return this._scene}constructor(e){this.methods=new Set,this.calls=new Map,this._signatureManager=new n.MethodSignatureManager,this._scene=new n.SceneManager,this._scene.scene=e}loadCallGraph(e){this.processWorkList(e)}processWorkList(e){for(this.signatureManager.workList=e;0!=this.signatureManager.workList.length;){let e=this.signatureManager.workList.shift();if(!this.checkMethodForAnalysis(e))continue;this.preProcessMethod(e);let t=this.processMethod(e);for(let r of t)this.signatureManager.addToWorkList(r),this.addCall(e,r);this.signatureManager.addToProcessedList(e),this.addMethod(e)}}processMethod(e){var t;let r=[],i=null===(t=this.scene.getMethod(e))||void 0===t?void 0:t.getBody().getCfg();if(void 0!==i)for(let t of i.getStmts())if(t.containsInvokeExpr()){let i=this.resolveCall(e,t);for(let e of i)(0,n.isItemRegistered)(e,r,((e,t)=>e.toString()===t.toString()))||r.push(e)}return r}addMethod(e){null==this.getMethod(e)&&this.methods.add(e)}hasMethod(e){for(let t of this.methods)if(e.toString()===t.toString())return!0;return!1}addCall(e,t){this.getCall(e).length>0?(0,n.isItemRegistered)(t,this.getCall(e),((e,t)=>e.toString()===t.toString()))||this.calls.get(e).push(t):this.calls.set(e,[t])}getCalls(){return this.calls}getMethods(){return this.methods}getMethod(e){for(const t of this.methods)if(t.toString()===e.toString())return t;return null}getCall(e){for(const[t,r]of this.calls)if(t.toString()===e.toString())return r;return[]}checkMethodForAnalysis(e){if(void 0===e)return!1;if(this.signatureManager.findInProcessedList(e))return!1;return this.scene.scene.getFiles().some((t=>t.getFileSignature().toString()===e.getDeclaringClassSignature().getDeclaringFileSignature().toString()))}}},6348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassHierarchyAnalysisAlgorithm=void 0;const n=r(3532),i=r(9803),a=r(978),o=r(7799);class s extends o.AbstractCallGraph{resolveCall(e,t){let r,i=null,o=[],s=t.getInvokeExpr();if(void 0===s)return[];let c=this.resolveInvokeExpr(s,e.getDeclaringClassSignature().getDeclaringFileSignature().getFileName(),e);if(0==c.length)return s instanceof n.ArkInstanceInvokeExpr&&"console"==s.getBase().getName()&&"log"==s.getMethodSignature().getMethodSubSignature().getMethodName()&&o.push(s.getMethodSignature()),o;for(let e of c){if(i=e.getSignature(),r=e,null==i)return o;if(s instanceof n.ArkStaticInvokeExpr)return o.push(i),o;{if("constructor"===i.getMethodSubSignature().getMethodName())return o.push(i),o;let e=this.resolveAllCallTargets(i);for(let t of e){let e=this.scene.getMethod(t);null!=e&&(e.getDeclaringArkClass().getModifiers().has("AbstractKeyword")||e.getModifiers().has("AbstractKeyword")||(0,a.isItemRegistered)(e.getSignature(),o,((e,t)=>e.toString()===t.toString()))||o.push(t))}}}return o}resolveAllCallTargets(e){let t,r=[];t=this.scene.getExtendedClasses(e.getDeclaringClassSignature());for(let n of t){let t=n.getMethods();for(let n of t)n.getSubSignature().toString()===e.getMethodSubSignature().toString()&&((0,a.isItemRegistered)(n.getSignature(),r,((e,t)=>e.toString()===t.toString()))||r.push(n.getSignature()))}return r}resolveInvokeExpr(e,t,r){let o=e.getMethodSignature().getMethodSubSignature().getMethodName(),s=(new Set,[]);if(e instanceof n.ArkInstanceInvokeExpr){let t=e.getBase().getType();if(t instanceof i.ClassType){let e=this.scene.getExtendedClasses(t.getClassSignature());for(let t of e)for(let e of t.getMethods())e.getName()===o&&((0,a.isItemRegistered)(e,s,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||s.push(e))}}else if(e instanceof n.ArkStaticInvokeExpr){let t=this.scene.getMethod(e.getMethodSignature());null!=t&&((0,a.isItemRegistered)(t,s,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||s.push(t))}return s}preProcessMethod(e){}}t.ClassHierarchyAnalysisAlgorithm=s},8011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PointerTargetPair=t.StaticFieldPointer=t.InstanceFieldPointer=t.LocalPointer=t.Pointer=t.PointerTarget=void 0;t.PointerTarget=class{constructor(e,t){this.type=e,this.location=t}getType(){return this.type}getLocation(){return this.location}static genLocation(e,t){return e.toString()+t.getOriginPositionInfo()}};class r{constructor(){this.pointerTargetSet=new Set}addPointerTarget(e){for(let t of this.pointerTargetSet)if(t.getLocation()==e.getLocation())return;this.pointerTargetSet.add(e)}getPointerTarget(e){for(let t of this.pointerTargetSet)if(t==e)return t;return null}getAllPointerTargets(){let e=[];for(let t of this.pointerTargetSet)e.push(t);return e}}t.Pointer=r;t.LocalPointer=class extends r{constructor(e){super(),this.identifier=e}getIdentifier(){return this.identifier}toString(){let e="[LocalPointer] ";e+=this.getIdentifier().toString()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.InstanceFieldPointer=class extends r{constructor(e,t){super(),this.basePointerTarget=e,this.fieldSignature=t}getBasePointerTarget(){return this.basePointerTarget}getFieldSignature(){return this.fieldSignature}toString(){let e="[InstanceFieldPointer] ";e+=this.getBasePointerTarget().getType()+"."+this.fieldSignature.getFieldName()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.StaticFieldPointer=class extends r{constructor(e){super(),this.fieldSignature=e}getFieldSignature(){return this.fieldSignature}toString(){let e="[StaticFieldPointer] ";e+=this.fieldSignature.getBaseName()+"."+this.fieldSignature.getFieldName()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.PointerTargetPair=class{constructor(e,t){this.pointer=e,this.pointerTarget=t}getPointer(){return this.pointer}getPointerTarget(){return this.pointerTarget}}},975:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PointerFlowGraph=void 0;const i=r(8011),a=n(r(7015)).default.getLogger();t.PointerFlowGraph=class{constructor(){this.pointerFlowEdges=new Map,this.pointerSet=new Set}proPagate(e,t){const r=[],n=e;this.addPointerSetElement(n,t);const a=this.getPointerFlowEdges(n);for(let e of a)r.push(new i.PointerTargetPair(e,t));return r}getPointerSet(){return this.pointerSet}getPointerSetElement(e,t,r){const n=this.getPointerSet();for(let a of n)if(null!=r){if(null!=t&&a instanceof i.InstanceFieldPointer){if(a.getBasePointerTarget()===t&&a.getFieldSignature().toString()===r.toString())return a}else if(a instanceof i.StaticFieldPointer&&a.getFieldSignature().toString()===r.toString())return a}else if(null!=e&&a instanceof i.LocalPointer&&a.getIdentifier()===e)return a;let a=null;return a=null!=r?null==t?new i.StaticFieldPointer(r):new i.InstanceFieldPointer(t,r):new i.LocalPointer(e),this.pointerSet.add(a),a}addPointerSetElement(e,t){e.addPointerTarget(t)}getPointerFlowEdges(e){return this.pointerFlowEdges.get(e)||[]}addPointerFlowEdge(e,t){let r=[];if(!this.hasPointerFlowEdge(e,t)){const n=this.pointerFlowEdges.get(e)||[];n.push(t),this.pointerFlowEdges.set(e,n);let a=e.getAllPointerTargets();for(let e of a)r.push(new i.PointerTargetPair(t,e))}return r}hasPointerFlowEdge(e,t){if(this.pointerFlowEdges.has(e)){const r=this.pointerFlowEdges.get(e);return!!r&&r.includes(t)}return!1}printPointerFlowGraph(){a.info("PointerFlowGraph Elements: ");for(let e of this.getPointerSet())a.info("\t"+e.toString());a.info("PointerFlowGraph Edges: ");for(let e of this.pointerFlowEdges.keys()){a.info("\t"+e.toString());for(let t of this.getPointerFlowEdges(e))a.info("\t\t"+t.toString())}}}},9045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RapidTypeAnalysisAlgorithm=void 0;const n=r(3532),i=r(9803),a=r(978),o=r(7799);class s extends o.AbstractCallGraph{constructor(){super(...arguments),this.instancedClasses=new Set,this.ignoredCalls=new Map}resolveCall(e,t){let r,i,o=[],s=t.getInvokeExpr();if(void 0===s)return[];let c=this.resolveInvokeExpr(s,e.getDeclaringClassSignature().getDeclaringFileSignature().getFileName(),e);if(null==c)return o;for(let t of c){if(r=t.getSignature(),i=t,null==r)return o;if(s instanceof n.ArkStaticInvokeExpr)return o.push(r),o;{if("constructor"===r.getMethodSubSignature().getMethodName())return o.push(r),o;let t=this.resolveAllCallTargets(r);for(let r of t){let t=this.scene.getMethod(r);null!=t&&(t.getDeclaringArkClass().getModifiers().has("AbstractKeyword")||t.getModifiers().has("AbstractKeyword")||(null!==this.getInstancedClass(t.getDeclaringArkClass().getSignature())?(0,a.isItemRegistered)(t.getSignature(),o,((e,t)=>e.toString()===t.toString()))||o.push(r):this.saveIgnoredCalls(e,t.getSignature())))}}}return o}resolveAllCallTargets(e){let t,r=[];t=this.scene.getExtendedClasses(e.getDeclaringClassSignature());for(let n of t){let t=n.getMethods();for(let n of t)n.getSubSignature().toString()===e.getMethodSubSignature().toString()&&((0,a.isItemRegistered)(n.getSignature(),r,((e,t)=>e.toString()===t.toString()))||r.push(n.getSignature()))}return r}preProcessMethod(e){const t=this.collectInstantiatedClassesInMethod(e).filter((e=>!(null!=this.getInstancedClass(e))));for(let e of t){let t=this.getIgnoredCalls(e);if(0!=t.length){for(let e of t)this.addCall(e[0],e[1]),this.signatureManager.addToWorkList(e[1]);this.ignoredCalls.delete(e)}this.addInstancedClass(e)}}collectInstantiatedClassesInMethod(e){let t,r=this.scene.getMethod(e).getCfg();t=[];for(let e of r.getStmts()){let r=e.getExprs()[0];if(r instanceof n.ArkNewExpr){let e=r.getType().getClassSignature();null!=e&&((0,a.isItemRegistered)(e,t,((e,t)=>e.toString()===t.toString()))||t.push(e))}}return t}resolveInvokeExpr(e,t,r){let o=e.getMethodSignature().getMethodSubSignature().getMethodName(),s=o,c=new Set,l=[];if(e instanceof n.ArkInstanceInvokeExpr){let t=e.getBase().getType();if(t instanceof i.ClassType){let e=this.scene.getExtendedClasses(t.getClassSignature());for(let t of e)for(let e of t.getMethods())e.getName()===o&&((0,a.isItemRegistered)(e,l,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||l.push(e))}}else if(e instanceof n.ArkStaticInvokeExpr)if(o.includes(".")){let e=o.lastIndexOf("."),n=o.substring(0,e);if("this"===n){let e=this.scene.getClass(r.getDeclaringClassSignature());c.add([e.getName(),e.getDeclaringArkFile().getName()])}else c.add([n,t]),s=o.substring(e+1)}else{let t=this.scene.getMethod(e.getMethodSignature());null!=t&&((0,a.isItemRegistered)(t,l,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||l.push(t))}return l}saveIgnoredCalls(e,t){let r=t.getDeclaringClassSignature(),n=this.getIgnoredCalls(r);n.some((r=>r[0].toString()===e.toString()&&r[1].toString()===t.toString()))||(0!=n.length?n.push([e,t]):this.ignoredCalls.set(r,[[e,t]]))}getIgnoredCalls(e){for(let t of this.ignoredCalls.keys())if(t.toString()===e.toString())return this.ignoredCalls.get(t);return[]}deleteIgnoredCalls(e){for(let t of this.ignoredCalls.keys())t.toString()===e.toString()&&this.ignoredCalls.delete(t)}addInstancedClass(e){for(let t of this.instancedClasses)if(t.toString()===e.toString())return;this.instancedClasses.add(e)}getInstancedClass(e){for(let t of this.instancedClasses)if(t.toString()===e.toString())return t;return null}}t.RapidTypeAnalysisAlgorithm=s},1796:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePointerAnalysisAlogorithm=void 0;const i=r(3532),a=r(4576),o=r(9029),s=r(9803),c=r(978),l=r(7799),u=r(8011),d=r(975),p=n(r(7015)),_=r(3938),f=p.default.getLogger();class g extends l.AbstractCallGraph{constructor(e){super(e),this.workList=[],this.reachableStmts=[],this.reachableMethods=[],this.pointerFlowGraph=new d.PointerFlowGraph,this.CHAtool=this.scene.scene.makeCallGraphCHA([])}loadCallGraph(e){this.processWorkList(e),this.pointerFlowGraph.printPointerFlowGraph()}processWorkList(e){for(this.addReachable(e);0!=this.workList.length;){let e,t,r=this.workList.shift(),n=r.getPointer(),i=r.getPointerTarget();if(n instanceof u.LocalPointer?(t=n.getIdentifier(),e=this.pointerFlowGraph.getPointerSetElement(t,null,null)):n instanceof u.InstanceFieldPointer?(t=n.getBasePointerTarget(),e=this.pointerFlowGraph.getPointerSetElement(null,t,n.getFieldSignature())):n instanceof u.StaticFieldPointer&&(e=this.pointerFlowGraph.getPointerSetElement(null,null,n.getFieldSignature())),null!=e.getPointerTarget(i))continue;let o=this.pointerFlowGraph.proPagate(e,i);for(let e of o)this.workList.push(e);t instanceof a.Local&&(this.processFieldReferenceStmt(t,i),this.processInstanceInvokeStmt(t,i))}}resolveCall(e,t){throw new Error("Method not implemented.")}preProcessMethod(e){throw new Error("Method not implemented.")}addReachable(e){for(let t of e){if((0,c.isItemRegistered)(t,this.reachableMethods,((e,t)=>e.toString()===t.toString())))continue;this.reachableMethods.push(t);let e=this.scene.getMethod(t);if(null==e)continue;let r=e.getCfg().getStmts();this.reachableStmts.push(...r);for(let n of r)if(n instanceof o.ArkAssignStmt){let r=n.getLeftOp(),o=n.getRightOp();if(!(r instanceof a.Local))continue;if(o instanceof i.ArkNewExpr){let e=o.getType(),i=new u.PointerTarget(e,u.PointerTarget.genLocation(t,n));this.workList.push(new u.PointerTargetPair(this.pointerFlowGraph.getPointerSetElement(r,null,null),i))}else if(o instanceof a.Local)this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(o,null,null),this.pointerFlowGraph.getPointerSetElement(r,null,null));else if(o instanceof i.ArkStaticInvokeExpr){let t=this.scene.getMethod(o.getMethodSignature());if(null==t)continue;this.addReachable([t.getSignature()]),this.processInvokePointerFlow(e,t,n)}}else if(n instanceof o.ArkInvokeStmt){let t=n.getInvokeExpr();if(t instanceof i.ArkStaticInvokeExpr){let r=this.scene.getMethod(t.getMethodSignature());if(null==r)continue;this.addReachable([t.getMethodSignature()]),this.processInvokePointerFlow(e,r,n)}}}}processInstanceInvokeStmt(e,t){var r;for(let n of this.reachableStmts)if(n.containsInvokeExpr()){let a=n.getInvokeExpr();if(void 0===a)continue;if(a instanceof i.ArkInstanceInvokeExpr){if(e!=a.getBase())continue}else if(a instanceof i.ArkStaticInvokeExpr)continue;let o=null===(r=n.getCfg())||void 0===r?void 0:r.getDeclaringMethod(),s=this.getSpecificCallTarget(a,t);if(null==s)continue;s.getSignature();let c=s.getThisInstance();if(null==c)continue;this.workList.push(new u.PointerTargetPair(this.pointerFlowGraph.getPointerSetElement(c,null,null),t)),this.processInvokePointerFlow(o,s,n)}}processFieldReferenceStmt(e,t){for(let r of this.reachableStmts)if(r instanceof o.ArkAssignStmt&&r.containsFieldRef()){let n;if(null!=(n=this.getFieldRefFromUse(r))){let i=n.getFieldSignature();if(n instanceof _.ArkInstanceFieldRef){if(n.getBase()!==e)continue;this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(null,t,i),this.pointerFlowGraph.getPointerSetElement(r.getLeftOp(),null,null))}else n instanceof _.ArkStaticFieldRef&&this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(null,null,i),this.pointerFlowGraph.getPointerSetElement(r.getLeftOp(),null,null))}else if(null!=(n=this.getFieldFromDef(r))){let i=n.getFieldSignature();if(n instanceof _.ArkInstanceFieldRef){if(n.getBase()!==e)continue;this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(r.getRightOp(),null,null),this.pointerFlowGraph.getPointerSetElement(null,t,i))}else n instanceof _.ArkStaticFieldRef&&this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(r.getRightOp(),null,null),this.pointerFlowGraph.getPointerSetElement(null,null,n.getFieldSignature()))}}}processInvokePointerFlow(e,t,r){if((0,c.isItemRegistered)(t.getSignature(),this.getCall(e.getSignature()),((e,t)=>e.toString()===t.toString())))return;let n=r.getInvokeExpr();if(null==n)return;let i=e.getSignature(),a=t.getSignature();this.addCall(i,a),this.addMethod(i),this.addReachable([a]);let s=n.getArgs(),l=t.getParameterInstances();for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Constant=void 0;const n=r(9803);t.Constant=class{constructor(e,t=n.UnknownType.getInstance()){this.value=e,this.type=t}getValue(){return this.value}setValue(e){this.value=e}getUses(){return[]}getType(){return this.type}setType(e){this.type=e}toString(){let e="";return e=this.type instanceof n.StringType?"'"+this.value+"'":this.value,e}}},2222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decorator=void 0;t.Decorator=class{constructor(e){this.kind=e}getKind(){return this.kind}setContent(e){this.content=e}getContent(){return this.content}setParam(e){this.param=e}getParam(){return this.param}}},4243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefUseChain=void 0;t.DefUseChain=class{constructor(e,t,r){this.value=e,this.def=t,this.use=r}}},3532:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLiteralExpr=t.ArrayLiteralExpr=t.ArkUnopExpr=t.ArkPhiExpr=t.ArkCastExpr=t.ArkLengthExpr=t.ArkInstanceOfExpr=t.ArkTypeOfExpr=t.ArkConditionExpr=t.ArkBinopExpr=t.ArkDeleteExpr=t.ArkNewArrayExpr=t.ArkNewExpr=t.ArkStaticInvokeExpr=t.ArkInstanceInvokeExpr=t.AbstractInvokeExpr=t.AbstractExpr=void 0;const i=r(8596),a=r(7125),o=r(4576),s=r(9803),c=r(3938),l=r(2029),u=r(9029),d=n(r(7015)).default.getLogger();class p{inferType(e){return this}}t.AbstractExpr=p;class _ extends p{constructor(e,t){super(),this.methodSignature=e,this.args=t}getMethodSignature(){return this.methodSignature}setMethodSignature(e){this.methodSignature=e}getArg(e){return this.args[e]}getArgs(){return this.args}setArgs(e){this.args=e}getType(){return this.methodSignature.getType()}getUses(){let e=[];e.push(...this.args);for(const t of this.args)e.push(...t.getUses());return e}}t.AbstractInvokeExpr=_;t.ArkInstanceInvokeExpr=class extends _{constructor(e,t,r){super(t,r),this.base=e}getBase(){return this.base}setBase(e){this.base=e}getUses(){let e=[];e.push(this.base),e.push(...this.base.getUses()),e.push(...this.getArgs());for(const t of this.getArgs())e.push(...t.getUses());return e}toString(){let e=[];if(e.push("instanceinvoke "),e.push(this.base.toString()),e.push(".<"),e.push(this.getMethodSignature().toString()),e.push(">("),this.getArgs().length>0){for(const t of this.getArgs())e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}inferType(e){let t=this.base.getType();if(this.base instanceof o.Local&&t instanceof s.UnknownType?t=i.TypeInference.inferBaseType(this.base.getName(),e):t instanceof s.UnclearReferenceType&&(t=i.TypeInference.inferUnclearReferenceType(t.getName(),e)),!t)return d.warn("infer ArkInstanceInvokeExpr base type fail: "+this.toString()),this;this.base instanceof o.Local&&this.base.setType(t);const r=this.getMethodSignature().getMethodSubSignature().getMethodName(),n=e.getDeclaringArkFile().getScene();if("forEach"===r&&t instanceof s.ArrayType){const e=this.getArg(0);if(e.getType()instanceof s.CallableType){const r=e.getType().getMethodSignature(),a=n.getMethod(r);if(null!=a){const e=a.getBody().getCfg().getStmts()[0];if(e instanceof u.ArkAssignStmt&&e.getRightOp()instanceof c.ArkParameterRef){e.getRightOp().setType(t.getBaseType())}i.TypeInference.inferTypeInMethod(a)}}else d.warn("arg of forEach must be callable")}else if("constructor"===r&&t instanceof s.ClassType){const e=new a.MethodSubSignature;e.setMethodName(r),e.setReturnType(new s.ClassType(t.getClassSignature()));const n=new a.MethodSignature;return n.setDeclaringClassSignature(t.getClassSignature()),n.setMethodSubSignature(e),this.setMethodSignature(n),this}let l;if(t instanceof s.UnionType){for(const e of t.getTypes())if(l=this.inferMethod(e,r,n),l)break}else l=this.inferMethod(t,r,n);return l||(d.warn("invoke ArkInstanceInvokeExpr MethodSignature type fail: ",this.toString()),this)}inferMethod(e,t,r){var n,a,o;if(e instanceof s.ClassType){const a=r.getClass(e.getClassSignature());let o=null!==(n=null==a?void 0:a.getMethodWithName(t))&&void 0!==n?n:null==a?void 0:a.getStaticMethodWithName(t);if(o)return i.TypeInference.inferMethodReturnType(o),this.setMethodSignature(o.getSignature()),o.isStatic()?new f(o.getSignature(),this.getArgs()):this}else if(e instanceof s.AnnotationNamespaceType){const n=null===(a=r.getNamespace(e.getNamespaceSignature()))||void 0===a?void 0:a.getDefaultClass();let s=null!==(o=null==n?void 0:n.getMethodWithName(t))&&void 0!==o?o:null==n?void 0:n.getStaticMethodWithName(t);if(s)return i.TypeInference.inferMethodReturnType(s),this.setMethodSignature(s.getSignature()),new f(s.getSignature(),this.getArgs())}return null}};class f extends _{constructor(e,t){super(e,t)}toString(){let e=[];if(e.push("staticinvoke <"),e.push(this.getMethodSignature().toString()),e.push(">("),this.getArgs().length>0){for(const t of this.getArgs())e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}inferType(e){var t;const r=this.getMethodSignature().getMethodSubSignature().getMethodName();let n=l.ModelUtils.getStaticMethodWithName(r,e);if(!n){let i=e.getDeclaringArkFile();const o=l.ModelUtils.getTypeSignatureInImportInfoWithName(r,i);o&&o instanceof a.MethodSignature?n=i.getScene().getMethod(o):o&&o instanceof a.ClassSignature&&(n=(null===(t=i.getScene().getClass(o))||void 0===t?void 0:t.getMethodWithName("constructor"))||null)}return n&&(this.setMethodSignature(n.getSignature()),i.TypeInference.inferMethodReturnType(n)),this}}t.ArkStaticInvokeExpr=f;t.ArkNewExpr=class extends p{constructor(e){super(),this.classType=e}getUses(){return[]}getType(){return this.classType}toString(){return"new "+this.classType}inferType(e){const t=this.classType.getClassSignature().getClassName(),r=i.TypeInference.inferUnclearReferenceType(t,e);return r&&r instanceof s.ClassType&&(this.classType=r),this}};t.ArkNewArrayExpr=class extends p{constructor(e,t){super(),this.baseType=e,this.size=t}getSize(){return this.size}setSize(e){this.size=e}getType(){return new s.ArrayType(this.baseType,1)}getBaseType(){return this.baseType}setBaseType(e){this.baseType=e}inferType(e){if(this.baseType instanceof s.UnionType){const t=this.baseType.getTypes();for(let e=1;e>":case">>>":e===s.NumberType.getInstance()&&t===s.NumberType.getInstance()&&(r=s.NumberType.getInstance());break;case"<":case"<=":case">":case">=":case"==":case"!=":case"===":case"!==":case"&&":case"||":r=s.BooleanType.getInstance();break;case"??":r=e===s.UnknownType.getInstance()||e===s.UndefinedType.getInstance()||e===s.NullType.getInstance()?t:e}this.type=r}inferType(e){return this.inferOpType(this.op1,e),this.inferOpType(this.op2,e),this.setType(),this}}t.ArkBinopExpr=g;t.ArkConditionExpr=class extends g{constructor(e,t,r){super(e,t,r)}};t.ArkTypeOfExpr=class extends p{constructor(e){super(),this.op=e}getOp(){return this.op}setOp(e){this.op=e}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getType(){return s.StringType.getInstance()}toString(){return"typeof "+this.op}};t.ArkInstanceOfExpr=class extends p{constructor(e,t){super(),this.op=e,this.checkType=t}getOp(){return this.op}setOp(e){this.op=e}getType(){return s.BooleanType.getInstance()}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}toString(){return this.op+" instanceof "+this.checkType}};t.ArkLengthExpr=class extends p{constructor(e){super(),this.op=e}getOp(){return this.op}setOp(e){this.op=e}getType(){return s.NumberType.getInstance()}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}toString(){return"lengthof "+this.op}};t.ArkCastExpr=class extends p{constructor(e,t){super(),this.op=e,this.type=t}getOp(){return this.op}setOp(e){this.op=e}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getType(){return this.type}toString(){return"<"+this.type+">"+this.op}};t.ArkPhiExpr=class extends p{constructor(){super(),this.args=[],this.blockToArg=new Map,this.argToBlock=new Map}getUses(){let e=[];return e.push(...this.args),e}getArgs(){return this.args}setArgs(e){this.args=e}getArgToBlock(){return this.argToBlock}setArgToBlock(e){this.argToBlock=e}getType(){return this.args[0].getType()}toString(){let e=[];if(e.push("phi("),this.args.length>0){for(const t of this.args)e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}};t.ArkUnopExpr=class extends p{constructor(e,t){super(),this.op=e,this.operator=t}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getOp(){return this.op}getType(){return this.op.getType()}getOperator(){return this.operator}toString(){return this.operator+this.op}};t.ArrayLiteralExpr=class extends p{constructor(e,t){super(),this.elements=[],this.elements=e,this.type=t}getElements(){return this.elements}getUses(){let e=[];return e.push(),e}inferType(e){if(this.type instanceof s.UnionType){const t=this.type.getTypes();for(let e=1;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Local=void 0;const n=r(9803);t.Local=class{constructor(e,t=n.UnknownType.getInstance()){this.name=e,this.type=t,this.originalValue=null,this.declaringStmt=null,this.usedStmts=[]}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getOriginalValue(){return this.originalValue}setOriginalValue(e){this.originalValue=e}getDeclaringStmt(){return this.declaringStmt}setDeclaringStmt(e){this.declaringStmt=e}getUses(){return[]}addUsedStmt(e){this.usedStmts.push(e)}getUsedStmts(){return this.usedStmts}toString(){return this.getName()}}},6356:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LineColPosition=t.LinePosition=t.Position=void 0;const i=n(r(3221));t.Position=class{};t.LinePosition=class{constructor(e){this.lineNo=e}getLineNo(){return this.lineNo}};class a{constructor(e,t){this.lineNo=e,this.colNo=t}getLineNo(){return this.lineNo}getColNo(){return this.colNo}static buildFromNode(e,t){let{line:r,character:n}=i.default.getLineAndCharacterOfPosition(t,e.getStart(t));return new a(r+1,n+1)}}t.LineColPosition=a,a.DEFAULT=new a(-1,-1)},3938:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkCaughtExceptionRef=t.ArkThisRef=t.ArkParameterRef=t.ArkStaticFieldRef=t.ArkInstanceFieldRef=t.AbstractFieldRef=t.ArkArrayRef=t.AbstractRef=void 0;const i=n(r(7015)),a=r(4576),o=r(9803),s=r(8596),c=i.default.getLogger();class l{inferType(e){return this}}t.AbstractRef=l;t.ArkArrayRef=class extends l{constructor(e,t){super(),this.base=e,this.index=t}getBase(){return this.base}setBase(e){this.base=e}getIndex(){return this.index}setIndex(e){this.index=e}getType(){const e=this.base.getType();return e instanceof o.ArrayType?e.getBaseType():(c.warn("the type of base in ArrayRef is not ArrayType"),o.UnknownType.getInstance())}getUses(){let e=[];return e.push(this.base),e.push(...this.base.getUses()),e.push(this.index),e.push(...this.index.getUses()),e}toString(){return this.base+"["+this.index+"]"}};class u extends l{constructor(e){super(),this.fieldSignature=e}getFieldName(){return this.fieldSignature.getFieldName()}getFieldSignature(){return this.fieldSignature}setFieldSignature(e){this.fieldSignature=e}getType(){return this.fieldSignature.getType()}}t.AbstractFieldRef=u;t.ArkInstanceFieldRef=class extends u{constructor(e,t){super(t),this.base=e}getBase(){return this.base}setBase(e){this.base=e}getUses(){let e=[];return e.push(this.base),e.push(...this.base.getUses()),e}toString(){return this.base.toString()+".<"+this.getFieldSignature()+">"}inferType(e){var t;let r=this.base.getType();if(this.base instanceof a.Local&&r instanceof o.UnknownType?r=s.TypeInference.inferBaseType(this.base.getName(),e):r instanceof o.UnclearReferenceType&&(r=s.TypeInference.inferUnclearReferenceType(r.getName(),e)),!r)return c.warn("infer field ref base type fail: "+this.toString()),this;this.base instanceof a.Local&&this.base.setType(r);const n=s.TypeInference.inferFieldType(r,this.getFieldName(),e);return n&&this.getFieldSignature().setType(n),r instanceof o.ClassType?(this.getFieldSignature().setDeclaringSignature(r.getClassSignature()),(null===(t=e.getDeclaringArkFile().getScene().getClass(r.getClassSignature()))||void 0===t?void 0:t.getStaticFieldWithName(this.getFieldName()))?new d(this.getFieldSignature()):this):r instanceof o.AnnotationNamespaceType?(this.getFieldSignature().setDeclaringSignature(r.getNamespaceSignature()),new d(this.getFieldSignature())):(c.warn("infer field ref FieldSignature type fail: "+this.toString()),this)}};class d extends u{constructor(e){super(e)}getUses(){return[]}toString(){return this.getFieldSignature().toString()}}t.ArkStaticFieldRef=d;t.ArkParameterRef=class extends l{constructor(e,t){super(),this.index=e,this.paramType=t}getIndex(){return this.index}getType(){return this.paramType}setType(e){this.paramType=e}getUses(){return[]}toString(){return"parameter"+this.index+": "+this.paramType}};t.ArkThisRef=class extends l{constructor(e){super(),this.type=e}getType(){return this.type}getUses(){return[]}toString(){return"this: "+this.type}};t.ArkCaughtExceptionRef=class extends l{constructor(e){super(),this.type=e}getType(){return this.type}getUses(){return[]}toString(){return"caughtexception: "+this.type}}},9029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkThrowStmt=t.ArkSwitchStmt=t.ArkNopStmt=t.ArkReturnVoidStmt=t.ArkReturnStmt=t.ArkGotoStmt=t.ArkIfStmt=t.ArkInvokeStmt=t.ArkAssignStmt=t.Stmt=void 0;const n=r(8420),i=r(3532),a=r(3938),o=r(6356);class s{constructor(){this.text="",this.def=null,this.uses=[],this.originPosition=o.LineColPosition.DEFAULT,this.position=o.LineColPosition.DEFAULT,this.cfg=null}getUses(){let e=[];for(const t of this.uses)t instanceof i.AbstractExpr||e.push(t);return e}addUse(e){this.uses.push(e)}replaceUse(e,t){new n.StmtUseReplacer(e,t).caseStmt(this)}replaceUses(e){this.uses=Array.from(e)}getDef(){return this.def}setDef(e){this.def=e}getCfg(){return this.cfg}setCfg(e){this.cfg=e}isBranch(){return!1}getExpectedSuccessorCount(){return 1}containsInvokeExpr(){for(const e of this.uses)if(e instanceof i.AbstractInvokeExpr)return!0;return!1}replaceInvokeExpr(e){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationTypeQueryType=t.AnnotationNamespaceType=t.AnnotationType=t.TypeLiteralType=t.ClassAliasType=t.AliasType=t.TupleType=t.ArrayObjectType=t.ArrayType=t.ClassType=t.CallableType=t.NeverType=t.VoidType=t.UnionType=t.LiteralType=t.UndefinedType=t.NullType=t.StringType=t.NumberType=t.BooleanType=t.PrimitiveType=t.UnclearReferenceType=t.TypeParameterType=t.UnknownType=t.AnyType=t.Type=void 0;class r{}t.Type=r;class n extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"any"}}t.AnyType=n,n.INSTANCE=new n;class i extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"unknown"}}t.UnknownType=i,i.INSTANCE=new i;t.TypeParameterType=class extends r{constructor(e,t=i.getInstance()){super(),this.name=e,this.type=t}getName(){return this.name}getType(){return this.type}toString(){return this.name}};t.UnclearReferenceType=class extends r{constructor(e,t=[]){super(),this.name=e,this.genericTypes=t}getName(){return this.name}getGenericTypes(){return this.genericTypes}toString(){this.name;if(this.genericTypes.length>0){this.genericTypes.join(",")}return this.name}};class a extends r{constructor(e){super(),this.name=e}getName(){return this.name}toString(){return this.name}}t.PrimitiveType=a;class o extends a{constructor(){super("boolean")}static getInstance(){return this.INSTANCE}}t.BooleanType=o,o.INSTANCE=new o;class s extends a{constructor(){super("number")}static getInstance(){return this.INSTANCE}}t.NumberType=s,s.INSTANCE=new s;class c extends a{constructor(){super("string")}static getInstance(){return this.INSTANCE}}t.StringType=c,c.INSTANCE=new c;class l extends a{static getInstance(){return this.INSTANCE}constructor(){super("null")}}t.NullType=l,l.INSTANCE=new l;class u extends a{static getInstance(){return this.INSTANCE}constructor(){super("undefined")}}t.UndefinedType=u,u.INSTANCE=new u;t.LiteralType=class extends a{constructor(e){super("literal"),this.literalName=e}getliteralName(){return this.literalName}toString(){return this.getName()+": "+this.literalName}};t.UnionType=class extends r{constructor(e,t=i.getInstance()){super(),this.types=[...e],this.currType=t}getTypes(){return this.types}getCurrType(){return this.currType}setCurrType(e){this.currType=e}toString(){let e=this.types.join("|");return this.currType instanceof i||this.currType==this||(e+="-"+this.currType),e}};class d extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"void"}}t.VoidType=d,d.INSTANCE=new d;class p extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"never"}}t.NeverType=p,p.INSTANCE=new p;t.CallableType=class extends r{constructor(e){super(),this.methodSignature=e}getMethodSignature(){return this.methodSignature}toString(){return this.methodSignature.toString()}};t.ClassType=class extends r{constructor(e){super(),this.classSignature=e}getClassSignature(){return this.classSignature}setClassSignature(e){this.classSignature=e}toString(){return this.classSignature.toString()}};class _ extends r{constructor(e,t){super(),this.baseType=e,this.dimension=t}getBaseType(){return this.baseType}setBaseType(e){this.baseType=e}getDimension(){return this.dimension}toString(){const e=[];this.baseType&&e.push(this.baseType.toString());for(let t=0;t[]"}};t.TupleType=class extends r{constructor(e){super(),this.types=e}getTypes(){return this.types}toString(){return"["+this.types.join(", ")+"]"}};class f extends r{constructor(e){super(),this.originalType=e}getOriginalType(){return this.originalType}toString(){return"alias: "+this.originalType}}t.AliasType=f;t.ClassAliasType=class extends f{constructor(e){super(e)}};t.TypeLiteralType=class extends r{constructor(){super(),this.members=[]}getMembers(){return this.members}setMembers(e){this.members=e}addMember(e){this.members.push(e)}toString(){let e=[];return this.members.forEach((t=>{e.push(t.getName().toString())})),"["+e.join(", ")+"]"}};class g extends r{constructor(e){super(),this.originType=e}getOriginType(){return this.originType}toString(){return this.originType}}t.AnnotationType=g;class m extends g{static getInstance(e){const t=new m(e.getNamespaceName());return t.setNamespaceSignature(e),t}getNamespaceSignature(){return this.namespaceSignature}setNamespaceSignature(e){this.namespaceSignature=e}constructor(e){super(e)}getOriginType(){return super.getOriginType()}}t.AnnotationNamespaceType=m;t.AnnotationTypeQueryType=class extends g{constructor(e){super(e)}}},3165:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkIRTransformer=void 0;const s=r(3532),c=r(3938),l=a(r(3221)),u=r(4576),d=r(9029),p=r(9803),_=r(3755),f=r(634),g=r(7125),m=o(r(7015)),h=r(6607),y=r(5482),v=r(8951),b=r(732),x=r(4567),D=r(2142),S=r(2454),T=r(3819),C=r(6356),E=r(2029),k=m.default.getLogger();t.ArkIRTransformer=class{constructor(e,t){this.tempLocalPrefix="$temp",this.tempLocalIndex=0,this.locals=new Map,this.inBuildMethod=!1,this.stmtToOriginalStmt=new Map,this.sourceFile=e,this.declaringMethod=t,this.thisLocal=new u.Local("this",t.getDeclaringArkClass().getSignature().getType()),this.locals.set(this.thisLocal.getName(),this.thisLocal),this.inBuildMethod=E.ModelUtils.isArkUIBuilderMethod(t)}getLocals(){return new Set(this.locals.values())}getThisLocal(){return this.thisLocal}getStmtToOriginalStmt(){return this.stmtToOriginalStmt}prebuildStmts(){const e=[];let t=0;for(const r of this.declaringMethod.getParameters()){const n=new c.ArkParameterRef(t,r.getType());e.push(new d.ArkAssignStmt(this.getOrCreatLocal(r.getName(),n.getType()),n)),t++}const r=new c.ArkThisRef(this.getThisLocal().getType());return e.push(new d.ArkAssignStmt(this.getThisLocal(),r)),e}tsNodeToStmts(e){let t=[];return l.isExpressionStatement(e)?t=this.expressionStatementToStmts(e):l.isBlock(e)?t=this.blockToStmts(e):l.isSwitchStatement(e)?t=this.switchStatementToStmts(e):l.isForStatement(e)?t=this.forStatementToStmts(e):l.isForInStatement(e)||l.isForOfStatement(e)?t=this.rangeForStatementToStmts(e):l.isWhileStatement(e)?t=this.whileStatementToStmts(e):l.isDoStatement(e)?t=this.doStatementToStmts(e):l.isVariableStatement(e)?t=this.variableStatementToStmts(e):l.isVariableDeclarationList(e)?t=this.variableDeclarationListToStmts(e):l.isIfStatement(e)?t=this.ifStatementToStmts(e):l.isBreakStatement(e)||l.isContinueStatement(e)?t=this.gotoStatementToStmts(e):l.isThrowStatement(e)?t=this.throwStatementToStmts(e):l.isCatchClause(e)?t=this.catchClauseToStmts(e):l.isReturnStatement(e)&&(t=this.returnStatementToStmts(e)),this.mapStmtsToTsStmt(t,e),t}returnStatementToStmts(e){const t=[];if(e.expression){let{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);t.push(...n),h.IRUtils.moreThanOneAddress(r)&&(({value:r,stmts:n}=this.generateAssignStmtForValue(r)),t.push(...n)),t.push(new d.ArkReturnStmt(r))}else t.push(new d.ArkReturnVoidStmt);return t}blockToStmts(e){const t=[];for(const r of e.statements)t.push(...this.tsNodeToStmts(r));return t}expressionStatementToStmts(e){const{value:t,stmts:r}=this.tsNodeToValueAndStmts(e.expression);if(t instanceof s.AbstractInvokeExpr){const e=new d.ArkInvokeStmt(t);r.push(e);let n=!1;for(const e of r)if(e instanceof d.ArkAssignStmt&&e.getRightOp()instanceof s.ArkStaticInvokeExpr){const t=e.getRightOp();if(t.getMethodSignature().getMethodSubSignature().getMethodName()===S.COMPONENT_REPEAT){const r=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_REPEAT,S.COMPONENT_CREATE_FUNCTION),i=new s.ArkStaticInvokeExpr(r,t.getArgs());e.setRightOp(i),n=!0}}if(n){const e=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_REPEAT,S.COMPONENT_POP_FUNCTION),t=new s.ArkStaticInvokeExpr(e,[]),n=new d.ArkInvokeStmt(t);r.push(n)}}else if(t instanceof s.ArkDeleteExpr){const{value:e,stmts:n}=this.generateAssignStmtForValue(t);r.push(...n)}return r}switchStatementToStmts(e){const t=[];let{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);if(t.push(...n),h.IRUtils.moreThanOneAddress(r)){const{value:e,stmts:n}=this.generateAssignStmtForValue(r);t.push(...n),r=e}const i=[];for(const n of e.caseBlock.clauses)if(l.isCaseClause(n)){let{value:n,stmts:a}=this.tsNodeToValueAndStmts(e.expression);if(t.push(...a),h.IRUtils.moreThanOneAddress(n)){const{value:e,stmts:i}=this.generateAssignStmtForValue(r);t.push(...i),n=e}i.push(n)}return t}forStatementToStmts(e){const t=[];if(e.initializer&&t.push(...this.tsNodeToValueAndStmts(e.initializer).stmts),e.condition){const{value:r,stmts:n}=this.conditionToValueAndStmts(e.condition);t.push(...n),t.push(new d.ArkIfStmt(r))}return e.incrementor&&t.push(...this.tsNodeToValueAndStmts(e.incrementor).stmts),t}rangeForStatementToStmts(e){const t=[],{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.initializer);t.push(...n);const{value:i,stmts:a}=this.tsNodeToValueAndStmts(e.expression);t.push(...a);const o=this.generateTempLocal(p.NumberType.getInstance());t.push(new d.ArkAssignStmt(o,new s.ArkLengthExpr(i)));const l=this.generateTempLocal(p.NumberType.getInstance());t.push(new d.ArkAssignStmt(l,f.ValueUtil.getOrCreateNumberConst(0)));const u=new s.ArkConditionExpr(l,o,">=");t.push(new d.ArkIfStmt(u));const _=new c.ArkArrayRef(i,l);t.push(new d.ArkAssignStmt(r,_));const g=new s.ArkBinopExpr(l,f.ValueUtil.getOrCreateNumberConst(1),"+");return t.push(new d.ArkAssignStmt(l,g)),t}whileStatementToStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkIfStmt(r)),t}doStatementToStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkIfStmt(r)),t}variableStatementToStmts(e){return this.variableDeclarationListToStmts(e.declarationList)}variableDeclarationListToStmts(e){return this.variableDeclarationListToValueAndStmts(e).stmts}ifStatementToStmts(e){const t=[];if(this.inBuildMethod){const{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression,!1);t.push(...n);const i=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_CREATE_FUNCTION),{value:a,stmts:o}=this.generateAssignStmtForValue(r);t.push(...o);const c=new s.ArkStaticInvokeExpr(i,[a]),{value:l,stmts:u}=this.generateAssignStmtForValue(c);t.push(...u);const p=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_BRANCH_FUNCTION),_=new s.ArkStaticInvokeExpr(p,[f.ValueUtil.getOrCreateNumberConst(0)]),g=new d.ArkInvokeStmt(_);if(t.push(g),t.push(...this.tsNodeToStmts(e.thenStatement)),e.elseStatement){const r=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_BRANCH_FUNCTION),n=new s.ArkStaticInvokeExpr(r,[f.ValueUtil.getOrCreateNumberConst(1)]),i=new d.ArkInvokeStmt(n);t.push(i),t.push(...this.tsNodeToStmts(e.elseStatement))}const m=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_POP_FUNCTION),h=new s.ArkStaticInvokeExpr(m,[]),y=new d.ArkInvokeStmt(h);t.push(y)}else{const{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);t.push(...n),t.push(new d.ArkIfStmt(r))}return t}gotoStatementToStmts(e){return[new d.ArkGotoStmt]}throwStatementToStmts(e){const t=[],{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkThrowStmt(r)),t}catchClauseToStmts(e){const t=[];if(e.variableDeclaration){const{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.variableDeclaration);t.push(...n);const i=new c.ArkCaughtExceptionRef(p.UnknownType.getInstance());t.push(new d.ArkAssignStmt(r,i))}return t}tsNodeToValueAndStmts(e){return l.isBinaryExpression(e)?this.binaryExpressionToValueAndStmts(e):l.isCallExpression(e)?this.callExpressionToValueAndStmts(e):l.isVariableDeclarationList(e)?this.variableDeclarationListToValueAndStmts(e):l.isIdentifier(e)?this.identifierToValueAndStmts(e):l.isPropertyAccessExpression(e)?this.propertyAccessExpressionToValue(e):l.isPrefixUnaryExpression(e)?this.prefixUnaryExpressionToValueAndStmts(e):l.isPostfixUnaryExpression(e)?this.postfixUnaryExpressionToValueAndStmts(e):l.isTemplateExpression(e)?this.templateExpressionToValueAndStmts(e):l.isAwaitExpression(e)?this.awaitExpressionToValueAndStmts(e):l.isDeleteExpression(e)?this.deleteExpressionToValueAndStmts(e):l.isVoidExpression(e)?this.voidExpressionToValueAndStmts(e):l.isElementAccessExpression(e)?this.elementAccessExpressionToValueAndStmts(e):l.isNewExpression(e)?this.newExpressionToValueAndStmts(e):l.isParenthesizedExpression(e)?this.parenthesizedExpressionToValueAndStmts(e):l.isAsExpression(e)?this.asExpressionToValueAndStmts(e):l.isNonNullExpression(e)?this.nonNullExpressionToValueAndStmts(e):l.isTypeAssertionExpression(e)?this.typeAssertionToValueAndStmts(e):l.isTypeOfExpression(e)?this.typeOfExpressionToValueAndStmts(e):l.isArrayLiteralExpression(e)?this.arrayLiteralExpressionToValueAndStmts(e):this.isLiteralNode(e)?this.literalNodeToValueAndStmts(e):l.isArrowFunction(e)||l.isFunctionExpression(e)?this.callableNodeToValueAndStmts(e):l.isClassExpression(e)?this.classExpressionToValueAndStmts(e):l.isEtsComponentExpression(e)?this.etsComponentExpressionToValueAndStmts(e):l.isObjectLiteralExpression(e)?this.objectLiteralExpresionToValueAndStmts(e):e.kind===l.SyntaxKind.ThisKeyword?this.thisExpressionToValueAndStmts(e):l.isConditionalExpression(e)?this.conditionalExpressionToValueAndStmts(e):{value:new u.Local(e.getText(this.sourceFile)),stmts:[]}}thisExpressionToValueAndStmts(e){return{value:this.getThisLocal(),stmts:[]}}conditionalExpressionToValueAndStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.condition);t.push(...n),t.push(new d.ArkIfStmt(r));const{value:i,stmts:a}=this.tsNodeToValueAndStmts(e.whenTrue);t.push(...a);const{value:o,stmts:s}=this.generateAssignStmtForValue(i);t.push(...s);const{value:c,stmts:l}=this.tsNodeToValueAndStmts(e.whenFalse);return t.push(...l),t.push(new d.ArkAssignStmt(o,c)),{value:o,stmts:t}}objectLiteralExpresionToValueAndStmts(e){return{value:(0,T.tsNode2Value)(e,this.sourceFile,this.declaringMethod.getDeclaringArkClass(),this.declaringMethod),stmts:[]}}createCustomViewStmt(e,t,r){const n=[],i=new g.ClassSignature;i.setClassName(e);const a=new p.ClassType(i),o=new s.ArkNewExpr(a),{value:c,stmts:u}=this.generateAssignStmtForValue(o);n.push(...u);const _=new g.MethodSubSignature;_.setMethodName("constructor");const f=new g.MethodSignature;f.setDeclaringClassSignature(i),f.setMethodSubSignature(_),n.push(new d.ArkInvokeStmt(new s.ArkInstanceInvokeExpr(c,f,t)));let m=[c];if(l.isEtsComponentExpression(r)&&r.body){const e=l.factory.createArrowFunction([],[],[],void 0,void 0,r.body);e.pos=r.body.pos,e.end=r.body.end;const{value:t,stmts:n}=this.callableNodeToValueAndStmts(e);m.push(t)}const h=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_CUSTOMVIEW,S.COMPONENT_CREATE_FUNCTION);let y=new s.ArkStaticInvokeExpr(h,m);const{value:v,stmts:b}=this.generateAssignStmtForValue(y);n.push(...b);const x=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_CUSTOMVIEW,S.COMPONENT_POP_FUNCTION),T=new s.ArkStaticInvokeExpr(x,[]);return n.push(new d.ArkInvokeStmt(T)),{value:v,stmts:n}}etsComponentExpressionToValueAndStmts(e){const t=[],r=e.expression.text,n=[];for(const r of e.arguments){let{value:e,stmts:i}=this.tsNodeToValueAndStmts(r);t.push(...i),h.IRUtils.moreThanOneAddress(e)&&(({value:e,stmts:i}=this.generateAssignStmtForValue(e)),t.push(...i)),n.push(e)}if((0,S.isEtsSystemComponent)(r)){const i=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(r,S.COMPONENT_CREATE_FUNCTION),a=new s.ArkStaticInvokeExpr(i,n),{value:o,stmts:c}=this.generateAssignStmtForValue(a);if(t.push(...c),e.body)for(const r of e.body.statements)t.push(...this.tsNodeToStmts(r));const l=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(r,S.COMPONENT_POP_FUNCTION),u=new s.ArkStaticInvokeExpr(l,[]),p=new d.ArkInvokeStmt(u);return t.push(p),{value:o,stmts:t}}return this.createCustomViewStmt(r,n,e)}classExpressionToValueAndStmts(e){const t=this.declaringMethod.getDeclaringArkClass(),r=t.getDeclaringArkNamespace(),n=new x.ArkClass;if(r)(0,b.buildNormalArkClassFromArkNamespace)(e,r,n,this.sourceFile,this.declaringMethod),r.addArkClass(n);else{const r=t.getDeclaringArkFile();(0,b.buildNormalArkClassFromArkFile)(e,r,n,this.sourceFile,this.declaringMethod),r.addArkClass(n)}return{value:this.getOrCreatLocal(n.getName(),new p.ClassType(n.getSignature())),stmts:[]}}templateExpressionToValueAndStmts(e){const t=[],r=e.head,n=[f.ValueUtil.createStringConst(r.rawText?r.rawText:"")];for(const r of e.templateSpans){const{value:e,stmts:i}=this.tsNodeToValueAndStmts(r.expression);t.push(...t);const a=r.literal.rawText,o=a||"";n.push(e),n.push(f.ValueUtil.createStringConst(o))}let{value:i,stmts:a}=this.generateAssignStmtForValue(new s.ArkBinopExpr(n[0],n[1],"+"));t.push(...a);for(let e=2;e0){const t=this.resolveTypeNode(e.typeArguments[0]);t instanceof p.AnyType||t instanceof p.UnknownType||(r=t)}let n=0;const i=[];if(e.arguments&&e.arguments.length>0){n=e.arguments.length;for(const r of e.arguments){const{value:e,stmts:n}=this.tsNodeToValueAndStmts(r);i.push(e),t.push(...n)}}let a=f.ValueUtil.getOrCreateNumberConst(n);1===n?a=i[0]:n>1&&!(i[0].getType()instanceof p.AnyType||i[0].getType()instanceof p.UnknownType)&&(r=i[0].getType());const{value:o,stmts:l}=this.generateAssignStmtForValue(new s.ArkNewArrayExpr(r,a));if(t.push(...l),o.setType(new p.ArrayObjectType(r,1)),n>1)for(let e=0;e1&&(a=new p.UnionType(Array.from(r)));const o=new s.ArkNewArrayExpr(a,f.ValueUtil.getOrCreateNumberConst(i)),{value:l,stmts:u}=this.generateAssignStmtForValue(o);t.push(...u);for(let e=0;e"==e||">="==e||"=="==e||"==="==e||"!="==e||"!=="==e}flipOperator(e){let t="";switch(e){case"<":t=">=";break;case"<=":t=">";break;case">":t="<=";break;case">=":t="<";break;case"==":t="!=";break;case"===":t="!==";break;case"!=":t="==";break;case"!==":t="===";break;default:k.warn(`unsupported operator ${e} to flip`)}return t}resolveTypeNode(e){switch(e.kind){case l.SyntaxKind.BooleanKeyword:return p.BooleanType.getInstance();case l.SyntaxKind.NumberKeyword:return p.NumberType.getInstance();case l.SyntaxKind.StringKeyword:return p.StringType.getInstance();case l.SyntaxKind.UndefinedKeyword:return p.UndefinedType.getInstance();case l.SyntaxKind.NullKeyword:return p.NullType.getInstance();case l.SyntaxKind.AnyKeyword:return p.AnyType.getInstance();case l.SyntaxKind.VoidKeyword:return p.VoidType.getInstance();case l.SyntaxKind.NeverKeyword:return p.NeverType.getInstance();case l.SyntaxKind.TypeReference:return new p.UnclearReferenceType(e.getText(this.sourceFile));case l.SyntaxKind.ArrayType:return new p.ArrayType(this.resolveTypeNode(e.elementType),1);case l.SyntaxKind.TupleType:const t=[];return e.elements.forEach((e=>{t.push(this.resolveTypeNode(e))})),new p.TupleType(t)}return p.UnknownType.getInstance()}getTypeOfLiteralNode(e){let t;switch(e.kind){case l.SyntaxKind.NumericLiteral:case l.SyntaxKind.BigIntLiteral:t=p.NumberType.getInstance();break;case l.SyntaxKind.StringLiteral:case l.SyntaxKind.RegularExpressionLiteral:t=p.StringType.getInstance();break;case l.SyntaxKind.NullKeyword:t=p.NullType.getInstance();break;case l.SyntaxKind.UndefinedKeyword:t=p.UndefinedType.getInstance();break;case l.SyntaxKind.TrueKeyword:case l.SyntaxKind.FalseKeyword:t=p.BooleanType.getInstance();break;default:k.warn(`ast node's syntaxKind is ${l.SyntaxKind[e.kind]}, not literalNode`),t=p.UnknownType.getInstance()}return t}isLiteralNode(e){return!!(l.isStringLiteral(e)||l.isNumericLiteral(e)||l.isBigIntLiteral(e)||l.isRegularExpressionLiteral(e)||l.isNoSubstitutionTemplateLiteral(e)||e.kind===l.SyntaxKind.NullKeyword||e.kind===l.SyntaxKind.TrueKeyword||e.kind===l.SyntaxKind.FalseKeyword)}mapStmtsToTsStmt(e,t){const r=new d.Stmt;r.setText(t.getText(this.sourceFile));const n=C.LineColPosition.buildFromNode(t,this.sourceFile);r.setOriginPositionInfo(n),r.setPositionInfo(n);for(const t of e)-1===t.getOriginPositionInfo().getLineNo()&&(t.setOriginPositionInfo(r.getOriginPositionInfo()),this.stmtToOriginalStmt.set(t,r))}}},9020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BodyBuilder=void 0;const n=r(2939),i=r(1898);t.BodyBuilder=class{constructor(e,t,r,n){this.methodSignature=e,this.cfgBuilder=new i.CfgBuilder(t,this.methodSignature.getMethodSubSignature().getMethodName(),r,n)}build(){this.cfgBuilder.buildCfgBuilder();const{cfg:e,originalCfg:t,stmtToOriginalStmt:r,locals:i}=this.cfgBuilder.buildCfgAndOriginalCfg();return e.buildDefUseStmt(),new n.ArkBody(this.methodSignature,i,t,e,r)}}},1898:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CfgBuilder=void 0;const s=a(r(3221)),c=o(r(7015)),l=r(9029),u=r(7451),d=r(6624),p=r(3165),_=r(2029);c.default.getLogger();class f{constructor(e,t,r,n){this.passTmies=0,this.numOfIdentifier=0,this.isDoWhile=!1,this.type=e,this.code=t,this.next=null,this.lasts=new Set,this.walked=!1,this.index=0,this.line=-1,this.column=-1,this.astNode=r,this.scopeID=n,this.block=null,this.ifExitPass=!1}}class g extends f{constructor(e,t,r,n){super(e,t,r,n),this.doStatement=null,this.nextT=null,this.nextF=null,this.loopBlock=null,this.condition=""}}class m extends f{constructor(e,t,r,n){super(e,t,r,n),this.cases=[],this.default=null,this.nexts=[]}}class h extends f{constructor(e,t,r,n){super(e,t,r,n),this.tryFirst=null,this.tryExit=null,this.catchStatement=null,this.catchError="",this.finallyStatement=null}}class y{constructor(e,t){this.value=e,this.stmt=t}}class v{constructor(e,t,r){this.id=e,this.level=r,this.parent=null}}class b{constructor(e){this.walked=!1,this.stmts=e,this.nexts=new Set,this.lasts=new Set}}class x extends Error{constructor(e){super(e),this.name="textError"}}t.CfgBuilder=class{constructor(e,t,r,n){this.exits=[],this.name=t,this.astRoot=e,this.declaringMethod=r,this.declaringClass=r.getDeclaringArkClass(),this.entry=new f("entry","",e,0),this.loopStack=[],this.switchExitStack=[],this.functions=[],this.breakin="",this.statementArray=[],this.dotEdges=[],this.exit=new f("exit","return;",null,0),this.scopes=[],this.scopeLevel=0,this.tempVariableNum=0,this.current3ACstm=this.entry,this.blocks=[],this.entryBlock=new b([this.entry]),this.exitBlock=new b([this.entry]),this.currentDeclarationKeyword="",this.variables=[],this.importFromPath=[],this.catches=[],this.sourceFile=n}walkAST(e,t,r){var n,i,a,o,c,l,u,d,p,_,b,x;function D(t){if("ifStatement"==e.type){let r=e;null==r.nextT?(r.nextT=t,t.lasts.add(r)):(r.nextF=t,t.lasts.add(r))}else if("loopStatement"==e.type){let r=e;r.nextT=t,t.lasts.add(r)}else if("catchOrNot"==e.type){let r=e;r.nextT=t,t.lasts.add(r)}else e.next=t,t.lasts.add(e)}this.scopeLevel++;let S=new v(this.scopes.length,new Set,this.scopeLevel);for(let e=this.scopes.length-1;e>=0;e--)if(this.scopes[e].level==this.scopeLevel-1){S.parent=this.scopes[e];break}this.scopes.push(S);for(let t=0;t0){let e=new f("statement","finally",v,S.id),r=new f("finally exit","",v,S.id);this.walkAST(e,r,[...v.finallyBlock.statements]),t.finallyStatement=e.next,null===(x=e.next)||void 0===x||x.lasts.add(t)}e=t}}this.scopeLevel--,"breakStatement"!=e.type&&"continueStatement"!=e.type&&(e.next=t,t.lasts.add(e))}addReturnInEmptyMethod(){if(this.entry.next==this.exit){const e=new f("returnStatement","return;",null,this.entry.scopeID);this.entry.next=e,e.lasts.add(this.entry),e.next=this.exit,this.exit.lasts=new Set([e])}}deleteExit(){for(const e of this.exits)for(const t of[...e.lasts])if(t instanceof g){if(t.nextT==e){t.nextT=e.next;const r=[...e.next.lasts];r[r.indexOf(e)]=t,e.next.lasts=new Set(r)}else if(t.nextF==e){t.nextF=e.next;const r=[...e.next.lasts];r[r.indexOf(e)]=t,e.next.lasts=new Set(r)}}else if(t instanceof m)for(let r=0;r0;){let r=e.pop();if(r.type.includes("exit"))continue;if(t.has(r))continue;const n=new b([]);for(this.blocks.push(n);r&&!t.has(r);){if("loopStatement"==r.type&&n.stmts.length>0){e.push(r);break}if(n.stmts.push(r),r.block=n,t.add(r),r instanceof g){t.has(r.nextF)||e.push(r.nextF),t.has(r.nextT)||e.push(r.nextT);break}if(r instanceof m){for(const t of r.cases)e.push(t.stmt);r.default&&e.push(r.default);break}if(r instanceof h){r.next&&e.push(r.next),r.finallyStatement&&e.push(r.finallyStatement),r.catchStatement&&e.push(r.catchStatement),r.tryFirst&&e.push(r.tryFirst);break}if(r.next){if(("continueStatement"==r.type||"loopStatement"==r.next.type)&&r.next.block)break;if(r.next.type.includes("exit"))break;if(r.next.passTmies++,r.next.passTmies==r.next.lasts.size||"loopStatement"==r.next.type||r.next.isDoWhile){if(r.next.scopeID!=r.scopeID&&!(r.next instanceof g&&r.next.doStatement)){e.push(r.next);break}r=r.next}}}}}buildBlocksNextLast(){var e,t,r,n,i,a;for(let o of this.blocks)for(let s of o.stmts){let c=o.stmts.indexOf(s)==o.stmts.length-1;if(s instanceof g){let i=null===(e=s.nextT)||void 0===e?void 0:e.block;!i||!c&&i==o||(null===(t=s.nextT)||void 0===t?void 0:t.type.includes(" exit"))||(o.nexts.add(i),i.lasts.add(o));let a=null===(r=s.nextF)||void 0===r?void 0:r.block;!a||!c&&a==o||(null===(n=s.nextF)||void 0===n?void 0:n.type.includes(" exit"))||(o.nexts.add(a),a.lasts.add(o))}else if(s instanceof m){for(const e of s.cases){const t=e.stmt.block;!t||!c&&t==o||e.stmt.type.includes(" exit")||(o.nexts.add(t),t.lasts.add(o))}if(s.default){const e=s.default.block;!e||!c&&e==o||s.default.type.includes(" exit")||(o.nexts.add(e),e.lasts.add(o))}}else{let e=null===(i=s.next)||void 0===i?void 0:i.block;!e||!c&&e==o||(null===(a=s.next)||void 0===a?void 0:a.type.includes(" exit"))||(o.nexts.add(e),e.lasts.add(o))}}}addReturnBlock(){var e,t;let r=[];for(let e of[...this.exit.lasts])"returnStatement"!=e.type&&r.push(e);if(r.length<1)return;const n=new f("returnStatement","return;",null,this.exit.scopeID);if(1!=r.length||r[0]instanceof g){let e=new b([n]);n.block=e,this.blocks.push(e);for(const i of r){i.next=n,n.lasts.add(i),n.next=this.exit;const r=[...this.exit.lasts];r[r.indexOf(i)]=n,this.exit.lasts=new Set(r),null===(t=i.block)||void 0===t||t.nexts.add(e)}}else{const t=r[0];t.next=n,n.lasts=new Set([t]),n.next=this.exit;const i=[...this.exit.lasts];i[i.indexOf(t)]=n,this.exit.lasts=new Set(i),null===(e=t.block)||void 0===e||e.stmts.push(n),n.block=t.block}}resetWalked(){for(let e of this.statementArray)e.walked=!1}addStmtBuilderPosition(){for(const e of this.statementArray)if(e.astNode){const{line:t,character:r}=s.getLineAndCharacterOfPosition(this.sourceFile,e.astNode.getStart(this.sourceFile));e.line=t+1,e.column=r+1}}CfgBuilder2Array(e){if(!e.walked)if(e.walked=!0,e.index=this.statementArray.length,e.type.includes(" exit")||this.statementArray.push(e),"ifStatement"==e.type||"loopStatement"==e.type||"catchOrNot"==e.type){let t=e;if(null==t.nextT||null==t.nextF)return void this.errorTest(t);this.CfgBuilder2Array(t.nextF),this.CfgBuilder2Array(t.nextT)}else if("switchStatement"==e.type){let t=e;for(let e of t.nexts)this.CfgBuilder2Array(e)}else if("tryStatement"==e.type){let t=e;t.tryFirst&&this.CfgBuilder2Array(t.tryFirst),t.catchStatement&&this.CfgBuilder2Array(t.catchStatement),t.finallyStatement&&this.CfgBuilder2Array(t.finallyStatement),t.next&&this.CfgBuilder2Array(t.next)}else null!=e.next&&this.CfgBuilder2Array(e.next)}getDotEdges(e){if(0==this.statementArray.length&&this.CfgBuilder2Array(this.entry),!e.walked)if(e.walked=!0,"ifStatement"==e.type||"loopStatement"==e.type||"catchOrNot"==e.type){let t=e;if(null==t.nextT||null==t.nextF)return void this.errorTest(t);let r=[t.index,t.nextF.index];this.dotEdges.push(r),r=[t.index,t.nextT.index],this.dotEdges.push(r),this.getDotEdges(t.nextF),this.getDotEdges(t.nextT)}else if("switchStatement"==e.type){let t=e;for(let e of t.nexts){let r=[t.index,e.index];this.dotEdges.push(r),this.getDotEdges(e)}}else if(null!=e.next){let t=[e.index,e.next.index];this.dotEdges.push(t),this.getDotEdges(e.next)}}errorTest(e){var t,r;let n="ifnext error ";throw(null===(t=this.declaringClass)||void 0===t?void 0:t.getDeclaringArkFile())&&(n+=(null===(r=this.declaringClass)||void 0===r?void 0:r.getDeclaringArkFile().getName())+"."+this.declaringClass.getName()+"."+this.name),n+="\n"+e.code,new x(n)}getStatementByText(e){const t=[];for(let r of this.statementArray)r.code.replace(/\s/g,"")==e.replace(/\s/g,"")&&t.push(r);return t}printBlocks(){var e,t,r,n,i,a,o;let s="";(null===(e=this.declaringClass)||void 0===e?void 0:e.getDeclaringArkFile())&&(s+=this.declaringClass.getDeclaringArkFile().getName()+"\n");for(let e=0;e0!=e.stmts.length)),this.buildBlocksNextLast(),this.addReturnBlock(),this.resetWalked()}handleBuilder(e){let t=this.entry;for(const r of e){const e=new f("statement",r.getText(this.sourceFile),r,0);t.next=e,e.lasts.add(t),t=e}t.next=this.exit,this.exit.lasts.add(t)}buildCfgAndOriginalCfg(){const e=new d.Cfg,t=new Map;let r=!0;const n=[],i=new Set,a=new p.ArkIRTransformer(this.sourceFile,this.declaringMethod),o=a.getStmtToOriginalStmt();for(let s=0;s{"use strict";function r(e){return t.BUILDIN_ATOMIC_COMPONENT.has(e)}function n(e){return t.BUILDIN_SYSTEM_COMPONENT.has(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.SPECIAL_CONTAINER_COMPONENT=t.COMPONENT_BUILD_FUNCTION=t.COMPONENT_BRANCH_FUNCTION=t.COMPONENT_IF_BRANCH=t.COMPONENT_IF=t.COMPONENT_REPEAT=t.COMPONENT_CUSTOMVIEW=t.COMPONENT_POP_FUNCTION=t.COMPONENT_CREATE_FUNCTION=t.isEtsContainerComponent=t.isEtsSystemComponent=t.isEtsAtomicComponent=t.BUILDER_PARAM_DECORATOR=t.BUILDER_DECORATOR=t.ENTRY_DECORATOR=t.COMPONENT_DECORATOR=t.BUILDIN_ATOMIC_COMPONENT=t.BUILDIN_SYSTEM_COMPONENT=t.ETS_COMPILER_OPTIONS=void 0,t.ETS_COMPILER_OPTIONS={ets:{emitDecorators:[{name:"Entry",emitParameters:!0},{name:"Component",emitParameters:!1},{name:"Reusable",emitParameters:!1},{name:"CustomDialog",emitParameters:!1},{name:"Consume",emitParameters:!0},{name:"Link",emitParameters:!1},{name:"LocalStorageLink",emitParameters:!0},{name:"LocalStorageProp",emitParameters:!0},{name:"ObjectLink",emitParameters:!1},{name:"Prop",emitParameters:!1},{name:"Provide",emitParameters:!0},{name:"State",emitParameters:!1},{name:"StorageLink",emitParameters:!0},{name:"StorageProp",emitParameters:!0},{name:"Builder",emitParameters:!1},{name:"BuilderParam",emitParameters:!1},{name:"Observed",emitParameters:!1},{name:"Require",emitParameters:!1},{name:"Sendable",emitParameters:!1}],propertyDecorators:[{name:"Link",needInitialization:!1},{name:"Prop",needInitialization:!1},{name:"ObjectLink",needInitialization:!1},{name:"Consume",needInitialization:!1}],render:{method:["build","pageTransition"],decorator:"Builder"},components:["AbilityComponent","AlphabetIndexer","Animator","Badge","Blank","Button","Calendar","CalendarPicker","Camera","Canvas","Checkbox","CheckboxGroup","Circle","ColorPicker","ColorPickerDialog","Column","ColumnSplit","ContentSlot","Counter","DataPanel","DatePicker","Divider","EffectComponent","Ellipse","EmbeddedComponent","Flex","FolderStack","FormComponent","FormLink","FrictionMotion","Gauge","GeometryView","Grid","GridCol","GridContainer","GridItem","GridRow","Hyperlink","Image","ImageAnimator","Line","List","ListItem","ListItemGroup","LoadingProgress","Marquee","MediaCachedImage","Menu","MenuItem","MenuItemGroup","NavDestination","NavRouter","Navigation","Navigator","NodeContainer","Option","PageTransitionEnter","PageTransitionExit","Panel","Particle","Path","PatternLock","Piece","PluginComponent","Polygon","Polyline","Progress","QRCode","Radio","Rating","Rect","Refresh","RelativeContainer","RemoteWindow","RootScene","Row","RowSplit","RichText","Screen","Scroll","ScrollBar","ScrollMotion","Search","Section","Select","Shape","Sheet","SideBarContainer","Slider","Span","Stack","Stepper","StepperItem","Swiper","TabContent","Tabs","Text","TextPicker","TextClock","TextArea","TextInput","TextTimer","TimePicker","Toggle","Video","Web","WindowScene","WithTheme","XComponent","WaterFlow","FlowItem","ImageSpan","LocationButton","PasteButton","SaveButton","SpringMotion","SpringProp","SymbolSpan","SymbolGlyph","UIExtensionComponent","RichEditor","Component3D","ContainerSpan","ForEach","LazyForEach"],extend:{decorator:["Extend","AnimatableExtend"],components:[{name:"AbilityComponent",type:"AbilityComponentAttribute",instance:"AbilityComponentInstance"},{name:"AlphabetIndexer",type:"AlphabetIndexerAttribute",instance:"AlphabetIndexerInstance"},{name:"Animator",type:"AnimatorAttribute",instance:"AnimatorInstance"},{name:"Badge",type:"BadgeAttribute",instance:"BadgeInstance"},{name:"Blank",type:"BlankAttribute",instance:"BlankInstance"},{name:"Button",type:"ButtonAttribute",instance:"ButtonInstance"},{name:"Calendar",type:"CalendarAttribute",instance:"CalendarInstance"},{name:"CalendarPicker",type:"CalendarPickerAttribute",instance:"CalendarPickerInstance"},{name:"Camera",type:"CameraAttribute",instance:"CameraInstance"},{name:"Canvas",type:"CanvasAttribute",instance:"CanvasInstance"},{name:"Checkbox",type:"CheckboxAttribute",instance:"CheckboxInstance"},{name:"CheckboxGroup",type:"CheckboxGroupAttribute",instance:"CheckboxGroupInstance"},{name:"Circle",type:"CircleAttribute",instance:"CircleInstance"},{name:"ColorPicker",type:"ColorPickerAttribute",instance:"ColorPickerInstance"},{name:"ColorPickerDialog",type:"ColorPickerDialogAttribute",instance:"ColorPickerDialogInstance"},{name:"Column",type:"ColumnAttribute",instance:"ColumnInstance"},{name:"ColumnSplit",type:"ColumnSplitAttribute",instance:"ColumnSplitInstance"},{name:"Counter",type:"CounterAttribute",instance:"CounterInstance"},{name:"DataPanel",type:"DataPanelAttribute",instance:"DataPanelInstance"},{name:"DatePicker",type:"DatePickerAttribute",instance:"DatePickerInstance"},{name:"Divider",type:"DividerAttribute",instance:"DividerInstance"},{name:"EffectComponent",type:"EffectComponentAttribute",instance:"EffectComponentInstance"},{name:"Ellipse",type:"EllipseAttribute",instance:"EllipseInstance"},{name:"EmbeddedComponent",type:"EmbeddedComponentAttribute",instance:"EmbeddedComponentInstance"},{name:"Flex",type:"FlexAttribute",instance:"FlexInstance"},{name:"FormComponent",type:"FormComponentAttribute",instance:"FormComponentInstance"},{name:"Gauge",type:"GaugeAttribute",instance:"GaugeInstance"},{name:"GeometryView",type:"GeometryViewAttribute",instance:"GeometryViewInstance"},{name:"Grid",type:"GridAttribute",instance:"GridInstance"},{name:"GridItem",type:"GridItemAttribute",instance:"GridItemInstance"},{name:"GridContainer",type:"GridContainerAttribute",instance:"GridContainerInstance"},{name:"Hyperlink",type:"HyperlinkAttribute",instance:"HyperlinkInstance"},{name:"Image",type:"ImageAttribute",instance:"ImageInstance"},{name:"ImageAnimator",type:"ImageAnimatorAttribute",instance:"ImageAnimatorInstance"},{name:"Line",type:"LineAttribute",instance:"LineInstance"},{name:"List",type:"ListAttribute",instance:"ListInstance"},{name:"ListItem",type:"ListItemAttribute",instance:"ListItemInstance"},{name:"ListItemGroup",type:"ListItemGroupAttribute",instance:"ListItemGroupInstance"},{name:"LoadingProgress",type:"LoadingProgressAttribute",instance:"LoadingProgressInstance"},{name:"Marquee",type:"MarqueeAttribute",instance:"MarqueeInstance"},{name:"MediaCachedImage",type:"MediaCachedImageAttribute",instance:"MediaCachedImageInstance"},{name:"Menu",type:"MenuAttribute",instance:"MenuInstance"},{name:"MenuItem",type:"MenuItemAttribute",instance:"MenuItemInstance"},{name:"MenuItemGroup",type:"MenuItemGroupAttribute",instance:"MenuItemGroupInstance"},{name:"NavDestination",type:"NavDestinationAttribute",instance:"NavDestinationInstance"},{name:"NavRouter",type:"NavRouterAttribute",instance:"NavRouterInstance"},{name:"Navigation",type:"NavigationAttribute",instance:"NavigationInstance"},{name:"Navigator",type:"NavigatorAttribute",instance:"NavigatorInstance"},{name:"Option",type:"OptionAttribute",instance:"OptionInstance"},{name:"PageTransitionEnter",type:"PageTransitionEnterAttribute",instance:"PageTransitionEnterInstance"},{name:"PageTransitionExit",type:"PageTransitionExitAttribute",instance:"PageTransitionExitInstance"},{name:"Panel",type:"PanelAttribute",instance:"PanelInstance"},{name:"Path",type:"PathAttribute",instance:"PathInstance"},{name:"PatternLock",type:"PatternLockAttribute",instance:"PatternLockInstance"},{name:"Piece",type:"PieceAttribute",instance:"PieceInstance"},{name:"PluginComponent",type:"PluginComponentAttribute",instance:"PluginComponentInstance"},{name:"Polygon",type:"PolygonAttribute",instance:"PolygonInstance"},{name:"Polyline",type:"PolylineAttribute",instance:"PolylineInstance"},{name:"Progress",type:"ProgressAttribute",instance:"ProgressInstance"},{name:"QRCode",type:"QRCodeAttribute",instance:"QRCodeInstance"},{name:"Radio",type:"RadioAttribute",instance:"RadioInstance"},{name:"Rating",type:"RatingAttribute",instance:"RatingInstance"},{name:"Rect",type:"RectAttribute",instance:"RectInstance"},{name:"RelativeContainer",type:"RelativeContainerAttribute",instance:"RelativeContainerInstance"},{name:"Refresh",type:"RefreshAttribute",instance:"RefreshInstance"},{name:"RemoteWindow",type:"RemoteWindowAttribute",instance:"RemoteWindowInstance"},{name:"RootScene",type:"RootSceneAttribute",instance:"RootSceneInstance"},{name:"Row",type:"RowAttribute",instance:"RowInstance"},{name:"RowSplit",type:"RowSplitAttribute",instance:"RowSplitInstance"},{name:"RichText",type:"RichTextAttribute",instance:"RichTextInstance"},{name:"Screen",type:"ScreenAttribute",instance:"ScreenInstance"},{name:"Scroll",type:"ScrollAttribute",instance:"ScrollInstance"},{name:"ScrollBar",type:"ScrollBarAttribute",instance:"ScrollBarInstance"},{name:"Search",type:"SearchAttribute",instance:"SearchInstance"},{name:"Section",type:"SectionAttribute",instance:"SectionInstance"},{name:"Select",type:"SelectAttribute",instance:"SelectInstance"},{name:"Shape",type:"ShapeAttribute",instance:"ShapeInstance"},{name:"Sheet",type:"SheetAttribute",instance:"SheetInstance"},{name:"SideBarContainer",type:"SideBarContainerAttribute",instance:"SideBarContainerInstance"},{name:"Slider",type:"SliderAttribute",instance:"SliderInstance"},{name:"Span",type:"SpanAttribute",instance:"SpanInstance"},{name:"Stack",type:"StackAttribute",instance:"StackInstance"},{name:"Stepper",type:"StepperAttribute",instance:"StepperInstance"},{name:"StepperItem",type:"StepperItemAttribute",instance:"StepperItemInstance"},{name:"Swiper",type:"SwiperAttribute",instance:"SwiperInstance"},{name:"TabContent",type:"TabContentAttribute",instance:"TabContentInstance"},{name:"Tabs",type:"TabsAttribute",instance:"TabsInstance"},{name:"Text",type:"TextAttribute",instance:"TextInstance"},{name:"TextPicker",type:"TextPickerAttribute",instance:"TextPickerInstance"},{name:"TextClock",type:"TextClockAttribute",instance:"TextClockInstance"},{name:"TextArea",type:"TextAreaAttribute",instance:"TextAreaInstance"},{name:"TextInput",type:"TextInputAttribute",instance:"TextInputInstance"},{name:"TextTimer",type:"TextTimerAttribute",instance:"TextTimerInstance"},{name:"TimePicker",type:"TimePickerAttribute",instance:"TimePickerInstance"},{name:"Toggle",type:"ToggleAttribute",instance:"ToggleInstance"},{name:"Video",type:"VideoAttribute",instance:"VideoInstance"},{name:"Web",type:"WebAttribute",instance:"WebInstance"},{name:"WindowScene",type:"WindowSceneAttribute",instance:"WindowSceneInstance"},{name:"XComponent",type:"XComponentAttribute",instance:"XComponentInstance"},{name:"GridRow",type:"GridRowAttribute",instance:"GridRowInstance"},{name:"GridCol",type:"GridColAttribute",instance:"GridColInstance"},{name:"WaterFlow",type:"WaterFlowAttribute",instance:"WaterFlowInstance"},{name:"FlowItem",type:"FlowItemAttribute",instance:"FlowItemInstance"},{name:"ImageSpan",type:"ImageSpanAttribute",instance:"ImageSpanInstance"},{name:"LocationButton",type:"LocationButtonAttribute",instance:"LocationButtonInstance"},{name:"PasteButton",type:"PasteButtonAttribute",instance:"PasteButtonInstance"},{name:"SaveButton",type:"SaveButtonAttribute",instance:"SaveButtonInstance"},{name:"UIExtensionComponent",type:"UIExtensionComponentAttribute",instance:"UIExtensionComponentInstance"},{name:"RichEditor",type:"RichEditorAttribute",instance:"RichEditorInstance"},{name:"Component3D",type:"Component3DAttribute",instance:"Component3DInstance"},{name:"ContainerSpan",type:"ContainerSpanAttribute",instance:"ContainerSpanInstance"}]},styles:{decorator:"Styles",component:{name:"Common",type:"T",instance:"CommonInstance"},property:"stateStyles"},concurrent:{decorator:"Concurrent"},customComponent:"CustomComponent",libs:[]}},t.BUILDIN_SYSTEM_COMPONENT=new Set(t.ETS_COMPILER_OPTIONS.ets.components),t.BUILDIN_ATOMIC_COMPONENT=new Set(["AbilityComponent","AlphabetIndexer","Animator","Blank","CalendarPicker","Camera","Circle","Component3D","ContentSlot","Divider","Ellipse","EmbeddedComponent","FormComponent","FrictionMotion","GeometryView","Image","ImageAnimator","ImageSpan","Line","LoadingProgress","LocationButton","Marquee","MediaCachedImage","NodeContainer","PageTransitionEnter","PageTransitionExit","Particle","PasteButton","Path","PatternLock","Polygon","Polyline","Progress","Radio","Rect","RemoteWindow","RichEditor","RichText","SaveButton","ScrollMotion","Search","Slider","Span","SpringMotion","SpringProp","SymbolSpan","SymbolGlyph","TextArea","TextInput","UIExtensionComponent","Video","Web"]),t.COMPONENT_DECORATOR=new Set(["Reusable","Component","ComponentV2","CustomDialog"]),t.ENTRY_DECORATOR="Entry",t.BUILDER_DECORATOR="Builder",t.BUILDER_PARAM_DECORATOR="BuilderParam",t.isEtsAtomicComponent=r,t.isEtsSystemComponent=n,t.isEtsContainerComponent=function(e){return n(e)&&!r(e)},t.COMPONENT_CREATE_FUNCTION="create",t.COMPONENT_POP_FUNCTION="pop",t.COMPONENT_CUSTOMVIEW="View",t.COMPONENT_REPEAT="Repeat",t.COMPONENT_IF="If",t.COMPONENT_IF_BRANCH="IfBranch",t.COMPONENT_BRANCH_FUNCTION="branch",t.COMPONENT_BUILD_FUNCTION="build",t.SPECIAL_CONTAINER_COMPONENT=new Set([t.COMPONENT_IF,t.COMPONENT_IF_BRANCH,t.COMPONENT_CUSTOMVIEW,t.COMPONENT_REPEAT])},4287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExprUseReplacer=void 0;const n=r(3532);t.ExprUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseExpr(e){e instanceof n.ArkBinopExpr?this.caseBinopExpr(e):e instanceof n.AbstractInvokeExpr?this.caseInvokeExpr(e):e instanceof n.ArkNewArrayExpr?this.caseNewArrayExpr(e):e instanceof n.ArkTypeOfExpr?this.caseTypeOfExpr(e):e instanceof n.ArkInstanceOfExpr?this.caseInstanceOfExpr(e):e instanceof n.ArkLengthExpr?this.caseLengthExpr(e):e instanceof n.ArkCastExpr&&this.caseCastExpr(e)}caseBinopExpr(e){e.getOp1()==this.oldUse&&e.setOp1(this.newUse),e.getOp2()==this.oldUse&&e.setOp2(this.newUse)}caseInvokeExpr(e){let t=e.getArgs();for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRUtils=void 0;const n=r(3532),i=r(3938);t.IRUtils=class{static moreThanOneAddress(e){return e instanceof n.ArkBinopExpr||e instanceof n.AbstractInvokeExpr||e instanceof i.AbstractFieldRef||e instanceof i.ArkArrayRef||e instanceof n.ArkCastExpr||e instanceof n.ArkUnopExpr}}},2029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelUtils=void 0;const n=r(7125);t.ModelUtils=class{static getMethodSignatureFromArkClass(e,t){for(const r of e.getMethods())if(r.getName()==t)return r.getSignature();return null}static getClassWithNameInNamespaceRecursively(e,t){if(""==e)return null;let r=null;if(r=t.getClassWithName(e),null==r){let n=t.getDeclaringArkNamespace();r=null!=n?this.getClassWithNameInNamespaceRecursively(e,n):this.getClassInFileWithName(e,t.getDeclaringArkFile())}return r}static getClassWithNameFromClass(e,t){if(!e.includes(".")){let r=null;const n=t.getDeclaringArkNamespace();return r=n?this.getClassWithNameInNamespaceRecursively(e,n):this.getClassInFileWithName(e,t.getDeclaringArkFile()),r}{const r=e.split(".");let n=this.getNamespaceWithNameFromClass(r[0],t);for(let e=1;e"_DEFAULT_ARK_CLASS"==e.getName()))||null;if(r){let t=r.getMethodWithName(e);if(t)return t}return null}static getStaticMethodInImportInfoWithName(e,t){let r=this.getTypeSignatureInImportInfoWithName(e,t);return r?t.getScene().getMethod(r):null}static getLocalInImportInfoWithName(e,t){let r=this.getTypeSignatureInImportInfoWithName(e,t);return r||null}static getAllNamespacesInFile(e){const t=e.getNamespaces();for(const r of e.getNamespaces())this.getAllNamespacesInNamespace(r,t);return t}static getAllNamespacesInNamespace(e,t){t.push(...e.getNamespaces());for(const r of e.getNamespaces())this.getAllNamespacesInNamespace(r,t)}static getAllClassesInFile(e){const t=e.getClasses();return this.getAllNamespacesInFile(e).forEach((e=>{t.push(...e.getClasses())})),t}static getAllMethodsInFile(e){const t=[];return this.getAllClassesInFile(e).forEach((e=>{t.push(...e.getMethods())})),t}static isArkUIBuilderMethod(e){let t=e.hasBuilderDecorator();if(!t&&"build"==e.getName()){e.getDeclaringArkClass().getDeclaringArkFile().getName().endsWith(".ets")&&(t=!0)}return t}static getClass(e,t){var r,i;let a=e.getDeclaringArkFile().getScene().getClass(t);if(a)return a;let o=null===(r=e.getDeclaringArkFile().getImportInfoBy(t.getClassName()))||void 0===r?void 0:r.getLazyExportInfo(),s=null==o?void 0:o.getTypeSignature();if(s instanceof n.ClassSignature){let t=e.getDeclaringArkFile().getScene().getClass(s);if(t)return t}if(a=null===(i=e.getDeclaringArkClass().getDeclaringArkNamespace())||void 0===i?void 0:i.getClassWithName(t.getClassName()),a)return a;for(const r of e.getDeclaringArkFile().getAllNamespacesUnderThisFile())if(a=r.getClassWithName(t.getClassName()),a)return a;return e.getDeclaringArkFile().getClassWithName(t.getClassName())}}},2857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefUseReplacer=void 0;const n=r(3938);t.RefUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseRef(e){e instanceof n.ArkInstanceFieldRef?this.caseFieldRef(e):e instanceof n.ArkArrayRef&&this.caseArrayRef(e)}caseFieldRef(e){e.getBase()==this.oldUse&&e.setBase(this.newUse)}caseArrayRef(e){e.getBase()==this.oldUse?e.setBase(this.newUse):e.getIndex()==this.oldUse&&e.setIndex(this.newUse)}}},8420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StmtUseReplacer=void 0;const n=r(3532),i=r(4576),a=r(3938),o=r(9029),s=r(4287),c=r(2857);t.StmtUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseStmt(e){e instanceof o.ArkAssignStmt?this.caseAssignStmt(e):e instanceof o.ArkInvokeStmt?this.caseInvokeStmt(e):e instanceof o.ArkReturnStmt?this.caseReturnStmt(e):e instanceof o.ArkIfStmt&&this.caseIfStmt(e)}caseAssignStmt(e){let t=e.getRightOp();if(t==this.oldUse)e.setRightOp(this.newUse);else if(t instanceof i.Local)t==this.oldUse&&e.setRightOp(this.newUse);else if(t instanceof a.AbstractRef)if(t==this.oldUse)e.setRightOp(this.newUse);else{new c.RefUseReplacer(this.oldUse,this.newUse).caseRef(t)}else if(t instanceof n.AbstractExpr)if(t==this.oldUse)e.setRightOp(this.newUse);else{new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(t)}}caseInvokeStmt(e){new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(e.getInvokeExpr())}caseReturnStmt(e){e.setReturnValue(this.newUse)}caseIfStmt(e){new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(e.getConditionExprExpr())}}},8596:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInference=void 0;const i=n(r(7015)),a=r(3532),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=r(7125),d=r(2029),p=i.default.getLogger();class _{static inferTypeInArkField(e){var t;e.getInitializer()&&this.inferValueType(e.getInitializer(),e.getDeclaringClass());const r=e.getType();let n;n=r||"EnumMember"!==e.getFieldType()?this.inferDeclaredType(r,e.getDeclaringClass(),e.getInitializer()):new l.ClassType(e.getDeclaringClass().getSignature()),n?(e.setType(n),e.getSignature().setType(n)):this.isUnclearType(r)&&!this.isUnclearType(null===(t=e.getInitializer())||void 0===t?void 0:t.getType())&&(n=e.getInitializer().getType(),e.setType(n),e.getSignature().setType(n))}static inferDeclaredType(e,t,r){let n;if(e instanceof l.AnnotationNamespaceType)n=this.inferUnclearReferenceType(e.getOriginType(),t);else if(e instanceof l.UnionType){if(this.inferSubTypes(e.getTypes(),t),r)for(const t of e.getTypes())if(typeof t==typeof r.getType()){e.setCurrType(r.getType()),n=e;break}}else if(e instanceof l.UnclearReferenceType)this.inferSubTypes(e.getGenericTypes(),t),n=this.inferUnclearReferenceType(e.getName(),t);else if(e instanceof l.ArrayType&&e.getBaseType()instanceof l.UnclearReferenceType){let r=this.inferUnclearReferenceType(e.getBaseType().getName(),t);r&&(e.setBaseType(r),n=e)}return n}static inferSubTypes(e,t){if(e)for(let r=0;r/,""),n=d.ModelUtils.getTypeSignatureInImportInfoWithName(r,t.getDeclaringArkFile()),i=this.parseSignature2Type(n);if(i)return i;const a=r.split(".");let o=this.inferBaseType(a[0],t);for(let e=1;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueUtil=void 0;const n=r(3755),i=r(9803);class a{static getOrCreateNumberConst(e){let t=this.NumberConstantCache.get(e);return null==t&&(t=new n.Constant(e.toString(),i.NumberType.getInstance()),this.NumberConstantCache.set(e,t)),t}static createStringConst(e){return new n.Constant(e,i.StringType.getInstance())}static getUndefinedConst(){return this.UndefinedConstant}static getNullConstant(){return this.NullConstant}static getBooleanConstant(e){return e?this.TrueConstant:this.FalseConstant}}t.ValueUtil=a,a.NumberConstantCache=new Map([[0,new n.Constant("0",i.NumberType.getInstance())],[1,new n.Constant("1",i.NumberType.getInstance())],[2,new n.Constant("2",i.NumberType.getInstance())],[3,new n.Constant("3",i.NumberType.getInstance())],[4,new n.Constant("4",i.NumberType.getInstance())],[5,new n.Constant("5",i.NumberType.getInstance())],[6,new n.Constant("6",i.NumberType.getInstance())],[7,new n.Constant("7",i.NumberType.getInstance())],[8,new n.Constant("8",i.NumberType.getInstance())],[9,new n.Constant("9",i.NumberType.getInstance())],[10,new n.Constant("10",i.NumberType.getInstance())]]),a.UndefinedConstant=new n.Constant("undefined",i.UndefinedType.getInstance()),a.NullConstant=new n.Constant("null",i.NullType.getInstance()),a.TrueConstant=new n.Constant("true",i.BooleanType.getInstance()),a.FalseConstant=new n.Constant("false",i.BooleanType.getInstance())},6784:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=t.VisibleValue=void 0;const i=n(r(7015)),a=r(4576),o=r(3938),s=r(9029),c=r(9803),l=r(7451),u=r(4567),d=r(3433),p=r(5482),_=r(1812),f=i.default.getLogger();t.VisibleValue=class{constructor(){this.currScope=new g([],0),this.scopeChain=[this.currScope],this.currVisibleValues=[...this.currScope.values]}getCurrVisibleValues(){return this.currVisibleValues}getScopeChain(){return this.scopeChain}updateIntoScope(e){let t="";t=e instanceof l.BasicBlock?"block: "+e.toString():e.getName(),f.info("---- into scope:{",t,"}");let r=[];e instanceof d.ArkFile||e instanceof _.ArkNamespace?r=this.getVisibleValuesIntoFileOrNameSpace(e):e instanceof u.ArkClass?r=this.getVisibleValuesIntoClass(e):e instanceof p.ArkMethod?r=this.getVisibleValuesIntoMethod(e):e instanceof l.BasicBlock&&(r=this.getVisibleValuesIntoBasicBlock(e));const n=this.getTargetDepth(e);this.addScope(r,n,e)}updateOutScope(){const e=this.currScope.arkModel;let t="";t=e instanceof l.BasicBlock?"block: "+e.toString():e.getName(),f.info("---- out scope:{",t,"}");let r=this.currScope.depth;if(e instanceof l.BasicBlock){e.getSuccessors().length>1&&(r+=1)}this.deleteScope(r)}deleteScope(e){if(e>this.currScope.depth)return;let t=0,r=0;for(let n=this.scopeChain.length-1;n>=0&&!(this.scopeChain[n].depth{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicBlock=void 0;t.BasicBlock=class{constructor(){this.stmts=[],this.predecessorBlocks=[],this.successorBlocks=[]}getStmts(){return this.stmts}addStmt(e){this.stmts.push(e)}getHead(){return 0==this.stmts.length?null:this.stmts[0]}getTail(){let e=this.stmts.length;return 0==e?null:this.stmts[e-1]}getSuccessors(){return this.successorBlocks}setSuccessorBlock(e,t){return this.updateSuccessorContainer(),!(e>=this.successorBlocks.length)&&(this.successorBlocks[e]=t,!0)}getPredecessors(){return this.predecessorBlocks}addPredecessorBlock(e){this.predecessorBlocks.push(e)}updateSuccessorContainer(){let e=this.getTail();if(e){let t=e.getExpectedSuccessorCount();t!=this.successorBlocks.length&&(this.successorBlocks=new Array(t))}}addStmtToFirst(e){this.stmts.splice(0,0,e)}addSuccessorBlock(e){this.successorBlocks.push(e)}toString(){let e=[];for(const t of this.stmts)e.push(t.toString()+"\n");return e.join("")}}},6624:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Cfg=void 0;const i=r(3755),a=r(4243),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=r(4567);n(r(7015)).default.getLogger();t.Cfg=class{constructor(){this.blocks=new Set,this.stmtToBlock=new Map,this.startingStmt=new c.Stmt,this.defUseChains=[]}getStmts(){let e=new Array;for(const t of this.blocks)e.push(...t.getStmts());return e}insertBefore(e,t){const r=this.stmtToBlock.get(e);r.addStmtToFirst(t),this.stmtToBlock.set(t,r)}addBlock(e){this.blocks.add(e);for(const t of e.getStmts())this.stmtToBlock.set(t,e)}getBlocks(){return this.blocks}getStartingBlock(){return this.stmtToBlock.get(this.startingStmt)}getStartingStmt(){return this.startingStmt}setStartingStmt(e){this.startingStmt=e}getDeclaringMethod(){return this.declaringMethod}setDeclaringMethod(e){this.declaringMethod=e}getDefUseChains(){return this.defUseChains}constructorAddInit(e){var t;const r=[...this.blocks][0].getStmts();let n=e.getParameters().length;const a=r[n].getDef();if(r.length>n+1&&r[n+1]instanceof c.ArkInvokeStmt){"super"==(null===(t=r[n+1].getInvokeExpr())||void 0===t?void 0:t.getMethodSignature().getMethodSubSignature().getMethodName())&&n++}for(const t of e.getDeclaringArkClass().getFields()){let e,o=t.getInitializer();if(null==o&&(o=new i.Constant("undefined",l.UndefinedType.getInstance())),e=t.isStatic()?new s.ArkStaticFieldRef(t.getSignature()):new s.ArkInstanceFieldRef(a,t.getSignature()),!(o instanceof u.ArkClass))try{const t=new c.ArkAssignStmt(e,o);n++,r.splice(n,0,t)}catch(e){}}}toString(){return"cfg"}buildDefUseStmt(){for(const e of this.blocks)for(const t of e.getStmts()){const e=t.getDef();e&&e instanceof o.Local&&e.setDeclaringStmt(t);for(const e of t.getUses())if(e instanceof o.Local){e.addUsedStmt(t)}}}buildDefUseChain(){var e,t;for(const r of this.blocks)for(let n=0;n=0;t--){const n=r.getStmts()[t];if(n.getDef()&&(null===(e=n.getDef())||void 0===e?void 0:e.toString())==s){c.push(n);break}}if(0!=c.length)this.defUseChains.push(new a.DefUseChain(o,c[0],i));else{const e=[];for(const t of r.getPredecessors())e.push(t);const n=new Set;for(;e.length>0;){const r=e.pop();if(!r)return;const i=r.getStmts();let a=!1;for(let e=i.length-1;e>=0;e--){const r=i[e];if(r.getDef()&&(null===(t=r.getDef())||void 0===t?void 0:t.toString())==s){c.push(r),a=!0;break}}if(!a)for(const t of r.getPredecessors())n.has(t)||e.includes(t)||e.unshift(t);n.add(r)}for(const e of c)this.defUseChains.push(new a.DefUseChain(o,e,i))}}}}}},2030:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildViewTree=t.ViewTreeImpl=void 0;const i=r(5404),a=r(3755),o=r(2222),s=r(3532),c=r(4576),l=r(3938),u=r(9029),d=r(9803),p=r(2454),_=n(r(7015)),f=r(2029),g=_.default.getLogger(),m=new Set([p.COMPONENT_CREATE_FUNCTION,p.COMPONENT_BRANCH_FUNCTION]);class h{constructor(e){this.declaringArkClass=e}static getInstance(e){return new h(e)}parseStmtUsesStateValues(e,t=new Set,r=!1,n=new Set){if(n.has(e))return t;n.add(e);for(const i of e.getUses())if(i instanceof l.ArkInstanceFieldRef){let e=this.declaringArkClass.getField(i.getFieldSignature()),r=null==e?void 0:e.getStateDecorators();e&&r&&r.length>0&&t.add(e)}else if(i instanceof c.Local){let e=i.getType();if(e instanceof d.CallableType)this.parseMethodUsesStateValues(e.getMethodSignature(),t,n);else if(!r){let e=i.getDeclaringStmt();e&&this.parseStmtUsesStateValues(e,t,r,n)}}return t}parseMethodUsesStateValues(e,t,r=new Set){if(r.has(e))return;r.add(e);let n=this.declaringArkClass.getMethod(e);if(!n)return;let i=n.getCfg().getStmts();for(const e of i)this.parseStmtUsesStateValues(e,t,!0,r)}}var y;!function(e){e[e.SystemComponent=0]="SystemComponent",e[e.CustomComponent=1]="CustomComponent",e[e.Builder=2]="Builder",e[e.BuilderParam=3]="BuilderParam"}(y||(y={}));class v{constructor(e){this.name=e,this.attributes=new Map,this.stmts=this.attributes,this.stateValues=new Set,this.parent=null,this.children=[],this.type=y.SystemComponent}isBuilder(){return this.type==y.Builder}isBuilderParam(){return this.type==y.BuilderParam}isCustomComponent(){return this.type==y.CustomComponent}walk(e,t=new Set){if(t.has(this))return!1;let r=e(this);t.add(this);for(const n of this.children)if(r=r||n.walk(e,t),r)break;return r}static createCustomComponent(){let e=new v(p.COMPONENT_CUSTOMVIEW);return e.type=y.CustomComponent,e}static createBuilderNode(){let e=new v(p.BUILDER_DECORATOR);return e.type=y.Builder,e}static createBuilderParamNode(){let e=new v(p.BUILDER_PARAM_DECORATOR);return e.type=y.BuilderParam,e}changeBuilderParam2BuilderNode(e){if(this.name=p.BUILDER_DECORATOR,this.type=y.Builder,this.signature=e.getSignature(),this.classSignature=this.signature,e.getViewTree().getRoot())for(let t of e.getViewTree().getRoot().children)this.children.push(t);else g.error(`ViewTree->changeBuilderParam2BuilderNode ${e.getSignature().toString()} @Builder viewtree fail.`)}hasBuilderParam(){return this.walk((e=>e.isBuilderParam()))}clone(e,t=new Map){let r=new v(this.name);r.attributes=this.attributes,r.stmts=r.attributes,r.stateValues=this.stateValues,r.parent=e,r.type=this.type,r.signature=this.signature,r.classSignature=r.signature,r.builderParam=this.builderParam,r.builder=this.builder,t.set(this,r);for(const e of this.children)t.has(e)?r.children.push(t.get(e)):r.children.push(e.clone(r,t));return r}addStmt(e,t){this.parseAttributes(t),this.parseStateValues(e,t)}parseAttributes(e){let t;if(e instanceof u.ArkAssignStmt){let r=e.getRightOp();(r instanceof s.ArkInstanceInvokeExpr||r instanceof s.ArkStaticInvokeExpr)&&(t=r)}else if(e instanceof u.ArkInvokeStmt){let r=e.getInvokeExpr();(r instanceof s.ArkInstanceInvokeExpr||r instanceof s.ArkStaticInvokeExpr)&&(t=r)}if(t){let r=t.getMethodSignature().getMethodSubSignature().getMethodName(),n=[];for(const e of t.getArgs())e instanceof c.Local?this.getBindValues(e,n):e instanceof a.Constant&&n.push(e);this.attributes.set(r,[e,n])}}getBindValues(e,t,r=new Set){if(r.has(e))return;r.add(e);const n=e.getDeclaringStmt();if(n)for(const e of n.getUses())e instanceof a.Constant||e instanceof l.ArkInstanceFieldRef?t.push(e):e instanceof c.Local&&this.getBindValues(e,t,r);else{let r=e.getType();r instanceof d.CallableType&&t.push(r.getMethodSignature())}}parseStateValues(e,t){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(t).forEach((t=>{this.stateValues.add(t),e.addStateValue(t,this)}),this)}}class b{constructor(){this.stack=[]}push(e){let t=this.getParent();e.parent=t,this.stack.push(e),null==t?this.root=e:t.children.push(e)}pop(){this.stack.pop()}top(){return this.isEmpty()?null:this.stack[this.stack.length-1]}isEmpty(){return 0==this.stack.length}popAutomicComponent(e){if(this.isEmpty())return;let t=this.stack[this.stack.length-1];e==t.name||this.isContainer(t.name)||this.stack.pop()}popComponentExpect(e){for(let t=this.stack.length-1;t>=0&&this.stack[t].name!=e;t--)this.stack.pop();return this}getParent(){if(0==this.stack.length)return null;let e=this.stack[this.stack.length-1];return this.isContainer(e.name)||this.stack.pop(),this.stack[this.stack.length-1]}isContainer(e){return(0,p.isEtsContainerComponent)(e)||p.SPECIAL_CONTAINER_COMPONENT.has(e)||e==p.BUILDER_DECORATOR}}class x extends b{constructor(e){super(),this.render=e,this.stateValues=new Map,this.fieldTypes=new Map,this.buildViewStatus=!1}getRoot(){return this.buildViewTree(),this.root}getStateValues(){return this.buildViewTree(),this.stateValues}isClassField(e){return this.fieldTypes.has(e)}getClassFieldType(e){return this.fieldTypes.get(e)}buildViewTree(){if(this.render&&!this.isInitialized()){if(this.buildViewStatus=!0,this.loadClasssFieldTypes(),this.render.hasBuilderDecorator()){let e=v.createBuilderNode();e.signature=this.render.getSignature(),e.classSignature=e.signature,this.push(e)}A(this,this.render.getCfg())}}isInitialized(){return null!=this.root||this.buildViewStatus}addStateValue(e,t){this.stateValues.has(e)||this.stateValues.set(e,new Set);let r=this.stateValues.get(e);null==r||r.add(t)}isCreateFunc(e){return m.has(e)}loadClasssFieldTypes(){for(const e of this.render.getDeclaringArkClass().getFields()){let t=e.getStateDecorators();t.length>0?1==t.length?this.fieldTypes.set(e.getName(),t[0]):this.fieldTypes.set(e.getName(),t):this.fieldTypes.set(e.getName(),e.getSignature().getType())}}getDeclaringArkClass(){return this.render.getDeclaringArkClass()}findMethod(e){let t=this.render.getDeclaringArkFile().getScene().getMethod(e);return t||(t=this.getDeclaringArkClass().getMethod(e),t||this.findMethodWithName(e.getMethodSubSignature().getMethodName()))}findMethodWithName(e){var t;let r=this.getDeclaringArkClass().getMethodWithName(e);return r||(null===(t=this.getDeclaringArkClass().getDeclaringArkNamespace())||void 0===t||t.getAllMethodsUnderThisNamespace().forEach((t=>{t.getName()==e&&(r=t)})),r||(this.getDeclaringArkClass().getDeclaringArkFile().getAllNamespacesUnderThisFile().forEach((t=>{t.getAllMethodsUnderThisNamespace().forEach((t=>{t.getName()==e&&(r=t)}))})),r))}findClass(e){return f.ModelUtils.getClass(this.render,e)}addBuilderNode(e){let t=e.getViewTree();if(t&&t.getRoot()){let e=t.getRoot();return this.push(e),this.pop(),e}{g.error(`ViewTree->addBuilderNode ${e.getSignature().toString()} build viewtree fail.`);let t=v.createBuilderNode();return t.signature=e.getSignature(),t.classSignature=t.signature,this.push(t),this.pop(),t}}addCustomComponentNode(e,t,r){let n=v.createCustomComponent();n.signature=e.getSignature(),n.classSignature=n.signature,n.stateValuesTransfer=this.parseObjectLiteralExpr(e,t,r),this.push(n);let i=e.getViewTree();if(i&&i.getRoot()){let e=i.getRoot();e.hasBuilderParam()&&(e=e.clone(n),n.stateValuesTransfer&&e.walk((e=>{var t;let r=e;if(r.isBuilderParam()&&r.builderParam){let e=null===(t=n.stateValuesTransfer)||void 0===t?void 0:t.get(r.builderParam);e&&r.changeBuilderParam2BuilderNode(e)}return!1}))),n.children.push(e)}else g.error(`ViewTree->addCustomComponentNode ${e.getSignature().toString()} build viewtree fail.`);return n}addBuilderParamNode(e){let t=v.createBuilderParamNode();return t.builderParam=e,this.push(t),this.pop(),t}addSystemComponentNode(e){let t=new v(e);return this.push(t),t}findMethodInvokeBuilderMethod(e){for(const t of e.getCfg().getStmts()){if(!(t instanceof u.ArkInvokeStmt))continue;let e=t.getInvokeExpr(),r=this.findMethod(e.getMethodSignature());if(null==r?void 0:r.hasBuilderDecorator())return r}}parseObjectLiteralExpr(e,t,r){let n=new Map;if(t instanceof s.ObjectLiteralExpr&&t.getAnonymousClass().getFields().forEach((t=>{let r=e.getFieldWithName(t.getName());if(0==(null==r?void 0:r.getStateDecorators().length)&&!(null==r?void 0:r.hasBuilderParamDecorator()))return;let i=t.getInitializer();if(null==r?void 0:r.hasBuilderParamDecorator()){let e;i instanceof l.ArkInstanceFieldRef?e=this.findMethodWithName(i.getFieldName()):i instanceof s.ArkStaticInvokeExpr?e=this.findMethod(i.getMethodSignature()):i instanceof c.Local&&(e=this.findMethodWithName(i.getName())),e&&!e.hasBuilderDecorator()&&(e=this.findMethodInvokeBuilderMethod(e)),e&&n.set(r,e)}else{let e;i instanceof l.ArkInstanceFieldRef&&(e=this.getDeclaringArkClass().getFieldWithName(i.getFieldName())),e&&r&&n.set(r,e)}})),r&&e.getFields().forEach((e=>{e.hasBuilderParamDecorator()&&n.set(e,r)})),0!=n.size)return n}}function D(e,t,r,n){let i=e.addSystemComponentNode(t),a=n.getArg(0),o=null==a?void 0:a.getDeclaringStmt();if(o){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(o).forEach((t=>{i.stateValues.add(t),e.addStateValue(t,i)}))}let s=n.getArg(1).getType(),c=e.findMethod(s.getMethodSignature());return c&&A(e,c.getCfg()),i}t.ViewTreeImpl=x;const S=new Map([["ForEach.create",D],["LazyForEach.create",D],["Repeat.create",function(e,t,r,n){let i=e.addSystemComponentNode(t),a=n.getArg(0),o=null==a?void 0:a.getDeclaringStmt();if(o){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(o).forEach((t=>{i.stateValues.add(t),e.addStateValue(t,i)}))}return i}],["View.create",function(e,t,r,n){let a,c,l=n.getArg(0);l.getUsedStmts().forEach((e=>{if(e instanceof u.ArkInvokeStmt){let t=e.getInvokeExpr();"constructor"==t.getMethodSignature().getMethodSubSignature().getMethodName()&&(a=t.getArg(0))}}));let d=n.getArg(1);if(d){let t=e.findMethod(d.getType().getMethodSignature());(null==t?void 0:t.hasBuilderDecorator())||null==t||t.addModifier(new o.Decorator(p.BUILDER_DECORATOR)),(null==t?void 0:t.hasViewTree())||null==t||t.setViewTree(new x(t)),t&&(c=t)}let _=i.CfgUitls.backtraceLocalInitValue(l);if(!(_ instanceof s.ArkNewExpr))return;let f=_.getType().getClassSignature();if(f){let t=e.findClass(f);if(t&&t.hasComponentDecorator())return e.addCustomComponentNode(t,a,c);g.error(`ViewTree->viewComponentCreationParser not found class ${f.toString()}. ${r.toString()}`)}}],["If.branch",function(e,t,r,n){return e.popComponentExpect(p.COMPONENT_IF),e.addSystemComponentNode(p.COMPONENT_IF_BRANCH)}]]);function T(e,t,r,n){let i=n.getMethodSignature(),a=e.findMethod(i);if(null==a?void 0:a.hasBuilderDecorator())return e.addBuilderNode(a);let o=i.getDeclaringClassSignature().getClassName(),s=i.getMethodSubSignature().getMethodName();if(e.isCreateFunc(s))return function(e,t,r,n,i){let a=S.get(`${e}.${t}`);if(a){let t=a(r,e,n,i);return null==t||t.addStmt(r,n),t}r.popAutomicComponent(e);let o=r.addSystemComponentNode(e);return o.addStmt(r,n),o}(o,s,e,r,n);let c=e.top();if(o==(null==c?void 0:c.name))return c.addStmt(e,r),s==p.COMPONENT_POP_FUNCTION&&e.pop(),c;o==p.COMPONENT_IF&&s==p.COMPONENT_POP_FUNCTION&&(e.popComponentExpect(p.COMPONENT_IF),e.pop())}function C(e,t,r,n){let a=n.getBase();if(t.has(a)){let i=t.get(a);if((null==i?void 0:i.name)==p.COMPONENT_REPEAT&&"each"==n.getMethodSignature().getMethodSubSignature().getMethodName()){let t=n.getArg(0).getType();if(t instanceof d.CallableType){let r=e.findMethod(t.getMethodSignature());r&&A(e,r.getCfg())}e.pop()}else null==i||i.addStmt(e,r);return i}let o=n.getBase().getName();if(o.startsWith("$temp")){i.CfgUitls.backtraceLocalInitValue(n.getBase())instanceof l.ArkThisRef&&(o="this")}let s=n.getMethodSignature().getMethodSubSignature().getMethodName(),c=e.getDeclaringArkClass().getFieldWithName(s);if("this"==o&&(null==c?void 0:c.hasBuilderParamDecorator()))return e.addBuilderParamNode(c);let u=e.findMethod(n.getMethodSignature());return"this"==o&&(null==u?void 0:u.hasBuilderDecorator())?e.addBuilderNode(u):void 0}function E(e,t,r){let n,i=r.getLeftOp(),a=r.getRightOp();i instanceof c.Local&&(a instanceof s.ArkStaticInvokeExpr?n=T(e,0,r,a):a instanceof s.ArkInstanceInvokeExpr&&(n=C(e,t,r,a)),n&&t.set(i,n))}function k(e,t,r){let n=r.getInvokeExpr();n instanceof s.ArkStaticInvokeExpr?T(e,0,r,n):n instanceof s.ArkInstanceInvokeExpr&&C(e,t,r,n)}function A(e,t,r=new Map){let n=t.getBlocks();for(const t of n)for(const n of t.getStmts())(n instanceof u.ArkInvokeStmt||n instanceof u.ArkAssignStmt)&&(n instanceof u.ArkAssignStmt?E(e,r,n):n instanceof u.ArkInvokeStmt&&k(e,r,n))}t.buildViewTree=function(e){return new x(e)}},2939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkBody=void 0;t.ArkBody=class{constructor(e,t,r,n,i){this.methodSignature=e,this.setLocals(t),this.originalCfg=r,this.cfg=n,this.stmtToOriginalStmt=i}getLocals(){return this.locals}setLocals(e){this.locals||(this.locals=new Map),e.forEach((e=>this.locals.set(e.getName(),e)))}getCfg(){return this.cfg}setCfg(e){this.cfg=e}getOriginalCfg(){return this.originalCfg}setOriginalCfg(e){this.originalCfg=e}getMethodSignature(){return this.methodSignature}setMethodSignature(e){this.methodSignature=e}getStmtToOriginalStmt(){return this.stmtToOriginalStmt}}},4567:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkClass=void 0;const i=r(7125),a=n(r(7015)),o=r(2222),s=r(2454),c=r(7733);a.default.getLogger();t.ArkClass=class{constructor(){this.name="",this.originType="Class",this.line=-1,this.column=-1,this.superClassName="",this.implementedInterfaceNames=[],this.modifiers=new Set,this.typeParameters=[],this.defaultMethod=null,this.methods=new Map,this.fields=new Map,this.extendedClasses=new Map,this.staticMethods=new Map,this.staticFields=new Map,this.anonymousMethodNumber=0,this.indexSignatureNumber=0}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}getOriginType(){return this.originType}setOriginType(e){this.originType=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkNamespace(){return this.declaringArkNamespace}setDeclaringArkNamespace(e){this.declaringArkNamespace=e}isExported(){return this.modifiers.has("ExportKeyword")}isDefaultArkClass(){return"_DEFAULT_ARK_CLASS"===this.getName()}getSignature(){return this.classSignature}setSignature(e){this.classSignature=e}genSignature(){let e=new i.ClassSignature;e.setClassName(this.name),e.setDeclaringFileSignature(this.declaringArkFile.getFileSignature()),this.declaringArkNamespace&&e.setDeclaringNamespaceSignature(this.declaringArkNamespace.getNamespaceSignature()),this.setSignature(e)}getSuperClassName(){return this.superClassName}setSuperClassName(e){this.superClassName=e}getSuperClass(){return this.superClass}setSuperClass(e){this.superClass=e}getExtendedClasses(){return this.extendedClasses}addExtendedClass(e){this.extendedClasses.set(e.getName(),e)}getImplementedInterfaceNames(){return this.implementedInterfaceNames}addImplementedInterfaceName(e){this.implementedInterfaceNames.push(e)}hasImplementedInterface(e){return this.implementedInterfaceNames.indexOf(e)>-1}getField(e){const t=e.getFieldName();let r=this.getFieldWithName(t);return r||(r=this.getStaticFieldWithName(t)),r}getFieldWithName(e){return this.fields.get(e)||null}getStaticFieldWithName(e){return this.staticFields.get(e)||null}getFields(){const e=Array.from(this.fields.values());return e.push(...this.staticFields.values()),e}addField(e){e.isStatic()?this.staticFields.set(e.getName(),e):this.fields.set(e.getName(),e)}addFields(e){e.forEach((e=>{this.addField(e)}))}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getTypeParameter(){return this.typeParameters}addTypeParameter(e){this.typeParameters.push(e)}containsModifier(e){return this.modifiers.has(e)}isStatic(){return!!this.modifiers.has("StaticKeyword")}getMethods(){const e=Array.from(this.methods.values());return e.push(...this.staticMethods.values()),e}getMethod(e){const t=e.getMethodSubSignature().getMethodName();let r=this.getMethodWithName(t);return r||(r=this.getStaticMethodWithName(t)),r}getMethodWithName(e){return this.methods.get(e)||null}getStaticMethodWithName(e){return this.staticMethods.get(e)||null}addMethod(e){e.getModifiers().has("StaticKeyword")?this.staticMethods.set(e.getName(),e):this.methods.set(e.getName(),e)}setDefaultArkMethod(e){this.defaultMethod=e,this.addMethod(e)}getDefaultArkMethod(){return this.defaultMethod}setViewTree(e){this.viewTree=e}getViewTree(){return this.viewTree}hasViewTree(){return null!=this.viewTree}getStaticFields(e){const t=[];let r=[];r=this.declaringArkNamespace?e.get(this.declaringArkNamespace.getNamespaceSignature()):e.get(this.declaringArkFile.getFileSignature());for(const e of r)for(const r of e.getFields())r.isStatic()&&t.push(r);return t}getGlobalVariable(e){return this.declaringArkNamespace?e.get(this.declaringArkNamespace.getNamespaceSignature()):e.get(this.declaringArkFile.getFileSignature())}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof o.Decorator))}hasEntryDecorator(){return this.hasDecorator(s.ENTRY_DECORATOR)}hasComponentDecorator(){return this.hasDecorator(s.COMPONENT_DECORATOR)}hasDecorator(e){return 0!=this.getDecorators().filter((t=>e instanceof Set?e.has(t.getKind()):t.getKind()==e)).length}getAnonymousMethodNumber(){return this.anonymousMethodNumber++}getIndexSignatureNumber(){return this.indexSignatureNumber++}getExportType(){return c.ExportType.CLASS}}},7733:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ExportInfo=t.ExportType=void 0,function(e){e[e.NAME_SPACE=0]="NAME_SPACE",e[e.CLASS=1]="CLASS",e[e.METHOD=2]="METHOD",e[e.LOCAL=3]="LOCAL",e[e.UNKNOWN=4]="UNKNOWN"}(r||(t.ExportType=r={}));class n{constructor(){}getFrom(){return this.exportFrom}getOriginName(){var e;return null!==(e=this.nameBeforeAs)&&void 0!==e?e:this.exportClauseName}getExportClauseName(){return this.exportClauseName}setExportClauseType(e){this.exportClauseType=e}getExportClauseType(){return this.exportClauseType}getNameBeforeAs(){return this.nameBeforeAs}setTypeSignature(e){this.typeSignature=e}getExportFrom(){return this.exportFrom}getTypeSignature(){return this.typeSignature}isDefault(){var e;return this.exportFrom?"default"===this.nameBeforeAs:(void 0===this._default&&(this._default=null===(e=this.modifiers)||void 0===e?void 0:e.has("DefaultKeyword")),this._default)}getModifiers(){return this.modifiers}getOriginTsPosition(){return this.originTsPosition}getTsSourceCode(){return this.tsSourceCode}getDeclaringArkFile(){return this.declaringArkFile}}t.ExportInfo=n,n.Builder=class{constructor(){this.exportInfo=new n}exportClauseName(e){return this.exportInfo.exportClauseName=e,this}exportClauseType(e){return this.exportInfo.setExportClauseType(e),this}nameBeforeAs(e){return this.exportInfo.nameBeforeAs=e,this}addModifier(e){return this.exportInfo.modifiers||(this.exportInfo.modifiers=new Set),this.exportInfo.modifiers.add(e),this}modifiers(e){return e&&e.forEach((e=>this.addModifier(e))),this}originTsPosition(e){return this.exportInfo.originTsPosition=e,this}tsSourceCode(e){return this.exportInfo.tsSourceCode=e,this}declaringArkFile(e){return this.exportInfo.declaringArkFile=e,this}typeSignature(e){return this.exportInfo.setTypeSignature(e),this}exportFrom(e){return this.exportInfo.exportFrom=e,this}build(){return this.exportInfo}}},8403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkField=void 0;const n=r(2222),i=r(2454),a=r(7125),o=new Set(["State","Prop","Link","StorageProp","StorageLink","Provide","Consume","ObjectLink","LocalStorageLink","LocalStorageProp","Local","Param","Event","Provider","Consumer"]);class s{constructor(){this.name="",this.code="",this.fieldType="",this.parameters=[],this.typeParameters=[],this.modifiers=new Set,this.questionToken=!1,this.exclamationToken=!1}getDeclaringClass(){return this.declaringClass}setDeclaringClass(e){this.declaringClass=e}getCode(){return this.code}setCode(e){this.code=e}getFieldType(){return this.fieldType}setFieldType(e){this.fieldType=e}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}addParameter(e){this.typeParameters.push(e)}getTypeParameters(){return this.typeParameters}setTypeParameters(e){this.typeParameters=e}addTypeParameters(e){this.typeParameters.push(e)}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getSignature(){return this.fieldSignature}setSignature(e){this.fieldSignature=e}genSignature(){let e=new a.FieldSignature;e.setType(this.type),e.setDeclaringSignature(this.declaringClass.getSignature()),e.setFieldName(this.name),this.isStatic()&&e.setStatic(),this.setSignature(e)}getInitializer(){return this.initializer}setInitializer(e){this.initializer=e}isStatic(){return!!this.modifiers.has("StaticKeyword")}isProtected(){return!!this.modifiers.has("ProtectedKeyword")}isPrivate(){return!!this.modifiers.has("PrivateKeyword")}isPublic(){return!!this.modifiers.has("PublicKeyword")}isReadonly(){return!!this.modifiers.has("ReadonlyKeyword")}setQuestionToken(e){this.questionToken=e}setExclamationToken(e){this.exclamationToken=e}getQuestionToken(){return this.questionToken}getExclamationToken(){return this.exclamationToken}setOriginPosition(e){this.originPosition=e}getOriginPosition(){return this.originPosition}setArkMethodSignature(e){this.arkMethodSignature=e}getArkMethodSignature(){return this.arkMethodSignature}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator))}getStateDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator&&o.has(e.getKind())))}hasBuilderParamDecorator(){return 0!=this.getDecorators().filter((e=>e.getKind()==i.BUILDER_PARAM_DECORATOR)).length}}t.ArkField=s,s.DEFAULT_ARK_Field="_DEFAULT_ARK_Field"},3433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkFile=t.notStmtOrExprKind=void 0;const n=r(7125),i=r(2103);t.notStmtOrExprKind=["ModuleDeclaration","ClassDeclaration","InterfaceDeclaration","EnumDeclaration","ExportDeclaration","ExportAssignment","MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"];t.ArkFile=class{constructor(){this.projectName="",this.namespaces=new Map,this.classes=new Map,this.importInfoMap=new Map,this.exportInfoMap=new Map,this.ohPackageJson5Path=[],this.anonymousClassNumber=0}setName(e){this.name=e}getName(){return this.name}setScene(e){this.scene=e}getScene(){return this.scene}getModuleScene(){return this.moduleScene}setModuleScene(e){this.moduleScene=e}setProjectDir(e){this.projectDir=e}getProjectDir(){return this.projectDir}getFilePath(){return this.absoluteFilePath}setFilePath(e){this.absoluteFilePath=e}setCode(e){this.code=e}getCode(){return this.code}addArkClass(e){this.classes.set(e.getName(),e)}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getNamespace(e){const t=e.getNamespaceName();return this.getNamespaceWithName(t)}getNamespaceWithName(e){return this.namespaces.get(e)||null}getNamespaces(){return Array.from(this.namespaces.values())}getClass(e){const t=e.getClassName();return this.getClassWithName(t)}getClassWithName(e){return this.classes.get(e)||null}getClasses(){return Array.from(this.classes.values())}addNamespace(e){this.namespaces.set(e.getName(),e)}getImportInfos(){return Array.from(this.importInfoMap.values())}getImportInfoBy(e){return this.importInfoMap.get(e)}addImportInfo(e){this.importInfoMap.set(e.getImportClauseName(),e)}getExportInfos(){return Array.from(this.exportInfoMap.values())}getExportInfoBy(e){const t=this.exportInfoMap.get(e);return t?(0,i.setTypeForExportInfo)(t):null}addExportInfo(e){this.exportInfoMap.set(e.getExportClauseName(),e)}setProjectName(e){this.projectName=e}getProjectName(){return this.projectName}getModuleName(){return this.moduleScene.getModuleName()}setOhPackageJson5Path(e){this.ohPackageJson5Path=e}getOhPackageJson5Path(){return this.ohPackageJson5Path}genFileSignature(){let e=new n.FileSignature;e.setFileName(this.name),e.setProjectName(this.projectName),this.fileSignature=e}getFileSignature(){return this.fileSignature}getAllNamespacesUnderThisFile(){let e=[];return e.push(...this.namespaces.values()),this.namespaces.forEach((t=>{e.push(...t.getAllNamespacesUnderThisNamespace())})),e}getAnonymousClassNumber(){return this.anonymousClassNumber++}}},4522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportInfo=void 0;const n=r(2103);t.ImportInfo=class{constructor(){this.modifiers=new Set}build(e,t,r,n,i,a){this.setImportClauseName(e),this.setImportType(t),this.setImportFrom(r),this.setOriginTsPosition(n),i.forEach((e=>{this.addModifier(e)})),this.setNameBeforeAs(a)}getOriginName(){var e;return null!==(e=this.nameBeforeAs)&&void 0!==e?e:this.importClauseName}getLazyExportInfo(){return void 0===this.lazyExportInfo&&(this.lazyExportInfo=(0,n.findExportInfo)(this)),this.lazyExportInfo}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkFile(){return this.declaringArkFile}getImportClauseName(){return this.importClauseName}setImportClauseName(e){this.importClauseName=e}getImportType(){return this.importType}setImportType(e){this.importType=e}getImportFrom(){return this.importFrom}setImportFrom(e){this.importFrom=e}getNameBeforeAs(){return this.nameBeforeAs}setNameBeforeAs(e){this.nameBeforeAs=e}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}setOriginTsPosition(e){this.originTsPosition=e}getOriginTsPosition(){return this.originTsPosition}setTsSourceCode(e){this.tsSourceCode=e}getTsSourceCode(){return this.tsSourceCode}getFrom(){return this.importFrom}isDefault(){if("default"===this.nameBeforeAs)return!0;let e=this.tsSourceCode.indexOf(this.importClauseName);if(-1===e)return!1;let t=this.tsSourceCode.indexOf("{"),r=this.tsSourceCode.indexOf("}");return!(e>t&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkMethod=t.arkMethodNodeKind=void 0;const n=r(3938),i=r(9029),a=r(9803),o=r(7125),s=r(2222),c=r(7733);t.arkMethodNodeKind=["MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"];t.ArkMethod=class{constructor(){this.line=-1,this.column=-1,this.returnType=a.UnknownType.getInstance(),this.parameters=[],this.modifiers=new Set,this.typeParameters=[]}getExportType(){return c.ExportType.METHOD}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}getDeclaringArkClass(){return this.declaringArkClass}setDeclaringArkClass(e){this.declaringArkClass=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(){this.declaringArkFile=this.getDeclaringArkClass().getDeclaringArkFile()}isExported(){return this.modifiers.has("ExportKeyword")}isStatic(){return!!this.modifiers.has("StaticKeyword")}isDefaultArkMethod(){return"_DEFAULT_ARK_METHOD"===this.getName()}getParameters(){return this.parameters}addParameter(e){this.parameters.push(e)}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e,this.methodSubSignature&&this.methodSubSignature.setReturnType(e)}getSignature(){return this.methodSignature}setSignature(e){this.methodSignature=e}getSubSignature(){return this.methodSubSignature}setSubSignature(e){this.methodSubSignature=e}genSignature(){let e=new o.MethodSubSignature;e.setMethodName(this.name),e.setParameters(this.parameters),e.setReturnType(this.returnType),this.isStatic()&&e.setStatic(),this.setSubSignature(e);let t=new o.MethodSignature;t.setDeclaringClassSignature(this.declaringArkClass.getSignature()),t.setMethodSubSignature(e),this.setSignature(t)}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getTypeParameter(){return this.typeParameters}addTypeParameter(e){this.typeParameters.push(e)}containsModifier(e){return this.modifiers.has(e)}getBody(){return this.body}setBody(e){this.body=e}getCfg(){return this.body.getCfg()}getOriginalCfg(){return this.body.getOriginalCfg()}getParameterInstances(){let e=this.getCfg().getStmts(),t=[];for(let r of e)if(r instanceof i.ArkAssignStmt&&r.getRightOp()instanceof n.ArkParameterRef&&t.push(r.getLeftOp()),t.length==this.getParameters().length)return t;return t}getThisInstance(){let e=this.getCfg().getStmts();for(let t of e)if(t instanceof i.ArkAssignStmt&&t.getRightOp()instanceof n.ArkThisRef)return t.getLeftOp();return null}getReturnValues(){let e=[],t=this.getCfg().getStmts();for(let r of t)r instanceof i.ArkReturnStmt&&e.push(r.getOp());return e}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof s.Decorator))}hasBuilderDecorator(){return 0!=this.getDecorators().filter((e=>"Builder"==e.getKind())).length}setViewTree(e){this.viewTree=e}getViewTree(){return this.viewTree}hasViewTree(){return null!=this.viewTree}setBodyBuilder(e){this.bodyBuilder=e,this.declaringArkFile.getScene().buildClassDone()&&this.buildBody()}buildBody(){this.bodyBuilder&&(this.setBody(this.bodyBuilder.build()),this.getCfg().setDeclaringMethod(this),this.bodyBuilder=void 0)}}},1812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkNamespace=void 0;const n=r(2222),i=r(7733),a=r(7125);t.ArkNamespace=class{constructor(){this.line=-1,this.column=-1,this.declaringArkNamespace=null,this.modifiers=new Set,this.exportInfos=new Map,this.namespaces=new Map,this.classes=new Map,this.anonymousClassNumber=0}addNamespace(e){this.namespaces.set(e.getName(),e)}getNamespace(e){const t=e.getNamespaceName();return this.getNamespaceWithName(t)}getNamespaceWithName(e){return this.namespaces.get(e)||null}getNamespaces(){return Array.from(this.namespaces.values())}genNamespaceSignature(){let e=new a.NamespaceSignature;e.setNamespaceName(this.name),e.setDeclaringFileSignature(this.declaringArkFile.getFileSignature()),this.declaringArkNamespace&&e.setDeclaringNamespaceSignature(this.declaringArkNamespace.getNamespaceSignature()),this.namespaceSignature=e}getSignature(){return this.namespaceSignature}getNamespaceSignature(){return this.namespaceSignature}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}setDeclaringType(e){this.declaringType=e}getDeclaringType(){return this.declaringType}getDeclaringInstance(){return this.declaringInstance}setDeclaringInstance(e){this.declaringInstance=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkNamespace(){return this.declaringArkNamespace}setDeclaringArkNamespace(e){this.declaringArkNamespace=e}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}containsModifier(e){return this.modifiers.has(e)}getClass(e){const t=e.getClassName();return this.getClassWithName(t)}getClassWithName(e){return this.classes.get(e)||null}getClasses(){return Array.from(this.classes.values())}addArkClass(e){this.classes.set(e.getName(),e)}isExported(){return this.containsModifier("ExportKeyword")}getExportInfos(){return Array.from(this.exportInfos.values())}getExportInfosMap(){return this.exportInfos}addExportInfo(e){this.exportInfos.set(e.getExportClauseName(),e)}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getAllMethodsUnderThisNamespace(){let e=[];return this.classes.forEach((t=>{e.push(...t.getMethods())})),this.namespaces.forEach((t=>{e.push(...t.getAllMethodsUnderThisNamespace())})),e}getAllClassesUnderThisNamespace(){let e=[];return e.push(...this.classes.values()),this.namespaces.forEach((t=>{e.push(...t.getAllClassesUnderThisNamespace())})),e}getAllNamespacesUnderThisNamespace(){let e=[];return e.push(...this.namespaces.values()),this.namespaces.forEach((t=>{e.push(...t.getAllNamespacesUnderThisNamespace())})),e}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator))}getAnonymousClassNumber(){return this.anonymousClassNumber++}getExportType(){return i.ExportType.NAME_SPACE}}},7125:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.genSignature4ImportClause=t.fileSignatureCompare=t.classSignatureCompare=t.methodSubSignatureCompare=t.methodSignatureCompare=t.fieldSignatureCompare=t.InterfaceSignature=t.MethodSignature=t.MethodSubSignature=t.FieldSignature=t.ClassSignature=t.NamespaceSignature=t.FileSignature=void 0;const i=n(r(6928)),a=r(3387),o=r(9803);n(r(7015)).default.getLogger();class s{constructor(){this.projectName="_UnknownProjectName",this.fileName="_UnknownFileName"}getProjectName(){return this.projectName}setProjectName(e){this.projectName=e}getFileName(){return this.fileName}setFileName(e){this.fileName=e}toString(){let e=(0,a.transfer2UnixPath)(this.fileName);return e="@"+this.projectName+"/"+e+": ",e}}t.FileSignature=s;t.NamespaceSignature=class{constructor(){this.namespaceName="",this.declaringFileSignature=new s,this.declaringNamespaceSignature=null}getNamespaceName(){return this.namespaceName}setNamespaceName(e){this.namespaceName=e}getDeclaringFileSignature(){return this.declaringFileSignature}setDeclaringFileSignature(e){this.declaringFileSignature=e}getDeclaringNamespaceSignature(){return this.declaringNamespaceSignature}setDeclaringNamespaceSignature(e){this.declaringNamespaceSignature=e}toString(){return this.declaringNamespaceSignature?this.declaringNamespaceSignature.toString()+"."+this.namespaceName:this.declaringFileSignature.toString()+this.namespaceName}};class c{getDeclaringFileSignature(){return this.declaringFileSignature}setDeclaringFileSignature(e){this.declaringFileSignature=e}getDeclaringNamespaceSignature(){return this.declaringNamespaceSignature}setDeclaringNamespaceSignature(e){this.declaringNamespaceSignature=e}getClassName(){return this.className}setClassName(e){this.className=e}getType(){return new o.ClassType(this)}constructor(){this.declaringFileSignature=new s,this.declaringNamespaceSignature=null,this.className=""}toString(){return this.declaringNamespaceSignature?this.declaringNamespaceSignature.toString()+"."+this.className:this.declaringFileSignature.toString()+this.className}}t.ClassSignature=c;t.FieldSignature=class{getDeclaringSignature(){return this.declaringSignature}setDeclaringSignature(e){this.declaringSignature=e}getBaseName(){return this.declaringSignature instanceof c?this.declaringSignature.getClassName():this.declaringSignature.getNamespaceName()}getFieldName(){return this.fieldName}setFieldName(e){this.fieldName=e}setType(e){this.type=e}getType(){return this.type}setStatic(){this.static=!0}isStatic(){return this.static}constructor(){this.declaringSignature=new c,this.fieldName="",this.type=o.UnknownType.getInstance(),this.static=!1}toString(){let e=this.fieldName;return this.isStatic()&&(e="[static]"+e),this.getDeclaringSignature().toString()+"."+e}};class l{getMethodName(){return this.methodName}setMethodName(e){this.methodName=e}getParameters(){return this.parameters}getParameterTypes(){return this.parameterTypes}setParameters(e){this.parameters=e,e.forEach((e=>{this.parameterTypes.add(e.getType())}))}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e}setStatic(){this.static=!0}isStatic(){return this.static}constructor(){this.methodName="",this.parameters=[],this.parameterTypes=new Set,this.returnType=o.UnknownType.getInstance(),this.static=!1}toString(){let e="";this.parameterTypes.forEach((t=>{e+=t.toString()+", "})),e=e.replace(/, $/,"");let t=`${this.getMethodName()}(${e})`;return this.isStatic()&&(t="[static]"+t),t}}t.MethodSubSignature=l;t.MethodSignature=class{getDeclaringClassSignature(){return this.declaringClassSignature}setDeclaringClassSignature(e){this.declaringClassSignature=e}getMethodSubSignature(){return this.methodSubSignature}setMethodSubSignature(e){this.methodSubSignature=e}getType(){return this.methodSubSignature.getReturnType()}constructor(){this.declaringClassSignature=new c,this.methodSubSignature=new l}toString(){return this.declaringClassSignature.toString()+"."+this.methodSubSignature.toString()}};function u(e,t){return!(e.getMethodName()!=t.getMethodName()||!function(e,t){const r=Array.from(e),n=Array.from(t);return function(e,t){if(e.length!=t.length)return!1;for(let r=0;r.<#Interface#>.<${this.getInterfaceName()}>`}},t.fieldSignatureCompare=function(e,t){return e.getDeclaringSignature().toString()===t.getDeclaringSignature().toString()&&e.getFieldName()==t.getFieldName()},t.methodSignatureCompare=function(e,t){return!(!d(e.getDeclaringClassSignature(),t.getDeclaringClassSignature())||!u(e.getMethodSubSignature(),t.getMethodSubSignature()))},t.methodSubSignatureCompare=u,t.classSignatureCompare=d,t.fileSignatureCompare=p,t.genSignature4ImportClause=function(e,t){return`<${e}>.<${t}>`}},732:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultClassField=t.buildNormalArkClass=t.buildNormalArkClassFromArkNamespace=t.buildNormalArkClassFromArkFile=t.buildNormalArkClassFromArkMethod=t.buildDefaultArkClassFromArkNamespace=t.buildDefaultArkClassFromArkFile=void 0;const i=r(8403),a=r(5482),o=n(r(7015)),s=(r(3532),n(r(3221))),c=r(8951),l=r(3819),u=r(600),d=r(8596),p=o.default.getLogger();function _(e,t,r,n,i){r.setDeclaringArkFile(t),r.setCode(e.getText(n));const{line:a,character:o}=s.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(a+1),r.setColumn(o+1),m(e,r,n,i),t.addArkClass(r)}function f(e,t,r,n,i){r.setDeclaringArkNamespace(t),r.setDeclaringArkFile(t.getDeclaringArkFile()),r.setCode(e.getText(n));const{line:a,character:o}=s.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(a+1),r.setColumn(o+1),m(e,r,n,i),t.addArkClass(r)}function g(e,t,r){e.setName("_DEFAULT_ARK_CLASS"),e.genSignature(),function(e,t,r){let n=new a.ArkMethod;(0,c.buildDefaultArkMethodFromArkClass)(e,n,t,r),e.setDefaultArkMethod(n)}(e,t,r)}function m(e,t,r,n){switch(e.kind){case s.default.SyntaxKind.StructDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)}));if(e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Struct"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.ClassDeclaration:case s.default.SyntaxKind.ClassExpression:h(e,t,r,n);break;case s.default.SyntaxKind.InterfaceDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)}));if(e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Interface"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.EnumDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Enum"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.TypeLiteral:!function(e,t,r,n){y(e,t,n),t.genSignature(),t.setOriginType("TypeLiteral"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.ObjectLiteralExpression:!function(e,t,r,n){y(e,t,n),t.genSignature(),t.setOriginType("Object");let i=[];e.properties.forEach((e=>{if(s.default.isPropertyAssignment(e)||s.default.isShorthandPropertyAssignment(e)||s.default.isSpreadAssignment(e))(0,u.buildProperty2ArkField)(e,r,t);else{let n=new a.ArkMethod;n.setDeclaringArkClass(t),n.setDeclaringArkFile(),(0,c.buildArkMethodFromArkClass)(e,t,n,r)}})),i.forEach((e=>{t.addMethod(e)}))}(e,t,r,n)}}function h(e,t,r,n){if(e.name?t.setName(e.name.text):y(e,t,n),t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)})),e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Class"),v(e,t,r)}function y(e,t,r){const n=t.getDeclaringArkNamespace(),i=t.getDeclaringArkFile();let a="",o="";r&&(o=r.getName()+"-"),a=n?"AnonymousClass-"+o+n.getAnonymousClassNumber():"AnonymousClass-"+o+i.getAnonymousClassNumber(),t.setName(a)}function v(e,t,r){s.default.isObjectLiteralExpression(e)||e.members.forEach((e=>{if(s.default.isPropertyDeclaration(e)||s.default.isPropertySignature(e)||s.default.isEnumMember(e))(0,u.buildProperty2ArkField)(e,r,t);else if(s.default.isIndexSignatureDeclaration(e))(0,u.buildIndexSignature2ArkField)(e,r,t);else if(s.default.isMethodDeclaration(e)||s.default.isConstructorDeclaration(e)||s.default.isMethodSignature(e)||s.default.isConstructSignatureDeclaration(e)||s.default.isAccessor(e)||s.default.isCallSignatureDeclaration(e)){let n=new a.ArkMethod;(0,c.buildArkMethodFromArkClass)(e,t,n,r),t.addMethod(n),s.default.isGetAccessor(e)&&(0,u.buildGetAccessor2ArkField)(e,n,r)}else s.default.isSemicolonClassElement(e)?p.debug("Skip these members."):p.warn("Please contact developers to support new member type!")}))}t.buildDefaultArkClassFromArkFile=function(e,t,r){t.setDeclaringArkFile(e),g(t,r)},t.buildDefaultArkClassFromArkNamespace=function(e,t,r,n){t.setDeclaringArkNamespace(e),t.setDeclaringArkFile(e.getDeclaringArkFile()),g(t,n,r)},t.buildNormalArkClassFromArkMethod=function(e,t,r){const n=t.getDeclaringArkNamespace();n?f(e,n,t,r):_(e,t.getDeclaringArkFile(),t,r)},t.buildNormalArkClassFromArkFile=_,t.buildNormalArkClassFromArkNamespace=f,t.buildNormalArkClass=m,t.generateDefaultClassField=function(e){var t;const r=null==e?void 0:e.getDefaultArkMethod();r&&(d.TypeInference.inferTypeInMethod(r),null===(t=e.getDefaultArkMethod())||void 0===t||t.getBody().getLocals().forEach((t=>{if(t.getName().startsWith("$temp")||e.getDeclaringArkFile().getImportInfoBy(t.getName())||"this"===t.getName());else{const r=new i.ArkField;r.setFieldType(i.ArkField.DEFAULT_ARK_Field),r.setDeclaringClass(e),r.setType(t.getType()),r.setName(t.getName()),r.genSignature(),e.addField(r)}})))}},9718:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isExported=t.buildExportTypeAliasDeclaration=t.buildExportVariableStatement=t.buildExportDeclaration=t.buildExportAssignment=t.buildExportInfo=void 0;const i=n(r(3221)),a=r(6356),o=r(7733),s=r(3819);t.buildExportInfo=function(e,t,r){return(new o.ExportInfo.Builder).exportClauseName(e.getName()).exportClauseType(e.getExportType()).nameBeforeAs(e.getName()).modifiers(e.getModifiers()).typeSignature(e.getSignature()).originTsPosition(r).declaringArkFile(t).build()},t.buildExportDeclaration=function(e,t,r){const n=a.LineColPosition.buildFromNode(e,t),c=e.getText(t),l=e.modifiers?(0,s.buildModifiers)(e,t):new Set;let u="";e.moduleSpecifier&&i.default.isStringLiteral(e.moduleSpecifier)&&(u=e.moduleSpecifier.text);let d=[];if(e.exportClause&&i.default.isNamedExports(e.exportClause)&&e.exportClause.elements)return e.exportClause.elements.forEach((e=>{let t=e.propertyName&&i.default.isIdentifier(e.propertyName)?e.propertyName.text:e.name.text,a=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).exportClauseName(e.name.text).nameBeforeAs(t).tsSourceCode(c).exportFrom(u).originTsPosition(n).declaringArkFile(r).modifiers(l);d.push(a.build())})),d;let p=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).nameBeforeAs("*").modifiers(l).tsSourceCode(c).exportFrom(u).declaringArkFile(r).originTsPosition(n);return e.exportClause&&i.default.isNamespaceExport(e.exportClause)&&i.default.isIdentifier(e.exportClause.name)?d.push(p.exportClauseName(e.exportClause.name.text).build()):!e.exportClause&&e.moduleSpecifier&&d.push(p.exportClauseName("*").build()),d},t.buildExportAssignment=function(e,t,r){let n=[];if(!e.expression)return n;const c=a.LineColPosition.buildFromNode(e,t),l=e.getText(t),u=(0,s.buildModifiers)(e,t);if(function(e,t){if(!e)return!1;for(let r of e)if(r.kind===t)return!0;return!1}(e.getChildren(t),i.default.SyntaxKind.DefaultKeyword)&&u.add(i.default.SyntaxKind[i.default.SyntaxKind.DefaultKeyword]),i.default.isObjectLiteralExpression(e.expression)&&e.expression.properties)e.expression.properties.forEach((e=>{if(e.name&&i.default.isIdentifier(e.name)){e.name.text;const t=(new o.ExportInfo.Builder).exportClauseName(e.name.text).exportClauseType(o.ExportType.UNKNOWN).nameBeforeAs(e.name.text).modifiers(u).tsSourceCode(l).originTsPosition(c).declaringArkFile(r).build();n.push(t)}}));else{const a=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).modifiers(u).tsSourceCode(l).originTsPosition(c).declaringArkFile(r).exportClauseName("default");i.default.isIdentifier(e.expression)?a.nameBeforeAs(e.expression.text):i.default.isAsExpression(e.expression)&&a.nameBeforeAs(e.expression.expression.getText(t)),n.push(a.build())}return n},t.buildExportVariableStatement=function(e,t,r){let n=[];const i=a.LineColPosition.buildFromNode(e,t),c=e.modifiers?(0,s.buildModifiers)(e,t):new Set,l=e.getText(t);return e.declarationList.declarations.forEach((e=>{const a=(new o.ExportInfo.Builder).exportClauseName(e.name.getText(t)).exportClauseType(o.ExportType.LOCAL).modifiers(c).tsSourceCode(l).originTsPosition(i).declaringArkFile(r).build();n.push(a)})),n},t.buildExportTypeAliasDeclaration=function(e,t,r){let n=[];const i=a.LineColPosition.buildFromNode(e,t),c=e.modifiers?(0,s.buildModifiers)(e,t):new Set,l=e.getText(t),u=(new o.ExportInfo.Builder).exportClauseName(e.name.text).exportClauseType(o.ExportType.LOCAL).tsSourceCode(l).modifiers(c).originTsPosition(i).declaringArkFile(r).build();return n.push(u),n},t.isExported=function(e){if(!e)return!1;for(let t of e)if(t.kind===i.default.SyntaxKind.ExportKeyword)return!0;return!1}},600:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildGetAccessor2ArkField=t.buildIndexSignature2ArkField=t.buildProperty2ArkField=void 0;const i=n(r(3221)),a=r(8403),o=n(r(7015)),s=r(6356),c=r(3819),l=o.default.getLogger();t.buildProperty2ArkField=function(e,t,r){let n=new a.ArkField;if(n.setFieldType(i.default.SyntaxKind[e.kind]),n.setCode(e.getText(t)),n.setOriginPosition(s.LineColPosition.buildFromNode(e,t)),r&&n.setDeclaringClass(r),e.name&&i.default.isComputedPropertyName(e.name))if(i.default.isIdentifier(e.name.expression)){let t=e.name.expression.text;n.setName(t)}else i.default.isPropertyAccessExpression(e.name.expression)?n.setName((0,c.handlePropertyAccessExpression)(e.name.expression)):l.warn("Other property expression type found!");else if(e.name&&i.default.isIdentifier(e.name)){let t=e.name.text;n.setName(t)}else l.warn("Other type of property name found!");if(i.default.isPropertyDeclaration(e)||i.default.isPropertyAssignment(e)||i.default.isEnumMember(e)?e.initializer&&n.setInitializer((0,c.tsNode2Value)(e.initializer,t,r)):i.default.isShorthandPropertyAssignment(e)?e.objectAssignmentInitializer&&n.setInitializer((0,c.tsNode2Value)(e.objectAssignmentInitializer,t,r)):i.default.isSpreadAssignment(e)&&n.setInitializer((0,c.tsNode2Value)(e.expression,t,r)),(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.modifiers){(0,c.buildModifiers)(e,t).forEach((e=>{n.addModifier(e)}))}(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.type&&n.setType((0,c.tsNode2Type)(e.type,t,r)),(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.questionToken&&n.setQuestionToken(!0),i.default.isPropertyDeclaration(e)&&e.exclamationToken&&n.setExclamationToken(!0),i.default.isEnumMember(e)&&n.addModifier("StaticKeyword"),r&&r.addField(n),n.genSignature()},t.buildIndexSignature2ArkField=function(e,t,r){let n=new a.ArkField;var o;n.setCode(e.getText(t)),n.setFieldType(i.default.SyntaxKind[e.kind]),r&&n.setDeclaringClass(r),e.name?n.setName(e.name.getText(t)):n.setName("IndexSignature-"+(o=r).getName()+"-"+o.getIndexSignatureNumber()),n.setOriginPosition(s.LineColPosition.buildFromNode(e,t)),e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{n.addModifier(e)})),n.setType((0,c.tsNode2Type)(e.type,t,n)),r&&r.addField(n),n.genSignature()},t.buildGetAccessor2ArkField=function(e,t,r){let n=new a.ArkField;if(n.setCode(e.getText(r)),i.default.isIdentifier(e.name))n.setName(e.name.text);else if(i.default.isComputedPropertyName(e.name))if(i.default.isIdentifier(e.name.expression)){let t=e.name.expression.text;n.setName(t)}else i.default.isPropertyAccessExpression(e.name.expression)?n.setName((0,c.handlePropertyAccessExpression)(e.name.expression)):i.default.isStringLiteral(e.name.expression)?n.setName(e.name.expression.text):l.warn("Other type of computed property name found!");else l.warn("Please contact developers to support new type of GetAccessor name!"),n.setName("");let o=t.getDeclaringArkClass();n.setFieldType(i.default.SyntaxKind[e.kind]),n.setOriginPosition(s.LineColPosition.buildFromNode(e,r)),n.setDeclaringClass(o),n.setParameters(t.getParameters()),n.setType(t.getReturnType()),n.setTypeParameters(t.getTypeParameter()),n.setArkMethodSignature(t.getSignature()),n.genSignature(),o.addField(n)}},7570:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expandImportAll=t.buildArkFileFromFile=t.notStmtOrExprKind=void 0;const i=n(r(9896)),a=n(r(6928)),o=n(r(3221)),s=r(1812),c=n(r(7015)),l=r(732),u=r(8951),d=r(2103),p=r(9718),_=r(6005),f=r(4567),g=r(5482),m=r(6356),h=r(2454),y=r(4522),v=c.default.getLogger();t.notStmtOrExprKind=["ModuleDeclaration","ClassDeclaration","InterfaceDeclaration","EnumDeclaration","ExportDeclaration","ExportAssignment","MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"],t.buildArkFileFromFile=function(e,t,r){r.setFilePath(e),r.setProjectDir(t),r.setName(a.default.relative(t,e)),r.genFileSignature(),r.setCode(i.default.readFileSync(r.getFilePath(),"utf8"));const n=o.default.createSourceFile(r.getName(),r.getCode(),o.default.ScriptTarget.Latest,void 0,void 0,h.ETS_COMPILER_OPTIONS);!function(e,t){let r=new f.ArkClass;(0,l.buildDefaultArkClassFromArkFile)(e,r,t),e.setDefaultClass(r),e.addArkClass(r)}(r,n),function(e,t){t.statements.forEach((r=>{if(o.default.isModuleDeclaration(r)){let n=new s.ArkNamespace;n.setDeclaringArkFile(e),(0,_.buildArkNamespace)(r,e,n,t),e.addNamespace(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isClassDeclaration(r)||o.default.isInterfaceDeclaration(r)||o.default.isEnumDeclaration(r)||o.default.isStructDeclaration(r)){let n=new f.ArkClass;(0,l.buildNormalArkClassFromArkFile)(r,e,n,t),e.addArkClass(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isMethodDeclaration(r)){v.warn("This is a MethodDeclaration in ArkFile.");let n=new g.ArkMethod;(0,u.buildArkMethodFromArkClass)(r,e.getDefaultClass(),n,t),e.getDefaultClass().addMethod(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isFunctionDeclaration(r)){let n=new g.ArkMethod;(0,u.buildArkMethodFromArkClass)(r,e.getDefaultClass(),n,t),e.getDefaultClass().addMethod(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isImportEqualsDeclaration(r)||o.default.isImportDeclaration(r)){let n=(0,d.buildImportInfo)(r,t);null==n||n.forEach((t=>{t.setDeclaringArkFile(e),e.addImportInfo(t)}))}else o.default.isExportDeclaration(r)?(0,p.buildExportDeclaration)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isExportAssignment(r)?(0,p.buildExportAssignment)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isVariableStatement(r)&&(0,p.isExported)(r.modifiers)?(0,p.buildExportVariableStatement)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isTypeAliasDeclaration(r)&&(0,p.isExported)(r.modifiers)?(0,p.buildExportTypeAliasDeclaration)(r,t,e).forEach((t=>e.addExportInfo(t))):v.info("Child joined default method of arkFile: ",o.default.SyntaxKind[r.kind])}))}(r,n)},t.expandImportAll=function(e){for(const t of e.values()){t.getImportInfos().forEach((e=>{if("*"===e.getNameBeforeAs()){let r=(0,d.getArkFile)(e);if(r){(0,d.expandExportInfo)(r);let n="*"===e.getImportClauseName()?"":e.getImportClauseName()+".";r.getExportInfos().forEach((r=>{let i=new y.ImportInfo;i.build(n+r.getExportClauseName(),e.getImportType(),e.getImportFrom(),e.getOriginTsPosition(),e.getModifiers(),r.getExportClauseName()),i.setDeclaringArkFile(e.getDeclaringArkFile()),i.setTsSourceCode(e.getTsSourceCode()),t.addImportInfo(i)}))}else v.warn("from file not found:"+e.getTsSourceCode())}}))}}},2103:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildImportInfo=t.setTypeForExportInfo=t.findExportInfo=t.getArkFile=t.expandExportInfo=void 0;const i=n(r(3221)),a=n(r(6928)),o=r(6356),s=r(4522),c=r(3819),l=r(7733),u=r(7125),d=n(r(7015)),p=r(3387),_=r(4040),f=d.default.getLogger(),g=new Map,m=[".ets: ",".ts: ",".tts: ",".d.ets: ",".d.ts: ",".d.tts: "];function h(e){const t=e.getFrom();if(!t)return null;if(/^([^@]*\/)([^\/]*)$/.test(t)){const r=/^\.{1,2}\//.test(t)?a.default.dirname(e.getDeclaringArkFile().getFilePath()):e.getDeclaringArkFile().getProjectDir();return x(e,a.default.resolve(r,t))}if(/^@[a-z|\-]+?\//.test(t))return function(e){var t,r,n;const i=e.getFrom();0===g.size&&e.getDeclaringArkFile().getScene().getOhPkgContentMap().forEach(((e,t)=>{e.dependencies&&Object.entries(e.dependencies).forEach((([e,r])=>{let n=r;/^(file:)?\.{1,2}\//.test(r)&&(n=a.default.resolve(a.default.dirname(t),r.replace("file:",""))),g.set(e,n)}))}));let o,s,c;(o=i.indexOf("src"))>0||(o=i.indexOf("Index"))>0||(o=i.indexOf("index"))>0?(c=null!==(t=g.get(i.substring(0,o).replace(/\/*$/,"")))&&void 0!==t?t:"",s=x(e,a.default.join(null!=c?c:"",i.substring(o)))):(c=null!==(r=g.get(i))&&void 0!==r?r:"",s=null!==(n=x(e,a.default.join(c,"index.ets")))&&void 0!==n?n:x(e,a.default.join(c,"Index.ets")));return s&&T(e,s)?s:x(e,a.default.join(c,"/src/main/ets/TsIndex.ts"))}(e);{const r=e.getDeclaringArkFile().getScene();for(const e of r.getProjectSdkMap().keys()){const n=D(b(e,t),r.getSdkArkFilesMap());if(n)return n}}}function y(e){var t,r;let n=h(e);if(null==n)return f.warn(e.getOriginName()+" "+e.getFrom()+" file not found: "+(null===(r=null===(t=e.getDeclaringArkFile())||void 0===t?void 0:t.getFileSignature())||void 0===r?void 0:r.toString())),null;let i=T(e,n);return null===i?(f.warn("export info not found, "+e.getFrom()+" in file: "+e.getDeclaringArkFile().getFileSignature().toString()),null):i}function v(e){if(e.getTypeSignature())return e;if(!e.getFrom()){if(e.getExportClauseType()===l.ExportType.LOCAL)C(e);else{let t=function(e){const t=e.getDeclaringArkFile().getClassWithName(e.getOriginName());if(t)return e.setExportClauseType(l.ExportType.CLASS),e.setTypeSignature(t.getSignature()),!0;return!1}(e);t||(t=function(e){const t=e.getDeclaringArkFile().getNamespaceWithName(e.getOriginName());if(t)return e.setExportClauseType(l.ExportType.NAME_SPACE),e.setTypeSignature(t.getSignature()),!0;return!1}(e)),t||C(e),t||function(e){const t=e.getDeclaringArkFile().getImportInfoBy(e.getOriginName());if(t){const r=y(t);if(r)return e.setExportClauseType(r.getExportClauseType()),e.setTypeSignature(r.getTypeSignature()),!0}}(e)}return e}if(e.getExportClauseType()===l.ExportType.UNKNOWN){const t=y(e);t&&(e.setExportClauseType(t.getExportClauseType()),e.setTypeSignature(t.getTypeSignature()))}return e.getTypeSignature()||f.warn(e.getExportClauseName()+" get type signature fail from "+e.getFrom()+" at "+e.getDeclaringArkFile().getFileSignature().toString()),e}function b(e,t){let r;if(t.startsWith("@ohos.")||t.startsWith("@system."))r="api";else if(t.startsWith("@kit."))r="kits";else{if(!t.startsWith("@arkts."))return t;r="arkts"}return`@${e}/${r}/${t}`}function x(e,t){_.FileUtils.isDirectory(t)&&(t=a.default.join(t,_.FileUtils.getIndexFileName(t)));const r=a.default.relative(e.getDeclaringArkFile().getProjectDir(),t),n=e.getDeclaringArkFile().getScene();if(/\.e?ts$/.test(t)){const t=new u.FileSignature;return t.setProjectName(e.getDeclaringArkFile().getProjectName()),t.setFileName(r),n.getFile(t)}const i=e.getDeclaringArkFile().getProjectName(),o=`@${i}/${r}`;return i!==n.getProjectName()?D(o,n.getSdkArkFilesMap()):D(o,n.getFilesMap())}function D(e,t){for(const r of m){const n=t.get((0,p.transfer2UnixPath)(e)+r);if(n)return n}}function S(e,t){return(new l.ExportInfo.Builder).exportClauseType(l.ExportType.CLASS).exportClauseName(e.getOriginName()).declaringArkFile(t).typeSignature(t.getDefaultClass().getSignature()).build()}function T(e,t){if("*"===e.getOriginName())return S(e,t);let r=null;if(e.isDefault()){if(r=t.getExportInfos().find((e=>e.isDefault())),r)return v(r);if(/\.d\.e?ts$/.test(t.getName()))return S(e,t)}return t.getExportInfoBy(e.getOriginName())}function C(e){var t,r;let n=null===(r=null===(t=e.getDeclaringArkFile().getDefaultClass().getDefaultArkMethod())||void 0===t?void 0:t.getBody())||void 0===r?void 0:r.getLocals().get(e.getOriginName());return!!n&&(e.setExportClauseType(l.ExportType.LOCAL),e.setTypeSignature(n),!0)}t.expandExportInfo=function e(t){t.getExportInfos().forEach((r=>{if("*"===r.getNameBeforeAs()){let n=h(r);if(n){e(n);let i="*"===r.getExportClauseName()?"":r.getExportClauseName()+".";n.getExportInfos().forEach((e=>{let n=v(e),a=(new l.ExportInfo.Builder).exportClauseName(i+n.getExportClauseName()).nameBeforeAs(n.getExportClauseName()).exportClauseType(n.getExportClauseType()).modifiers(r.getModifiers()).typeSignature(n.getTypeSignature()).originTsPosition(n.getOriginTsPosition()).declaringArkFile(n.getDeclaringArkFile()).build();t.addExportInfo(a)})),t.addExportInfo(r)}}}))},t.getArkFile=h,t.findExportInfo=y,t.setTypeForExportInfo=v,t.buildImportInfo=function(e,t){return i.default.isImportDeclaration(e)?function(e,t){const r=o.LineColPosition.buildFromNode(e,t),n=e.getText(t);let a=[],l="";i.default.isStringLiteral(e.moduleSpecifier)&&(l=e.moduleSpecifier.text);const u=new Set;e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{u.add(e)}));if(!e.importClause){let e="",t="",i=new s.ImportInfo;i.build(e,t,l,r,u),i.setTsSourceCode(n),a.push(i)}if(e.importClause&&e.importClause.name&&i.default.isIdentifier(e.importClause.name)){let t=e.importClause.name.text,i="Identifier",o=new s.ImportInfo;o.build(t,i,l,r,u),o.setTsSourceCode(n),a.push(o)}if(e.importClause&&e.importClause.namedBindings&&i.default.isNamedImports(e.importClause.namedBindings)){let t="NamedImports";e.importClause.namedBindings.elements&&e.importClause.namedBindings.elements.forEach((e=>{if(e.name&&i.default.isIdentifier(e.name)){let o=e.name.text;if(e.propertyName&&i.default.isIdentifier(e.propertyName)){let i=new s.ImportInfo;i.build(o,t,l,r,u,e.propertyName.text),i.setTsSourceCode(n),a.push(i)}else{let e=new s.ImportInfo;e.build(o,t,l,r,u),e.setTsSourceCode(n),a.push(e)}}}))}if(e.importClause&&e.importClause.namedBindings&&i.default.isNamespaceImport(e.importClause.namedBindings)){let t="NamespaceImport";if(e.importClause.namedBindings.name&&i.default.isIdentifier(e.importClause.namedBindings.name)){let i=e.importClause.namedBindings.name.text,o=new s.ImportInfo,c="*";o.build(i,t,l,r,u,c),o.setTsSourceCode(n),a.push(o)}}return a}(e,t):i.default.isImportEqualsDeclaration(e)?function(e,t){const r=o.LineColPosition.buildFromNode(e,t),n=e.getText(t);let a=[],l="EqualsImport";const u=new Set;e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{u.add(e)}));if(e.moduleReference&&i.default.isExternalModuleReference(e.moduleReference)&&e.moduleReference.expression&&i.default.isStringLiteral(e.moduleReference.expression)){let t=e.moduleReference.expression.text,i=e.name.text,o=new s.ImportInfo;o.build(i,l,t,r,u),o.setTsSourceCode(n),a.push(o)}return a}(e,t):[]}},8951:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodParameter=t.ArrayBindingPatternParameter=t.ObjectBindingPatternParameter=t.buildArkMethodFromArkClass=t.buildDefaultArkMethodFromArkClass=t.arkMethodNodeKind=void 0;const i=r(9020),a=r(2030),o=n(r(3221)),s=r(3819),c=n(r(7015)).default.getLogger();function l(e,t,r){let n="";r&&(n=r.getName()+"-");return"AnonymousMethod-"+n+t.getAnonymousMethodNumber()}t.arkMethodNodeKind=["MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"],t.buildDefaultArkMethodFromArkClass=function(e,t,r,n){t.setDeclaringArkClass(e),t.setDeclaringArkFile(),t.setName("_DEFAULT_ARK_METHOD"),t.genSignature();const a=n||r;let o=new i.BodyBuilder(t.getSignature(),a,t,r);t.setBodyBuilder(o)},t.buildArkMethodFromArkClass=function(e,t,r,n,u){r.setDeclaringArkClass(t),r.setDeclaringArkFile(),r.setCode(e.getText(n));const{line:d,character:p}=o.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(d+1),r.setColumn(p+1);const _=function(e,t,r,n){let i,a="";o.default.isFunctionDeclaration(e)||o.default.isFunctionExpression(e)?a=e.name?e.name.text:l(e,t,n):o.default.isFunctionTypeNode(e)?a=e.name?e.name.getText(r):l(e,t,n):o.default.isMethodDeclaration(e)||o.default.isMethodSignature(e)?o.default.isIdentifier(e.name)?a=e.name.text:o.default.isComputedPropertyName(e.name)?o.default.isIdentifier(e.name.expression)?a=e.name.expression.text:o.default.isPropertyAccessExpression(e.name.expression)?a=(0,s.handlePropertyAccessExpression)(e.name.expression):c.warn("Other method ComputedPropertyName found!"):c.warn("Other method declaration type found!"):o.default.isConstructorDeclaration(e)?a="constructor":o.default.isConstructSignatureDeclaration(e)?a="construct-signature":o.default.isCallSignatureDeclaration(e)?a="call-signature":o.default.isGetAccessor(e)&&o.default.isIdentifier(e.name)?(a="Get-"+e.name.text,i=e.name.text):o.default.isSetAccessor(e)&&o.default.isIdentifier(e.name)?a="Set-"+e.name.text:o.default.isArrowFunction(e)&&(a=l(e,t,n));return a}(e,t,n,u);r.setName(_),(0,s.buildParameters)(e.parameters,r,n).forEach((e=>{r.addParameter(e)})),(0,s.buildModifiers)(e,n).forEach((e=>{r.addModifier(e)})),e.type&&r.setReturnType((0,s.buildReturnType)(e.type,n,r)),e.typeParameters&&(0,s.buildTypeParameters)(e.typeParameters,n,r).forEach((e=>{r.addTypeParameter(e)})),r.genSignature();let f=new i.BodyBuilder(r.getSignature(),e,r,n);r.setBodyBuilder(f),r.hasBuilderDecorator()?r.setViewTree((0,a.buildViewTree)(r)):t.hasComponentDecorator()&&"build()"==r.getSubSignature().toString()&&!r.containsModifier("StaticKeyword")&&t.setViewTree((0,a.buildViewTree)(r)),t.addMethod(r)};t.ObjectBindingPatternParameter=class{constructor(){this.propertyName="",this.name="",this.optional=!1,this.initializer=""}getName(){return this.name}setName(e){this.name=e}getPropertyName(){return this.propertyName}setPropertyName(e){this.propertyName=e}isOptional(){return this.optional}setOptional(e){this.optional=e}};t.ArrayBindingPatternParameter=class{constructor(){this.propertyName="",this.name="",this.optional=!1,this.initializer=""}getName(){return this.name}setName(e){this.name=e}getPropertyName(){return this.propertyName}setPropertyName(e){this.propertyName=e}isOptional(){return this.optional}setOptional(e){this.optional=e}};t.MethodParameter=class{constructor(){this.name="",this.optional=!1,this.objElements=[],this.arrayElements=[]}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}isOptional(){return this.optional}setOptional(e){this.optional=e}addObjElement(e){this.objElements.push(e)}getObjElements(){return this.objElements}setObjElements(e){this.objElements=e}addArrayElement(e){this.arrayElements.push(e)}getArrayElements(){return this.arrayElements}setArrayElements(e){this.arrayElements=e}}},6005:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildArkNamespace=void 0;const i=r(6356),a=r(732),o=r(3433),s=r(8951),c=n(r(3221)),l=r(1812),u=r(3819),d=n(r(7015)),p=r(9718),_=r(4567),f=r(5482),g=d.default.getLogger();function m(e,t,r,n){r.setName(e.name.text),e.modifiers&&(0,u.buildModifiers)(e,n).forEach((e=>{r.addModifier(e)})),t instanceof o.ArkFile?(r.setDeclaringType("ArkFile"),r.setDeclaringArkFile(t)):(r.setDeclaringType("ArkNamespace"),r.setDeclaringArkNamespace(t),r.setDeclaringArkFile(t.getDeclaringArkFile())),r.setDeclaringInstance(t),r.genNamespaceSignature(),r.setCode(e.getText(n));const{line:d,character:h}=c.default.getLineAndCharacterOfPosition(n,e.getStart(n));if(r.setLine(d+1),r.setColumn(h+1),function(e,t,r){let n=new _.ArkClass;(0,a.buildDefaultArkClassFromArkNamespace)(e,n,t,r),e.setDefaultClass(n),e.addArkClass(n)}(r,e,n),e.body)if(c.default.isModuleBlock(e.body))!function(e,t,r){const n=e.statements;n.forEach((e=>{if(c.default.isModuleDeclaration(e)){let n=new l.ArkNamespace;n.setDeclaringArkNamespace(t),n.setDeclaringArkFile(t.getDeclaringArkFile()),m(e,t,n,r),t.addNamespace(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isClassDeclaration(e)||c.default.isInterfaceDeclaration(e)||c.default.isEnumDeclaration(e)||c.default.isStructDeclaration(e)){let n=new _.ArkClass;(0,a.buildNormalArkClassFromArkNamespace)(e,t,n,r),t.addArkClass(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isMethodDeclaration(e)){g.warn("This is a MethodDeclaration in ArkNamespace.");let n=new f.ArkMethod;(0,s.buildArkMethodFromArkClass)(e,t.getDefaultClass(),n,r),t.getDefaultClass().addMethod(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isFunctionDeclaration(e)){let n=new f.ArkMethod;(0,s.buildArkMethodFromArkClass)(e,t.getDefaultClass(),n,r),t.getDefaultClass().addMethod(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else c.default.isExportDeclaration(e)?(0,p.buildExportDeclaration)(e,r,t.getDeclaringArkFile()).forEach((e=>t.addExportInfo(e))):c.default.isExportAssignment(e)?(0,p.buildExportAssignment)(e,r,t.getDeclaringArkFile()).forEach((e=>t.addExportInfo(e))):g.info("Child joined default method of arkFile: ",c.default.SyntaxKind[e.kind])}))}(e.body,r,n);else if(c.default.isModuleDeclaration(e.body)){g.warn("This ModuleBody is an NamespaceDeclaration.");let t=new l.ArkNamespace;m(e.body,r,t,n)}else c.default.isIdentifier(e.body)?g.warn("ModuleBody is Identifier."):g.warn("JSDocNamespaceDeclaration found.");else g.warn("JSDocNamespaceDeclaration found.")}t.buildArkNamespace=m},2142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkSignatureBuilder=void 0;const n=r(7125);t.ArkSignatureBuilder=class{static buildMethodSignatureFromClassNameAndMethodName(e,t){const r=new n.ClassSignature;r.setClassName(e);const i=new n.MethodSubSignature;i.setMethodName(t);const a=new n.MethodSignature;return a.setDeclaringClassSignature(r),a.setMethodSubSignature(i),a}}},3819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tsNode2Value=t.buildTypeFromPreStr=t.tsNode2Type=t.buildReturnType=t.buildParameters=t.buildTypeParameters=t.buildHeritageClauses=t.buildModifiers=t.handlePropertyAccessExpression=t.handleQualifiedName=void 0;const i=n(r(3221)),a=r(9803),o=r(8596),s=r(8403),c=n(r(7015)),l=r(3755),u=r(3532),d=r(7125),p=r(4576),_=r(3938),f=r(4567),g=r(5482),m=r(2222),h=r(8951),y=r(732),v=c.default.getLogger();function b(e){let t=e.right.text,r="";return"Identifier"==i.default.SyntaxKind[e.left.kind]?r=e.left.text:"QualifiedName"==i.default.SyntaxKind[e.left.kind]&&(r=b(e.left)),r+"."+t}function x(e){let t=e.name.text,r="";return"Identifier"==i.default.SyntaxKind[e.expression.kind]||i.default.isStringLiteral(e.expression)?r=e.expression.text:i.default.isPropertyAccessExpression(e.expression)&&(r=x(e.expression)),r+"."+t}function D(e,t,r){if(i.default.isTypeReferenceNode(e)){const n=[];if(e.typeArguments)for(const i of e.typeArguments)n.push(D(i,t,r));let o=e.typeName;if(i.default.isQualifiedName(o)){let e=b(o);return new a.UnclearReferenceType(e,n)}{let e=o.text;return new a.UnclearReferenceType(e,n)}}if(i.default.isUnionTypeNode(e)){let n=[];return e.types.forEach((e=>{n.push(D(e,t,r))})),new a.UnionType(n)}if(i.default.isLiteralTypeNode(e))return S(i.default.SyntaxKind[e.literal.kind]);if(i.default.isTypeLiteralNode(e)){let n,i=new f.ArkClass;return n=r instanceof g.ArkMethod?r.getDeclaringArkClass():r instanceof s.ArkField?r.getDeclaringClass():r,n.getDeclaringArkNamespace()?(i.setDeclaringArkNamespace(n.getDeclaringArkNamespace()),i.setDeclaringArkFile(n.getDeclaringArkFile())):i.setDeclaringArkFile(n.getDeclaringArkFile()),(0,y.buildNormalArkClassFromArkMethod)(e,i,t),new a.ClassType(i.getSignature())}if(i.default.isFunctionTypeNode(e)){let n,i=new g.ArkMethod;return n=r instanceof g.ArkMethod?r.getDeclaringArkClass():r instanceof f.ArkClass?r:r.getDeclaringClass(),(0,h.buildArkMethodFromArkClass)(e,n,i,t),new a.CallableType(i.getSignature())}if(i.default.isTypeParameterDeclaration(e)){const t=e.name.text;return new a.TypeParameterType(t)}if(i.default.isTupleTypeNode(e)){const n=[];return e.elements.forEach((e=>{n.push(D(e,t,r))})),new a.TupleType(n)}return i.default.isArrayTypeNode(e)?new a.ArrayType(D(e.elementType,t,r),1):S(i.default.SyntaxKind[e.kind])}function S(e){let t="";switch(e){case"BooleanKeyword":case"FalseKeyword":case"TrueKeyword":t="boolean";break;case"NumberKeyword":case"NumericLiteral":case"FirstLiteralToken":t="number";break;case"StringKeyword":case"StringLiteral":t="string";break;case"UndefinedKeyword":t="undefined";break;case"NullKeyword":t="null";break;case"AnyKeyword":t="any";break;case"VoidKeyword":t="void";break;case"NeverKeyword":t="never";break;default:t=e}return o.TypeInference.buildTypeFromStr(t)}t.handleQualifiedName=b,t.handlePropertyAccessExpression=x,t.buildModifiers=function(e,t){var r;let n=new Set;function a(e){if("FirstContextualKeyword"==i.default.SyntaxKind[e.kind])n.add("AbstractKeyword");else if(i.default.isDecorator(e)){if(e.expression){let r="",a="";if(i.default.isIdentifier(e.expression))r=e.expression.text;else if(i.default.isCallExpression(e.expression)&&(i.default.isIdentifier(e.expression.expression)&&(r=e.expression.expression.text),e.expression.arguments.length>0)){const t=e.expression.arguments[0];if(i.default.isArrowFunction(t)){const e=t.body;i.default.isIdentifier(e)&&(a=e.text)}}const o=new m.Decorator(r);o.setContent(e.expression.getText(t)),""!=a&&o.setParam(a),n.add(o)}}else n.add(i.default.SyntaxKind[e.kind])}return i.default.canHaveModifiers(e)&&(null===(r=i.default.getModifiers(e))||void 0===r||r.forEach(a)),i.default.getAllDecorators(e).forEach(a),n},t.buildHeritageClauses=function(e){let t=new Map;return null==e||e.forEach((e=>{e.types.forEach((r=>{let n="";i.default.isIdentifier(r.expression)?n=r.expression.text:i.default.isPropertyAccessExpression(r.expression)?n=x(r.expression):v.warn("Other type expression found!!!"),t.set(n,i.default.SyntaxKind[e.token])}))})),t},t.buildTypeParameters=function(e,t,r){let n=[];return e.forEach((e=>{n.push(D(e,t,r)),e.modifiers&&v.warn("This typeparameter has modifiers."),e.expression&&v.warn("This typeparameter has expression.")})),n},t.buildParameters=function(e,t,r){let n=[];return e.forEach((e=>{let o=new h.MethodParameter;if(i.default.isIdentifier(e.name))o.setName(e.name.text);else if(i.default.isObjectBindingPattern(e.name)){o.setName("ObjectBindingPattern");let t=[];e.name.elements.forEach((e=>{let r=new h.ObjectBindingPatternParameter;e.propertyName&&(i.default.isIdentifier(e.propertyName)?r.setPropertyName(e.propertyName.text):v.warn("New propertyName of ObjectBindingPattern found, please contact developers to support this!")),e.name&&(i.default.isIdentifier(e.name)?r.setName(e.name.text):v.warn("New name of ObjectBindingPattern found, please contact developers to support this!")),e.initializer&&v.warn("TODO: support ObjectBindingPattern initializer."),e.dotDotDotToken&&r.setOptional(!0),t.push(r)})),o.setObjElements(t)}else if(i.default.isArrayBindingPattern(e.name)){o.setName("ArrayBindingPattern");let t=[];e.name.elements.forEach((e=>{let r=new h.ArrayBindingPatternParameter;i.default.isBindingElement(e)?(e.propertyName&&(i.default.isIdentifier(e.propertyName)?r.setPropertyName(e.propertyName.text):v.warn("New propertyName of ArrayBindingPattern found, please contact developers to support this!")),e.name&&(i.default.isIdentifier(e.name)?r.setName(e.name.text):v.warn("New name of ArrayBindingPattern found, please contact developers to support this!")),e.initializer&&v.warn("TODO: support ArrayBindingPattern initializer."),e.dotDotDotToken&&r.setOptional(!0)):i.default.isOmittedExpression(e)&&v.warn("TODO: support OmittedExpression for ArrayBindingPattern parameter name."),t.push(r)})),o.setArrayElements(t)}else v.warn("Parameter name is not identifier, ObjectBindingPattern nor ArrayBindingPattern, please contact developers to support this!");e.questionToken&&o.setOptional(!0),e.type?o.setType(D(e.type,r,t)):o.setType(a.UnknownType.getInstance()),e.initializer,e.dotDotDotToken,e.modifiers,n.push(o)})),n},t.buildReturnType=function(e,t,r){return e?D(e,t,r):new a.UnknownType},t.tsNode2Type=D,t.buildTypeFromPreStr=S,t.tsNode2Value=function e(t,r,n,o){var s,c;let m=i.default.SyntaxKind[t.kind];if("NumericLiteral"===m||"StringLiteral"===m||"TrueKeyword"===m||"FalseKeyword"===m||"FirstLiteralToken"===m||"NullKeyword"===m){let e=S(m),n=t.getText(r);return new l.Constant(n,e)}if(i.default.isNewExpression(t))if(i.default.isIdentifier(t.expression)){let e=t.expression.escapedText.toString(),n=[];null===(s=t.typeArguments)||void 0===s||s.forEach((e=>{n.push(S(i.default.SyntaxKind[e.kind]))}));let o=new a.UnionType(n),p=[];if(null===(c=t.arguments)||void 0===c||c.forEach((e=>{let t=e.getText(r),n=a.AnyType.getInstance();"Identifier"!=i.default.SyntaxKind[e.kind]&&(n=S(i.default.SyntaxKind[e.kind])),p.push(new l.Constant(t,n))})),"Array"!==e){let t=new d.ClassSignature;t.setClassName(e);const r=new a.ClassType(t);return new u.ArkNewExpr(r)}if(0===p.length)return new u.ArkNewArrayExpr(o,new l.Constant("0",new a.NumberType));if(1==p.length&&p[0].getType()instanceof a.NumberType)return new u.ArkNewArrayExpr(o,p[0]);if(1!=p.length||p[0].getType()instanceof a.NumberType){if(p.length>1){let e=new u.ArkNewArrayExpr(o,new l.Constant(p.length.toString(),a.NumberType.getInstance()));return v.warn("TODO, Local number or others."),e}}else v.warn("TODO, Local number or others.")}else{if(i.default.isPropertyAccessExpression(t.expression)){const e=x(t.expression);let r=new d.ClassSignature;r.setClassName(e);const n=new a.ClassType(r);return new u.ArkNewExpr(n)}v.warn("Other newExpr type found for ts node.")}else{if(i.default.isArrayLiteralExpression(t)){let i=[];t.elements.forEach((t=>{let a=e(t,r,n);null==a?i.push(new l.Constant("",S("UndefinedKeyword"))):i.push(a)}));let o=[];i.forEach((e=>{o.push(e.getType())}));let s=new a.UnionType(o);return new u.ArrayLiteralExpr(i,s)}if(i.default.isBinaryExpression(t)){let a=e(t.left,r,n),o=e(t.right,r,n),s=i.default.tokenToString(t.operatorToken.kind);return new u.ArkBinopExpr(a,o,s)}if(i.default.isPrefixUnaryExpression(t)){let a=i.default.SyntaxKind[t.operator],o=e(t.operand,r,n);return new u.ArkUnopExpr(o,a)}if(i.default.isIdentifier(t)){let e=t.escapedText.toString();return new p.Local(e)}if(i.default.isPropertyAccessExpression(t)){let i=t.name.escapedText.toString();const a=new d.FieldSignature;a.setFieldName(i);let o=e(t.expression,r,n);return new _.ArkInstanceFieldRef(o,a)}if(i.default.isCallExpression(t)){let i=e(t.expression,r,n),a=[];t.arguments.forEach((t=>{a.push(e(t,r,n))}));let o=new d.ClassSignature,s=new d.MethodSubSignature,c=new d.MethodSignature;if(c.setDeclaringClassSignature(o),c.setMethodSubSignature(s),i instanceof _.ArkInstanceFieldRef){let e=i.getFieldName(),t=i.getBase();return s.setMethodName(e),new u.ArkInstanceInvokeExpr(t,c,a)}return i instanceof _.ArkStaticFieldRef?(s.setMethodName(i.getFieldName()),new u.ArkStaticInvokeExpr(c,a)):(s.setMethodName(t.getText(r)),new u.ArkStaticInvokeExpr(c,a))}if(i.default.isObjectLiteralExpression(t)){const e=n.getDeclaringArkNamespace(),i=n.getDeclaringArkFile();let s=new f.ArkClass;e?((0,y.buildNormalArkClassFromArkNamespace)(t,e,s,r,o),e.addArkClass(s)):((0,y.buildNormalArkClassFromArkFile)(t,i,s,r,o),i.addArkClass(s));let c=s.getSignature();const l=new a.ClassType(c);return new u.ObjectLiteralExpr(s,l)}if(i.default.isArrowFunction(t)){let i=new g.ArkMethod;(0,h.buildArkMethodFromArkClass)(t,n,i,r);let a=[];return t.parameters.forEach((t=>{a.push(e(t,r,n))})),n.addMethod(i),new u.ArkStaticInvokeExpr(i.getSignature(),a)}if(i.default.isParameter(t)){if(i.default.isIdentifier(t.name))return new p.Local(t.name.getText(r));i.default.isObjectBindingPattern(t.name)?v.warn("Need to build ObjectBindingPattern value."):v.warn("Need to build ArrayBindingPattern value.")}else{if(t.kind===i.default.SyntaxKind.ThisKeyword)return new _.ArkThisRef(n.getSignature().getType());if(i.default.isConditionalExpression(t));else{if(i.default.isAsExpression(t)){const i=e(t.expression,r,n),a=D(t.type,r,n);return new u.ArkCastExpr(i,a)}if(i.default.isTemplateExpression(t)){let i=[];t.templateSpans.forEach((t=>{i.push(e(t.expression,r,n));const o=t.literal.rawText,s=o||"";i.push(new l.Constant(s,a.StringType.getInstance()))}))}else{if(i.default.isParenthesizedExpression(t))return e(t.expression,r,n);if(i.default.isAwaitExpression(t))return e(t.expression,r,n);if(i.default.isNonNullExpression(t))return e(t.expression,r,n);i.default.isElementAccessExpression(t)||v.warn("Other type found for ts node.")}}}}return new l.Constant("",a.UnknownType.getInstance())}},5513:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceFilePrinter=t.SourceNamespacePrinter=t.SourceClassPrinter=t.SourceMethodPrinter=t.DotFilePrinter=t.DotNamespacePrinter=t.DotClassPrinter=t.DotMethodPrinter=t.PrinterBuilder=t.Printer=t.Scene=t.SceneConfig=t.Config=t.MethodSignature=t.FileSignature=t.ImportInfo=t.ExportInfo=t.ArkField=t.ArkMethod=t.ArkClass=t.ArkNamespace=t.ArkFile=t.Cfg=t.BasicBlock=t.LineColPosition=t.Decorator=t.Local=t.Constant=void 0;var a=r(3755);Object.defineProperty(t,"Constant",{enumerable:!0,get:function(){return a.Constant}});var o=r(4576);Object.defineProperty(t,"Local",{enumerable:!0,get:function(){return o.Local}});var s=r(2222);Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return s.Decorator}});var c=r(6356);Object.defineProperty(t,"LineColPosition",{enumerable:!0,get:function(){return c.LineColPosition}}),i(r(9029),t),i(r(9803),t),i(r(3938),t),i(r(3532),t);var l=r(7451);Object.defineProperty(t,"BasicBlock",{enumerable:!0,get:function(){return l.BasicBlock}});var u=r(6624);Object.defineProperty(t,"Cfg",{enumerable:!0,get:function(){return u.Cfg}});var d=r(3433);Object.defineProperty(t,"ArkFile",{enumerable:!0,get:function(){return d.ArkFile}});var p=r(1812);Object.defineProperty(t,"ArkNamespace",{enumerable:!0,get:function(){return p.ArkNamespace}});var _=r(4567);Object.defineProperty(t,"ArkClass",{enumerable:!0,get:function(){return _.ArkClass}});var f=r(5482);Object.defineProperty(t,"ArkMethod",{enumerable:!0,get:function(){return f.ArkMethod}});var g=r(8403);Object.defineProperty(t,"ArkField",{enumerable:!0,get:function(){return g.ArkField}});var m=r(7733);Object.defineProperty(t,"ExportInfo",{enumerable:!0,get:function(){return m.ExportInfo}});var h=r(4522);Object.defineProperty(t,"ImportInfo",{enumerable:!0,get:function(){return h.ImportInfo}});var y=r(7125);Object.defineProperty(t,"FileSignature",{enumerable:!0,get:function(){return y.FileSignature}}),Object.defineProperty(t,"MethodSignature",{enumerable:!0,get:function(){return y.MethodSignature}});var v=r(4467);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return v.Config}}),Object.defineProperty(t,"SceneConfig",{enumerable:!0,get:function(){return v.SceneConfig}});var b=r(6805);Object.defineProperty(t,"Scene",{enumerable:!0,get:function(){return b.Scene}});var x=r(527);Object.defineProperty(t,"Printer",{enumerable:!0,get:function(){return x.Printer}});var D=r(7952);Object.defineProperty(t,"PrinterBuilder",{enumerable:!0,get:function(){return D.PrinterBuilder}});var S=r(7194);Object.defineProperty(t,"DotMethodPrinter",{enumerable:!0,get:function(){return S.DotMethodPrinter}}),Object.defineProperty(t,"DotClassPrinter",{enumerable:!0,get:function(){return S.DotClassPrinter}}),Object.defineProperty(t,"DotNamespacePrinter",{enumerable:!0,get:function(){return S.DotNamespacePrinter}}),Object.defineProperty(t,"DotFilePrinter",{enumerable:!0,get:function(){return S.DotFilePrinter}});var T=r(5825);Object.defineProperty(t,"SourceMethodPrinter",{enumerable:!0,get:function(){return T.SourceMethod}});var C=r(8070);Object.defineProperty(t,"SourceClassPrinter",{enumerable:!0,get:function(){return C.SourceClass}});var E=r(4865);Object.defineProperty(t,"SourceNamespacePrinter",{enumerable:!0,get:function(){return E.SourceNamespace}});var k=r(3932);Object.defineProperty(t,"SourceFilePrinter",{enumerable:!0,get:function(){return k.SourceFilePrinter}})},6039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkStream=t.ArkCodeBuffer=void 0;class r{constructor(e=""){this.output=[],this.indent="",this.indent=e}write(e){return this.output.push(e),this}writeLine(e){return this.write(e),this.write("\n"),this}writeSpace(e){return 0==e.length||(this.write(e),this.write(" ")),this}writeStringLiteral(e){return this.write(`'${e}'`),this}writeIndent(){return this.write(this.indent),this}incIndent(){return this.indent+=" ",this}decIndent(){return this.indent.length>=2&&(this.indent=this.indent.substring(0,this.indent.length-2)),this}getIndent(){return this.indent}toString(){return this.output.join("")}clear(){this.output=[]}}t.ArkCodeBuffer=r;t.ArkStream=class extends r{constructor(e){super(""),this.streamOut=e}write(e){return this.streamOut.write(e),this}close(){this.streamOut.close()}}},7194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DotFilePrinter=t.DotNamespacePrinter=t.DotClassPrinter=t.DotMethodPrinter=void 0;const n=r(527);class i extends n.Printer{constructor(e,t=!1){super(),this.method=e,this.nesting=t}dump(){this.printer.clear(),this.nesting?this.printer.writeIndent().writeLine(`subgraph "cluster_${this.method.getSignature()}" {`):this.printer.writeIndent().writeLine(`digraph "${this.method.getSignature()}" {`),this.printer.incIndent(),this.printer.writeIndent().writeLine(`label="${this.method.getSignature()}";`);let e=this.method.getBody().getCfg().getBlocks(),t=`Node${this.stringHashCode(this.method.getSignature().toString())}`;return this.printBlocks(e,t),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting?this.printer.writeIndent().writeLine(`subgraph "cluster_Original_${this.method.getSignature()}" {`):this.printer.writeIndent().writeLine(`digraph "${this.method.getSignature()}" {`),this.printer.incIndent(),this.printer.writeIndent().writeLine(`label="${this.method.getSignature()}_original";`);let e=this.method.getBody().getOriginalCfg().getBlocks(),t=`NodeOriginal${this.stringHashCode(this.method.getSignature().toString())}`;return this.printBlocks(e,t),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}stringHashCode(e){let t=0;for(let r=0;r ${r.get(e)};`)}getBlockContent(e,t){let r=[];for(let t of e.getStmts())r.push(t.toString().replace(/"/g,'\\"'));return r.join("\n "+t)}}t.DotMethodPrinter=i;class a extends n.Printer{constructor(e,t=!1){super(),this.cls=e,this.nesting=t}dump(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.cls.getName()}" {`),this.printer.incIndent());for(let e of this.cls.getMethods()){let t=new i(e,!0);this.printer.write(t.dump())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.cls.getName()}" {`),this.printer.incIndent());for(let e of this.cls.getMethods()){let t=new i(e,!0);this.printer.write(t.dumpOriginal())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}}t.DotClassPrinter=a;class o extends n.Printer{constructor(e,t=!1){super(),this.ns=e,this.nesting=t}dump(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.ns.getName()}" {`),this.printer.incIndent());for(let e of this.ns.getAllMethodsUnderThisNamespace()){let t=new i(e,!0);this.printer.write(t.dump())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.ns.getName()}" {`),this.printer.incIndent());for(let e of this.ns.getAllMethodsUnderThisNamespace()){let t=new i(e,!0);this.printer.write(t.dumpOriginal())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}}t.DotNamespacePrinter=o;class s extends n.Printer{constructor(e){super(),this.arkFile=e}dump(){this.printer.clear(),this.printer.writeLine(`digraph "${this.arkFile.getName()}" {`),this.printer.incIndent();for(let e of this.arkFile.getNamespaces()){let t=new o(e,!0);this.printer.write(t.dump())}for(let e of this.arkFile.getClasses()){let t=new a(e,!0);this.printer.write(t.dump())}return this.printer.decIndent(),this.printer.writeLine("}"),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.printer.writeLine(`digraph "${this.arkFile.getName()}" {`),this.printer.incIndent();for(let e of this.arkFile.getNamespaces()){let t=new o(e,!0);this.printer.write(t.dumpOriginal())}for(let e of this.arkFile.getClasses()){let t=new a(e,!0);this.printer.write(t.dumpOriginal())}return this.printer.decIndent(),this.printer.writeLine("}"),this.printer.toString()}}t.DotFilePrinter=s},527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Printer=void 0;const n=r(6039);t.Printer=class{constructor(e=""){this.printer=new n.ArkCodeBuffer(e)}}},7952:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrinterBuilder=void 0;const i=n(r(9896)),a=r(6928),o=r(6039),s=r(7194),c=r(3932);class l{constructor(e=""){this.outputDir=e}static dump(e,t){let r=new o.ArkStream(i.default.createWriteStream(t));r.write(e.dump()),r.close()}static dumpOriginal(e,t){let r=new o.ArkStream(i.default.createWriteStream(t));r.write(e.dumpOriginal()),r.close()}getOutputDir(e){return""===this.outputDir?(0,a.join)(e.getProjectDir(),"..","output"):(0,a.join)(this.outputDir)}dumpToDot(e,t=void 0){let r=t;void 0===t&&(r=(0,a.join)(this.getOutputDir(e),e.getName()+".dot")),i.default.mkdirSync((0,a.dirname)(r),{recursive:!0});let n=new s.DotFilePrinter(e);l.dump(n,r)}dumpToTs(e,t=void 0){let r=t;void 0===t&&(r=(0,a.join)(this.getOutputDir(e),e.getName())),i.default.mkdirSync((0,a.dirname)(r),{recursive:!0});let n=new c.SourceFilePrinter(e);l.dump(n,r)}}t.PrinterBuilder=l},4985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceBase=void 0;const n=r(2222),i=r(527);class a extends i.Printer{constructor(e,t=""){super(t),this.arkFile=e}getArkFile(){return this.arkFile}getMethod(e){return this.getArkFile().getScene().getMethod(e)}getClass(e){return this.getArkFile().getScene().getClass(e)}getPrinter(){return this.printer}transTemp2Code(e){return e.getName()}isInBuilderMethod(){return this.inBuilder}printDecorator(e){e.forEach((e=>{e instanceof n.Decorator&&this.printer.writeIndent().writeLine(`@${e.getContent()}`)}))}modifiersToString(e){let t=[];return e.forEach((e=>{e instanceof n.Decorator||t.push(this.resolveKeywordType(e))})),t.join(" ")}resolveKeywordType(e){let t=[];for(let r of e.split("|"))r=r.trim(),0!=r.length&&(r.endsWith("Keyword")&&(r=r.substring(0,r.length-7).toLowerCase()),t.push(r));return t.join("|")}resolveMethodName(e){return"_Constructor"===e?"constructor":e.startsWith("Get-")?e.replace("Get-","get "):e.startsWith("Set-")?e.replace("Set-","set "):e}}t.SourceBase=a},2604:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StmtReader=t.SourceBody=void 0;const i=r(4576),a=r(9029),o=n(r(7015)),s=r(6039),c=r(2082),l=r(5404),u=r(2029),d=o.default.getLogger();t.SourceBody=class{constructor(e,t,r){this.stmts=[],this.printer=new s.ArkCodeBuffer(e),this.method=t,this.arkBody=t.getBody(),this.cfgUtils=new l.CfgUitls(t.getCfg()),this.tempCodeMap=new Map,this.tempVisitor=new Set,this.definedLocals=new Set,this.inBuilder=r,this.buildSourceStmt()}isInBuilderMethod(){return this.inBuilder}isInDefaultMethod(){return this.method.isDefaultArkMethod()}getArkFile(){return this.method.getDeclaringArkFile()}getMethod(e){return this.method.getDeclaringArkFile().getScene().getMethod(e)}getClass(e){return u.ModelUtils.getClass(this.method,e)}getLocals(){return this.arkBody.getLocals()}defineLocal(e){this.definedLocals.add(e)}isLocalDefined(e){return this.definedLocals.has(e)}getStmtReader(){return this.stmtReader}setTempCode(e,t){this.tempCodeMap.set(e,t)}transTemp2Code(e){return this.tempCodeMap.has(e.getName())?(this.tempVisitor.add(e.getName()),this.tempCodeMap.get(e.getName())):e.getName()}hasTempVisit(e){return this.tempVisitor.has(e)}getPrinter(){return this.printer}dump(){return this.printStmts(),this.printer.toString()}buildSourceStmt(){let e=this.arkBody.getCfg().getBlocks(),t=new Set;for(const r of e)t.has(r)||(t.add(r),this.buildBasicBlock(r,t,null))}buildBasicBlock(e,t,r){let n=this.sortStmt(e.getStmts());for(this.stmtReader=new p(n);this.stmtReader.hasNext();){let n=this.stmtReader.next();if(n instanceof a.ArkIfStmt){let i=!1;if(this.cfgUtils.isForBlock(e)?(this.pushStmt(new c.SourceForStmt(this,n)),i=!0):this.cfgUtils.isWhileBlock(e)&&(this.pushStmt(new c.SourceWhileStmt(this,n)),i=!0),i){for(const n of this.cfgUtils.getLoopPath(e))t.has(n)||(t.add(n),this.buildBasicBlock(n,t,r));this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}else{this.pushStmt(new c.SourceIfStmt(this,n));let r=e.getSuccessors();r.length>0&&!t.has(r[0])&&(t.add(r[0]),this.buildBasicBlock(r[0],t,n)),r.length>1&&this.cfgUtils.isIfElseBlock(e)&&!t.has(r[1])&&(this.pushStmt(new c.SourceElseStmt(this,n)),t.add(r[1]),this.buildBasicBlock(r[1],t,n)),this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}}else if(n instanceof a.ArkSwitchStmt){this.pushStmt(new c.SourceSwitchStmt(this,n));let r=0;for(const i of e.getSuccessors()){if(!t.has(i)){t.add(i);let e=new c.SourceCaseStmt(this,n,r);this.pushStmt(e),this.buildBasicBlock(i,t,n),e.isDefault()&&this.pushStmt(new c.SourceCompoundEndStmt(this,n,""))}r++}this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}else n instanceof a.ArkGotoStmt?r instanceof a.ArkSwitchStmt?this.pushStmt(new c.SourceCompoundEndStmt(this,n," break;")):this.cfgUtils.isConinueBlock(e)?this.pushStmt(new c.SourceContinueStmt(this,n)):this.pushStmt(new c.SourceBreakStmt(this,n)):this.pushStmt((0,c.stmt2SourceStmt)(this,n))}}printStmts(){for(let e of this.stmts)this.printer.write(e.dump())}getStmts(){return this.stmts}pushStmt(e){let t=this.getLastLine();e.getLine()0?this.stmts[this.stmts.length-1].getLine():0}sortStmt(e){for(let n=e.length-1;n>0;n--)if(e[n]instanceof a.ArkInvokeStmt&&e[n].getInvokeExpr()){let i=e[n].getInvokeExpr();if("constructor"==i.getMethodSignature().getMethodSubSignature().getMethodName()){let e=t(n,i.getBase().getName());e>=0&&e=0;n--)if(e[n]instanceof a.ArkAssignStmt&&e[n].getLeftOp()instanceof i.Local&&e[n].getLeftOp().getName()==r)return n;return-1}function r(t,r){let n=e[r];for(let n=r;nnext No more stmt."),new Error("No more stmt.");let e=this.stmts[this.pos];return this.pos++,e}rollback(){if(0==this.pos)throw d.error("SourceBody: StmtReader->rollback No more stmt to rollback."),new Error("No more stmt to rollback.");this.pos--}}t.StmtReader=p},8070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceDefaultClass=t.SourceClass=void 0;const n=r(4985),i=r(1374),a=r(5825),o=r(3257),s=r(887);class c extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.cls=e,this.transformer=new o.SourceTransformer(this)}getLine(){return this.cls.getLine()}dump(){if(this.printer.clear(),"Object"==this.cls.getOriginType())return this.dumpObject();if("TypeLiteral"==this.cls.getOriginType())return this.dumpTypeLiteral();this.printDecorator(this.cls.getModifiers()),this.printer.writeIndent().writeSpace(this.modifiersToString(this.cls.getModifiers())).write(`${this.cls.getOriginType().toLowerCase()} `),s.SourceUtils.isAnonymousClass(this.cls.getName())||this.printer.write(this.cls.getName()),this.cls.getTypeParameter().length>0&&this.printer.write(`<${this.transformer.typeArrayToString(this.cls.getTypeParameter())}>`),this.cls.getSuperClassName()&&!this.cls.hasComponentDecorator()&&this.printer.write(` extends ${this.cls.getSuperClassName()}`),this.cls.getImplementedInterfaceNames().length>0&&this.printer.write(` implements ${this.cls.getImplementedInterfaceNames().join(", ")}`),this.printer.writeLine(" {"),this.printer.incIndent();let e=[];return e.push(...this.printFields()),e.push(...this.printMethods()),e.sort(((e,t)=>e.getLine()-t.getLine())),e.forEach((e=>{this.printer.write(e.dump())})),this.printer.decIndent(),this.printer.writeIndent().write("}"),s.SourceUtils.isAnonymousClass(this.cls.getName())||this.printer.writeLine(""),this.printer.toString()}dumpOriginal(){return this.cls.getCode()+"\n"}dumpObject(){return this.printer.write("{"),this.cls.getFields().forEach(((e,t,r)=>{this.printer.write(e.getName());let n=e.getInitializer();n&&this.printer.write(`: ${this.transformer.valueToString(n)}`),t!=r.length-1&&this.printer.write(", ")})),this.printer.write("}"),this.printer.toString()}dumpTypeLiteral(){return this.printer.write("{"),this.cls.getFields().forEach(((e,t,r)=>{this.printer.write(`${e.getName()}: ${this.transformer.typeToString(e.getType())}`),t!=r.length-1&&this.printer.write(", ")})),this.printer.write("}"),this.printer.toString()}printMethods(){let e=[];for(let t of this.cls.getMethods())s.SourceUtils.isConstructorMethod(t.getName())&&this.cls.hasViewTree()||(t.isDefaultArkMethod()?e.push(...new a.SourceMethod(t,this.printer.getIndent()).dumpDefaultMethod()):s.SourceUtils.isAnonymousMethod(t.getName())||e.push(new a.SourceMethod(t,this.printer.getIndent())));return e}printFields(){let e=[];for(let t of this.cls.getFields())"GetAccessor"!=t.getFieldType()&&e.push(new i.SourceField(t,this.printer.getIndent()));return e}}t.SourceClass=c;t.SourceDefaultClass=class extends c{constructor(e,t=""){super(e,t)}getLine(){return this.cls.getLine()}dump(){return this.printMethods(),this.printer.toString()}dumpOriginal(){for(let e of this.cls.getMethods())if(e.isDefaultArkMethod())for(let t of e.getBody().getOriginalCfg().getStmts()){let e=t.toString();e.startsWith("import")||"return;"===e||this.printer.writeLine(e)}else this.printer.writeLine(e.getCode());return this.printer.toString()}}},1374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceField=void 0;const n=r(4985),i=r(3257);class a extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringClass().getDeclaringArkFile(),t),this.field=e,this.transformer=new i.SourceTransformer(this)}getLine(){return this.field.getOriginPosition().getLineNo()}dump(){this.printer.clear(),this.printDecorator(this.field.getModifiers()),this.printer.writeIndent(),"EnumMember"!==this.field.getFieldType()&&this.printer.writeSpace(this.modifiersToString(this.field.getModifiers())),this.printer.write(this.field.getName()),this.field.getQuestionToken()&&this.printer.write("?"),this.field.getExclamationToken()&&this.printer.write("!"),this.field.getType()&&"EnumMember"!==this.field.getFieldType()&&this.printer.write(`: ${this.transformer.typeToString(this.field.getType())}`);let e=this.field.getInitializer();return e&&this.printer.write(` = ${this.transformer.valueToString(e)}`),"EnumMember"==this.field.getFieldType()?this.printer.writeLine(","):this.printer.writeLine(";"),this.printer.toString()}dumpOriginal(){return this.field.getCode()+"\n"}}t.SourceField=a},3932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceFilePrinter=void 0;const n=r(527),i=r(8070),a=r(5825),o=r(9524),s=r(4865),c=r(887);class l extends n.Printer{constructor(e){super(),this.items=[],this.arkFile=e}dump(){this.printer.clear();for(let e of this.arkFile.getImportInfos())this.items.push(new o.SourceImportInfo(e));for(let e of this.arkFile.getNamespaces())this.items.push(new s.SourceNamespace(e));for(let e of this.arkFile.getClasses())if(e.isDefaultArkClass())for(let t of e.getMethods())t.isDefaultArkMethod()?this.items.push(...new a.SourceMethod(t,this.printer.getIndent()).dumpDefaultMethod()):c.SourceUtils.isAnonymousMethod(t.getName())||this.items.push(new a.SourceMethod(t));else c.SourceUtils.isAnonymousClass(e.getName())||this.items.push(new i.SourceClass(e));for(let e of this.arkFile.getExportInfos())this.items.push(new o.SourceExportInfo(e));return this.items.sort(((e,t)=>e.getLine()-t.getLine())),this.items.forEach((e=>{this.printer.write(e.dump())})),this.printer.toString()}dumpOriginal(){return this.arkFile.getCode()}}t.SourceFilePrinter=l},5825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMethod=void 0;const n=r(9803),i=r(6039),a=r(4985),o=r(2604),s=r(3257),c=r(887);class l extends a.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.method=e,this.transformer=new s.SourceTransformer(this),this.inBuilder=this.initInBuilder()}setInBuilder(e){this.inBuilder=e}dump(){return this.printer.clear(),this.method.isDefaultArkMethod()?this.printBody(this.method):this.printMethod(this.method),this.printer.toString()}dumpOriginal(){return this.method.getCode()+"\n"}getLine(){let e=this.method.getLine();if(e>0)return e;for(const e of this.method.getCfg().getStmts().reverse())if(e.getOriginPositionInfo().getLineNo()>0)return e.getOriginPositionInfo().getLineNo();return e}dumpDefaultMethod(){return new o.SourceBody(this.printer.getIndent(),this.method,!1).getStmts()}printMethod(e){this.printDecorator(e.getModifiers()),this.printer.writeIndent().write(this.methodProtoToString(e)),e.containsModifier("AbstractKeyword")||"interface"==e.getDeclaringArkClass().getOriginType().toLowerCase()?this.printer.writeLine(";"):(this.printer.writeLine(" {"),this.printer.incIndent(),this.printBody(e),this.printer.decIndent(),this.printer.writeIndent(),c.SourceUtils.isAnonymousMethod(e.getName())?this.printer.write("}"):this.printer.writeLine("}"))}printBody(e){let t=new o.SourceBody(this.printer.getIndent(),e,this.inBuilder);this.printer.write(t.dump())}methodProtoToString(e){var t;let r=new i.ArkCodeBuffer;if(r.writeSpace(this.modifiersToString(e.getModifiers())),c.SourceUtils.isAnonymousMethod(e.getName())||((null===(t=e.getDeclaringArkClass())||void 0===t?void 0:t.isDefaultArkClass())&&r.writeSpace("function"),r.write(this.resolveMethodName(e.getName()))),e.getTypeParameter().length>0){let t=[];e.getTypeParameter().forEach((e=>{t.push(this.transformer.typeToString(e))})),r.write(`<${this.transformer.typeArrayToString(e.getTypeParameter())}>`)}let a=[];e.getParameters().forEach((e=>{let t=e.getName();e.isOptional()&&(t+="?"),e.getType()&&(t+=": "+this.transformer.typeToString(e.getType())),a.push(t)})),r.write(`(${a.join(", ")})`);const o=e.getReturnType();return o instanceof n.UnknownType||r.write(`: ${this.transformer.typeToString(o)}`),c.SourceUtils.isAnonymousMethod(e.getName())&&r.write(" =>"),r.toString()}toArrowFunctionTypeString(){let e=new i.ArkCodeBuffer,t=[];this.method.getParameters().forEach((e=>{let r=e.getName();e.isOptional()&&(r+="?"),e.getType()&&(r+=": "+this.transformer.typeToString(e.getType())),t.push(r)})),e.write(`(${t.join(", ")}) => `);const r=this.method.getReturnType();return r instanceof n.UnknownType||e.writeSpace(`${this.transformer.typeToString(r)}`),e.toString()}initInBuilder(){return this.method.hasBuilderDecorator()||"build"==this.method.getName()&&!this.method.containsModifier("StaticKeyword")&&this.method.getDeclaringArkClass().hasViewTree()}}t.SourceMethod=l},9524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceImportInfo=t.SourceExportInfo=void 0;const n=r(7733),i=r(4985);class a extends i.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.info=e}getLine(){return this.info.getOriginTsPosition().getLineNo()}dump(){return this.printer.clear(),this.info.getExportClauseType()!==n.ExportType.UNKNOWN||("*"===this.info.getExportClauseName()?this.info.getNameBeforeAs()&&"*"!=this.info.getNameBeforeAs()?this.printer.writeIndent().write(`export ${this.info.getNameBeforeAs()} as ${this.info.getExportClauseName()}`):this.printer.writeIndent().write(`export ${this.info.getExportClauseName()}`):this.info.getNameBeforeAs()?this.printer.write(`export {${this.info.getNameBeforeAs()} as ${this.info.getExportClauseName()}}`):this.printer.write(`export {${this.info.getExportClauseName()}}`),this.info.getExportFrom()&&this.printer.write(` from '${this.info.getExportFrom()}'`),this.printer.writeLine(";")),this.printer.toString()}dumpOriginal(){return this.info.getTsSourceCode()}}t.SourceExportInfo=a;class o extends i.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.info=e}getLine(){return this.info.getOriginTsPosition().getLineNo()}dump(){return"Identifier"===this.info.getImportType()?this.printer.writeIndent().writeLine(`import ${this.info.getImportClauseName()} from '${this.info.getImportFrom()}';`):"NamedImports"===this.info.getImportType()?this.info.getNameBeforeAs()?this.printer.writeIndent().writeLine(`import {${this.info.getNameBeforeAs()} as ${this.info.getImportClauseName()}} from '${this.info.getImportFrom()}';`):this.printer.writeIndent().writeLine(`import {${this.info.getImportClauseName()}} from '${this.info.getImportFrom()}';`):"NamespaceImport"===this.info.getImportType()?this.printer.writeIndent().writeLine(`import * as ${this.info.getImportClauseName()} from '${this.info.getImportFrom()}';`):"EqualsImport"==this.info.getImportType()?this.printer.writeIndent().writeLine(`import ${this.info.getImportClauseName()} = require('${this.info.getImportFrom()}');`):this.printer.writeIndent().writeLine(`import '${this.info.getImportFrom()}';`),this.printer.toString()}dumpOriginal(){return this.info.getTsSourceCode()}}t.SourceImportInfo=o},4865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceNamespace=void 0;const n=r(4985),i=r(8070),a=r(5825),o=r(9524),s=r(887);class c extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.ns=e}getLine(){return this.ns.getLine()}dump(){this.printer.writeIndent().writeSpace(this.modifiersToString(this.ns.getModifiers())).writeLine(`namespace ${this.ns.getName()} {`),this.printer.incIndent();let e=[];for(let t of this.ns.getClasses())if(!s.SourceUtils.isAnonymousClass(t.getName()))if(t.isDefaultArkClass())for(let r of t.getMethods())r.isDefaultArkMethod()?e.push(...new a.SourceMethod(r,this.printer.getIndent()).dumpDefaultMethod()):s.SourceUtils.isAnonymousMethod(r.getName())||e.push(new a.SourceMethod(r,this.printer.getIndent()));else e.push(new i.SourceClass(t,this.printer.getIndent()));for(let t of this.ns.getNamespaces())e.push(new c(t,this.printer.getIndent()));for(let t of this.ns.getExportInfos())e.push(new o.SourceExportInfo(t,this.printer.getIndent()));return e.sort(((e,t)=>e.getLine()-t.getLine())),e.forEach((e=>{this.printer.write(e.dump())})),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}dumpOriginal(){return this.ns.getCode()}}t.SourceNamespace=c},2082:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stmt2SourceStmt=t.SourceNewArrayExpr=t.SourceCommonStmt=t.SourceCompoundEndStmt=t.SourceCaseStmt=t.SourceSwitchStmt=t.SourceReturnVoidStmt=t.SourceReturnStmt=t.SourceBreakStmt=t.SourceContinueStmt=t.SourceElseStmt=t.SourceForStmt=t.SourceWhileStmt=t.SourceIfStmt=t.SourceInvokeStmt=t.SourceAssignStmt=t.SourceStmt=void 0;const i=r(3755),a=r(3532),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=n(r(7015)),d=r(3257),p=r(887),_=u.default.getLogger();class f{constructor(e,t){this.original=t,this.context=e,this.line=t.getOriginPositionInfo().getLineNo(),this.transformer=new d.SourceTransformer(e),this.transfer2ts()}getLine(){return this.line}setLine(e){this.line=e}dump(){return this.text.length>0?`${this.printer.getIndent()}${this.text}\n`:""}get printer(){return this.context.getPrinter()}toString(){return this.text}setText(e){this.text=e}getIntent(){return this.context.getPrinter().getIndent()}isLocalTempValue(e){return e instanceof o.Local&&p.SourceUtils.isTemp(e.getName())}}var g;t.SourceStmt=f,function(e){e[e.NORMAL=0]="NORMAL",e[e.TEMP_REPLACE=1]="TEMP_REPLACE",e[e.COMPONENT_CREATE=2]="COMPONENT_CREATE"}(g||(g={}));class m extends f{constructor(e,t){super(e,t)}transfer2ts(){if(this.leftOp=this.original.getLeftOp(),this.rightOp=this.original.getRightOp(),_.debug("SourceAssignStmt->transfer2ts",this.leftOp,this.rightOp),this.leftOp instanceof o.Local&&"this"==this.leftOp.getName()||this.rightOp instanceof i.Constant&&"undefined"==this.rightOp.getValue()||this.rightOp instanceof s.ArkParameterRef)return this.setText(""),void(this.dumpType=g.NORMAL);this.leftCode=this.transformer.valueToString(this.leftOp),this.leftOp instanceof o.Local&&this.rightOp instanceof a.ArkNewExpr?this.transferRightNewExpr():this.leftOp instanceof o.Local&&this.rightOp instanceof a.ArkNewArrayExpr?this.transferRightNewArrayExpr():this.rightOp instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentCreate(this.rightOp)?this.transferRightComponentCreate():this.rightOp instanceof a.ArkInstanceInvokeExpr&&p.SourceUtils.isComponentAttributeInvoke(this.rightOp)?this.transferRightComponentAttribute():this.rightCode=this.transformer.valueToString(this.rightOp),this.isLocalTempValue(this.leftOp)&&this.context.setTempCode(this.leftOp.getName(),this.rightCode),null==this.dumpType&&(this.setText(`${this.leftCode} = ${this.rightCode}`),this.dumpType=g.TEMP_REPLACE)}dump(){switch(this.dumpType){case g.NORMAL:return super.dump();case g.COMPONENT_CREATE:let e=super.dump();return this.printer.incIndent(),e}return this.context.hasTempVisit(this.leftCode)?this.setText(""):p.SourceUtils.isTemp(this.leftCode)?this.setText(`${this.rightCode};`):this.leftOp instanceof o.Local&&this.context.getLocals().has(this.leftOp.getName())&&!this.isLocalTempValue(this.leftOp)?this.context.isLocalDefined(this.leftOp)?this.setText(`${this.leftCode} = ${this.rightCode};`):(this.context.getArkFile().getExportInfoBy(this.leftCode)&&this.context.isInDefaultMethod()?this.setText(`export let ${this.leftCode} = ${this.rightCode};`):this.setText(`let ${this.leftCode} = ${this.rightCode};`),this.context.defineLocal(this.leftOp)):this.setText(`${this.leftCode} = ${this.rightCode};`),super.dump()}isComponentClassType(e){if(!(e instanceof l.ClassType))return!1;let t=e.getClassSignature(),r=this.context.getClass(t);return!!r&&r.hasComponentDecorator()}transferRightNewExpr(){if(this.context.getStmtReader().hasNext()){let e=this.context.getStmtReader().next(),t=!0;if(e instanceof c.ArkInvokeStmt&&e.getInvokeExpr()){let t=e.getInvokeExpr();if("constructor"==t.getMethodSignature().getMethodSubSignature().getMethodName()&&t.getBase().getName()==this.leftOp.getName()){let e=[];return t.getArgs().forEach((t=>{e.push(this.transformer.valueToString(t))})),void(this.isComponentClassType(this.rightOp.getType())?this.rightCode=`${this.transformer.typeToString(this.rightOp.getType())}(${e.join(",")})`:this.rightCode=`new ${this.transformer.typeToString(this.rightOp.getType())}(${e.join(",")})`)}}t&&this.context.getStmtReader().rollback()}this.isComponentClassType(this.rightOp.getType())?this.rightCode=`${this.transformer.typeToString(this.rightOp.getType())}()`:this.rightCode=`new ${this.transformer.typeToString(this.rightOp.getType())}()`}transferRightNewArrayExpr(){let e=new D(this.rightOp),t=this.leftOp.getName();for(;this.context.getStmtReader().hasNext();){let r=this.context.getStmtReader().next();if(!(r instanceof c.ArkAssignStmt)){this.context.getStmtReader().rollback();break}{let n=r.getLeftOp();if(!(n instanceof s.ArkArrayRef&&n.getBase().getName()==t)){this.context.getStmtReader().rollback();break}e.addInitValue(this.transformer.valueToString(r.getRightOp()))}}this.rightCode=e.toString()}transferRightComponentCreate(){if(this.rightCode=this.transformer.valueToString(this.rightOp),this.context.getStmtReader().hasNext()){let e=this.context.getStmtReader().next();if(e instanceof c.ArkInvokeStmt){let t=e.getInvokeExpr();if(t instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentPop(t))return this.setText(`${this.rightCode}`),void(this.dumpType=g.NORMAL)}this.context.getStmtReader().rollback()}this.setText(`${this.rightCode} {`),this.dumpType=g.COMPONENT_CREATE}transferRightComponentAttribute(){this.rightCode=this.transformer.valueToString(this.rightOp),this.setText(`${this.rightCode}`),this.dumpType=g.NORMAL}}t.SourceAssignStmt=m;class h extends f{constructor(e,t){super(e,t)}transfer2ts(){let e=this.original.getInvokeExpr();e instanceof a.ArkStaticInvokeExpr?this.setText(`${this.transformer.staticInvokeExprToString(e)}`):e instanceof a.ArkInstanceInvokeExpr&&this.setText(`${this.transformer.instanceInvokeExprToString(e)}`)}dump(){let e=this.original.getInvokeExpr();if(e instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentPop(e))return this.printer.decIndent(),`${this.printer.getIndent()}}\n`;if(e instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentIfElseInvoke(e)){this.printer.decIndent();let e=`${this.printer.getIndent()}${this.text}\n`;return this.printer.incIndent(),e}return this.text.length>0?e instanceof a.ArkInstanceInvokeExpr&&p.SourceUtils.isComponentAttributeInvoke(e)?`${this.printer.getIndent()}${this.text}\n`:`${this.printer.getIndent()}${this.text};\n`:""}}t.SourceInvokeStmt=h;t.SourceIfStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){let e,t=this.original.getConditionExprExpr();e=`if (${this.transformer.valueToString(t.getOp1())}`,e+=` ${p.SourceUtils.flipOperator(t.getOperator())} `,e+=`${this.transformer.valueToString(t.getOp2())}) {`,this.setText(e)}dump(){let e=super.dump();return this.printer.incIndent(),e}};class y extends f{constructor(e,t){super(e,t)}dump(){let e=super.dump();return this.printer.incIndent(),e}transfer2ts(){let e,t=this.original.getConditionExprExpr();e=`while (${this.transformer.valueToString(t.getOp1())}`,e+=` ${this.transferOperator()} `,e+=`${this.transformer.valueToString(t.getOp2())}) {`,this.setText(e)}transferOperator(){let e=this.original.getConditionExprExpr().getOperator().trim();return p.SourceUtils.flipOperator(e)}}t.SourceWhileStmt=y;t.SourceForStmt=class extends y{constructor(e,t){super(e,t)}forOf2ts(){let e=this.original.getConditionExprExpr(),t=e.getOp1(),r=e.getOp2(),n=this.context.getStmtReader().first();if(!(n instanceof c.ArkAssignStmt))return!1;if(!this.isLocalTempValue(t)||!this.isLocalTempValue(r))return!1;let i=this.transformer.valueToString(t),a=this.transformer.valueToString(r);if(!i||!a)return!1;if("0"!=i||!a.endsWith(".length"))return!1;for(;this.context.getStmtReader().hasNext();)this.context.getStmtReader().next();let o=n.getLeftOp();return this.setText(`for (let ${o.getName()} of ${a.replace(".length","")}) {`),!0}transfer2ts(){if(this.forOf2ts())return;let e,t=this.original.getConditionExprExpr();for(e=`for (; ${this.transformer.valueToString(t.getOp1())}`,e+=` ${this.transferOperator()} `,e+=`${this.transformer.valueToString(t.getOp2())}; `;this.context.getStmtReader().hasNext();)e+=S(this.context,this.context.getStmtReader().next()).toString(),this.context.getStmtReader().hasNext()&&(e+=", ");e+=") {",this.setText(e),_.debug("SourceForStmt->transfer2ts:",t)}};t.SourceElseStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("} else {")}dump(){this.printer.decIndent();let e=super.dump();return this.printer.incIndent(),e}};t.SourceContinueStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("continue;")}};t.SourceBreakStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("break;")}};class v extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText(`return ${this.transformer.valueToString(this.original.getOp())};`)}}t.SourceReturnStmt=v;class b extends f{constructor(e,t){super(e,t)}transfer2ts(){this.original.getOriginPositionInfo().getLineNo()<=0?this.setText(""):this.setText("return;")}}t.SourceReturnVoidStmt=b;t.SourceSwitchStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText(`switch (${this.transformer.valueToString(this.original.getKey())}) {`)}dump(){let e=super.dump();return this.printer.incIndent(),e}};t.SourceCaseStmt=class extends f{constructor(e,t,r){super(e,t),this.caseIndex=r,this.transfer2ts()}isDefault(){let e=this.original.getCases();return this.caseIndex>=e.length}transfer2ts(){let e=this.original.getCases();if(this.caseIndextransfer2ts:",this.original.toString())}}t.SourceCommonStmt=x;class D{constructor(e){this.expr=e,this.values=[]}addInitValue(e){this.values.push(e)}toString(){return`[${this.values.join(", ")}]`}}function S(e,t){return t instanceof c.ArkAssignStmt?new m(e,t):t instanceof c.ArkInvokeStmt?new h(e,t):t instanceof c.ArkReturnVoidStmt?new b(e,t):t instanceof c.ArkReturnStmt?new v(e,t):new x(e,t)}t.SourceNewArrayExpr=D,t.stmt2SourceStmt=S},3257:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceTransformer=void 0;const i=r(3755),a=r(3532),o=r(4576),s=n(r(7015)),c=r(887),l=r(5825),u=r(9803),d=r(8070),p=r(3938),_=r(2454);s.default.getLogger();class f{constructor(e){this.context=e}anonymousMethodToString(e){let t=new l.SourceMethod(e,this.context.getPrinter().getIndent());return t.setInBuilder(this.context.isInBuilderMethod()),t.dump().substring(this.context.getPrinter().getIndent().length)}anonymousClassToString(e){return new d.SourceClass(e).dump()}instanceInvokeExprToString(e){let t=e.getMethodSignature().getMethodSubSignature().getMethodName(),r=[];return e.getArgs().forEach((e=>{r.push(this.valueToString(e))})),c.SourceUtils.isComponentAttributeInvoke(e)&&this.context.isInBuilderMethod()?`.${t}(${r.join(", ")})`:`${this.valueToString(e.getBase())}.${t}(${r.join(", ")})`}staticInvokeExprToString(e){let t=e.getMethodSignature(),r=this.context.getMethod(t);if(r&&c.SourceUtils.isAnonymousMethod(r.getName()))return this.anonymousMethodToString(r);let n=e.getMethodSignature().getDeclaringClassSignature().getClassName(),i=e.getMethodSignature().getMethodSubSignature().getMethodName(),a=[];if(e.getArgs().forEach((e=>{a.push(this.valueToString(e))})),this.context.isInBuilderMethod()){if(n==_.COMPONENT_CUSTOMVIEW){if(i==_.COMPONENT_CREATE_FUNCTION)return a.length>1&&(a[1]=a[1].substring(6)),`${a.join(" ")}`;if(i==_.COMPONENT_POP_FUNCTION)return""}if(c.SourceUtils.isComponentCreate(e))return n==_.COMPONENT_IF?`if (${a.join(", ")})`:`${n}(${a.join(", ")})`;if(c.SourceUtils.isComponentIfBranchInvoke(e)){return"0"==e.getArg(0).getValue()?"":"} else {"}if(c.SourceUtils.isComponentPop(e))return"}"}return n&&n.length>0&&!c.SourceUtils.isDefaultClass(n)?`${n}.${i}(${a.join(", ")})`:`${i}(${a.join(", ")})`}typeArrayToString(e,t=", "){let r=[];return e.forEach((e=>{r.push(this.typeToString(e))})),r.join(t)}static constToString(e){return"string"==e.getType()?e.getValue().startsWith("'")||e.getValue().startsWith('"')?`${e.getValue()}`:`'${e.getValue()}'`:e.getValue()}exprToString(e){if(e instanceof a.ArkInstanceInvokeExpr)return`${this.instanceInvokeExprToString(e)}`;if(e instanceof a.ArkStaticInvokeExpr)return`${this.staticInvokeExprToString(e)}`;if(e instanceof a.ArkNewArrayExpr)return`new Array<${this.typeToString(e.getBaseType())}>(${e.getSize()})`;if(e instanceof a.ArkNewExpr)return`new ${this.typeToString(e.getType())}()`;if(e instanceof a.ArkDeleteExpr)return`delete ${this.valueToString(e.getField())}`;if(e instanceof a.ArkBinopExpr){let t=e.getOp1(),r=e.getOp2(),n=e.getOperator();return`${this.valueToString(t)} ${n} ${this.valueToString(r)}`}if(e instanceof a.ArkTypeOfExpr)return`typeof(${this.valueToString(e.getOp())})`;if(e instanceof a.ArkInstanceOfExpr)return`${this.valueToString(e.getOp())} instanceof ${this.typeToString(e.getType())}`;if(e instanceof a.ArkLengthExpr)return`${this.valueToString(e.getOp())}.length`;if(e instanceof a.ArkCastExpr){let t=e.getOp();return`${this.valueToString(t)} as ${this.typeToString(e.getType())}`}if(e instanceof a.ArkUnopExpr)return`${e.getOperator()}${this.valueToString(e.getOp())}`;if(e instanceof a.ArrayLiteralExpr){let t=[];return e.getElements().forEach((e=>{t.push(this.valueToString(e))})),`[${t.join(", ")}]`}return e instanceof a.ObjectLiteralExpr?this.anonymousClassToString(e.getAnonymousClass()):`${e}`}refToString(e){return e instanceof p.ArkInstanceFieldRef?`${this.valueToString(e.getBase())}.${e.getFieldName()}`:e instanceof p.ArkStaticFieldRef?`${e.getFieldSignature().getBaseName()}.${e.getFieldName()}`:e instanceof p.ArkArrayRef?`${this.valueToString(e.getBase())}[${this.valueToString(e.getIndex())}]`:e instanceof p.ArkThisRef?"this":`${e}`}valueToString(e){if(e instanceof a.AbstractExpr)return this.exprToString(e);if(e instanceof p.AbstractRef)return this.refToString(e);if(e instanceof i.Constant)return f.constToString(e);if(e instanceof o.Local){if(c.SourceUtils.isAnonymousMethod(e.getName())){let t=e.getType().getMethodSignature(),r=this.context.getMethod(t);if(r)return this.anonymousMethodToString(r)}if(c.SourceUtils.isAnonymousClass(e.getName())){let t=e.getType().getClassSignature(),r=this.context.getClass(t);if(r)return this.anonymousClassToString(r)}return this.context.transTemp2Code(e)}return`${e}`}typeToString(e){if(e instanceof u.LiteralType){let t=e.getliteralName();return t.substring(0,t.length-7).toLowerCase()}if(e instanceof u.PrimitiveType)return e.getName();if(e instanceof u.TypeLiteralType){let t=[];for(const r of e.getMembers())t.push(r.getName()+":"+r.getType());return`{${t.join(",")}}`}if(e instanceof Array){let t=[];for(const r of e)t.push(this.typeToString(r));return t.join(" | ")}if(e instanceof u.UnknownType)return"any";if(e instanceof u.ClassType){let t=e.getClassSignature().getClassName();if(c.SourceUtils.isDefaultClass(t))return"any";if(c.SourceUtils.isAnonymousClass(t)){let t=this.context.getClass(e.getClassSignature());return t?this.anonymousClassToString(t):"any"}return t}if(e instanceof u.ArrayType){let t=e.getBaseType();if(t instanceof u.UnknownType){const t=[];t.push("(any)");for(let r=0;r=";break;case"<=":t=">";break;case">":t="<=";break;case">=":t="<";break;case"==":t="!=";break;case"===":t="!==";break;case"!=":t="==";break;case"!==":t="==="}return t}static isComponentPop(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName();return!(e.getMethodSignature().getMethodSubSignature().getMethodName()!=s.COMPONENT_POP_FUNCTION||!(0,s.isEtsSystemComponent)(t)&&!s.SPECIAL_CONTAINER_COMPONENT.has(t))}static isComponentCreate(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName();return!(e.getMethodSignature().getMethodSubSignature().getMethodName()!=s.COMPONENT_CREATE_FUNCTION||!(0,s.isEtsSystemComponent)(t)&&!s.SPECIAL_CONTAINER_COMPONENT.has(t))}static isComponentAttributeInvoke(e,t=new Set){if(t.has(e))return!1;t.add(e);let r=e.getBase();if(!(r instanceof a.Local))return c.error(`SourceUtils->isComponentAttributeInvoke illegal invoke expr ${e}`),!1;let n=r.getDeclaringStmt();if(!(n&&n instanceof o.ArkAssignStmt))return!1;let s=n.getRightOp();return s instanceof i.ArkInstanceInvokeExpr?l.isComponentAttributeInvoke(s,t):s instanceof i.ArkStaticInvokeExpr&&l.isComponentCreate(s)}static isComponentIfBranchInvoke(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName(),r=e.getMethodSignature().getMethodSubSignature().getMethodName();return t==s.COMPONENT_IF&&r==s.COMPONENT_BRANCH_FUNCTION}static isComponentIfElseInvoke(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName(),r=e.getMethodSignature().getMethodSubSignature().getMethodName();if(t==s.COMPONENT_IF&&r==s.COMPONENT_BRANCH_FUNCTION){if("1"==e.getArg(0).getValue())return!0}return!1}}t.SourceUtils=l},5404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CfgUitls=void 0;const n=r(3755),i=r(4576),a=r(3938),o=r(9029);var s;!function(e){e[e.NORMAL=0]="NORMAL",e[e.WHILE=1]="WHILE",e[e.FOR=2]="FOR",e[e.CONTINUE=3]="CONTINUE",e[e.BREAK=4]="BREAK",e[e.IF=5]="IF",e[e.IF_ELSE=6]="IF_ELSE"}(s||(s={}));class c{constructor(e){this.blockSize=e.getBlocks().size,this.identifyBlocks(e)}static backtraceLocalInitValue(e){let t=e.getDeclaringStmt();if(t instanceof o.ArkAssignStmt){let e=t.getRightOp();return e instanceof i.Local?c.backtraceLocalInitValue(e):e}return e}static getStmtBindValues(e){let t=new Set;for(const r of e.getUses())if(r instanceof i.Local){c.getLocalBindValues(r).forEach((e=>{t.add(e)}))}return t}static getLocalBindValues(e){let t=new Set;t.add(e);const r=e.getDeclaringStmt();if(!r)return t;for(const e of r.getUses())e instanceof n.Constant||e instanceof a.ArkInstanceFieldRef?t.add(e):e instanceof i.Local&&c.getLocalBindValues(e).forEach((e=>{t.add(e)}));return t}getLoopPath(e){return this.loopPath.get(e)}isIfBlock(e){return this.blockTypes.get(e)==s.IF}isIfElseBlock(e){return this.blockTypes.get(e)==s.IF_ELSE}isWhileBlock(e){return this.blockTypes.get(e)==s.WHILE}isForBlock(e){return this.blockTypes.get(e)==s.FOR}isConinueBlock(e){return this.blockTypes.get(e)==s.CONTINUE}isBreakBlock(e){return this.blockTypes.get(e)==s.BREAK}isNormalBlock(e){return this.blockTypes.get(e)==s.NORMAL}identifyBlocks(e){let t=e.getBlocks(),r=new Set;this.blockTypes=new Map,this.loopPath=new Map;for(const e of t)if(!r.has(e))if(r.add(e),this.isIfStmtBB(e)&&this.isLoopBB(e,r)){let t=e.getStmts();t[t.length-1]instanceof o.ArkIfStmt?this.blockTypes.set(e,s.WHILE):this.blockTypes.set(e,s.FOR)}else this.isIfStmtBB(e)?this.isIfElseBB(e)?this.blockTypes.set(e,s.IF_ELSE):this.blockTypes.set(e,s.IF):this.isGotoStmtBB(e)?this.isContinueBB(e,this.blockTypes)?this.blockTypes.set(e,s.CONTINUE):this.blockTypes.set(e,s.BREAK):this.blockTypes.set(e,s.NORMAL)}isIfStmtBB(e){for(let t of e.getStmts())if(t instanceof o.ArkIfStmt)return!0;return!1}isLoopBB(e,t){let r=new Set,n=!1;if(t.delete(e),0==e.getSuccessors().length)return n;let i=e.getSuccessors()[0];return r.add(i),function i(a){if(a===e)return void(n=!0);for(const n of a.getSuccessors())t.has(n)||r.has(n)||n==e.getSuccessors()[1]||(r.add(n),i(n))}(i),t.add(e),n&&this.loopPath.set(e,r),n}isGotoStmtBB(e){for(let t of e.getStmts())if(t instanceof o.ArkGotoStmt)return!0;return!1}isContinueBB(e,t){let r=t.get(e.getSuccessors()[0]),n=!1;if(r!=s.FOR&&r!=s.WHILE||(n=!0),!n)return!1;let i=e,a=this.blockSize;for(let[t,r]of this.loopPath)r.has(e)&&r.size{const n=a.default.resolve(e,r.name);r.isDirectory()&&!s.FILE_FILTER.ignores.includes(r.name)?s.getFilesRecursively(n,t):a.default.basename(n).match(s.FILE_FILTER.include)&&t.push(n)}))}static getIndexFileName(e){for(const t of i.default.readdirSync(e,{withFileTypes:!0}))if(t.isFile()&&/^index/i.test(t.name))return t.name;return""}static isDirectory(e){try{return i.default.statSync(e).isDirectory()}catch(e){}return!1}}t.FileUtils=s,s.FILE_FILTER={ignores:[".git",".preview",".hvigor",".idea","test","ohosTest"],include:/(?{if(n.name===r)return a.default.resolve(t,n.name);e(a.default.resolve(t,"../"),r)})),""):(o.warn(`Input directory ${t} is not exist`),"")}},978:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractLastBracketContent=t.printCallGraphDetails=t.splitStringWithRegex=t.isItemRegistered=t.SceneManager=t.MethodSignatureManager=void 0;const i=n(r(7015)),a=r(2029),o=i.default.getLogger();t.MethodSignatureManager=class{constructor(){this._workList=[],this._processedList=[]}get workList(){return this._workList}set workList(e){this._workList=e}get processedList(){return this._processedList}set processedList(e){this._processedList=e}findInWorkList(e){return this.workList.find((t=>t===e))}findInProcessedList(e){return void 0!==this.processedList.find((t=>t.toString()===e.toString()))}addToWorkList(e){s(e,this.workList,((e,t)=>e.toString()===t.toString()))||this.workList.push(e)}addToProcessedList(e){s(e,this.processedList,((e,t)=>e===t))||this.processedList.push(e)}removeFromWorkList(e){this.workList=this.workList.filter((t=>t!==e))}removeFromProcessedList(e){this.processedList=this.processedList.filter((t=>t.toString()!==e.toString()))}};function s(e,t,r){for(let n of t)if(r(n,e))return!0;return!1}t.SceneManager=class{get scene(){return this._scene}set scene(e){this._scene=e}getMethod(e){let t=this._scene.getMethod(e);if(null==t){let t=this.scene.getSdkArkFilesMap();for(let r of t.values())if(r.getFileSignature().toString()==e.getDeclaringClassSignature().getDeclaringFileSignature().toString()){const t=a.ModelUtils.getAllMethodsInFile(r);for(let r of t)if(e.toString()==r.getSignature().toString())return r}}return t}getClass(e){if(void 0===e.getClassName())return null;let t=this._scene.getClass(e);if(null==t){let t=this._scene.getSdkArkFilesMap().get(e.getDeclaringFileSignature().toString());if(null!=t)for(let r of a.ModelUtils.getAllClassesInFile(t))if(r.getSignature().toString()===e.toString())return r}return t}getExtendedClasses(e){let t=[this.getClass(e)],r=[];for(;t.length>0;){let e=t.shift();if(null==e)continue;let n=Array.from(e.getExtendedClasses().values());if(n)for(let e of n)s(e,r,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||t.push(e);s(e,r,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||r.push(e)}return r}},t.isItemRegistered=s,t.splitStringWithRegex=function(e){const t=e.match(/^(\w+)\.(\w+)\.(\w+)\(\)$/);return t?t.slice(1):[]},t.printCallGraphDetails=function(e,t,r){o.info("Call Graph:\n"),o.info("\tMethods:"),e.forEach((e=>{o.info(`\t\t${e}`)})),o.info("\tCalls:"),Array.from(t.keys()).reduce(((e,t)=>Math.max(e,t.toString().length)),0),t.forEach(((e,t)=>{const r=`<${t}`;o.info(`\t\t${r.padEnd(4)} ->`);for(let t=0;t]*)\(\)>$/);return t&&t[1]?t[1].trim():""}},8089:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAllFiles=void 0;const i=n(r(9896)),a=n(r(6928)),o=n(r(7015)).default.getLogger();t.getAllFiles=function e(t,r,n=[]){if(!i.default.existsSync(t))return o.error("Input directory is not exist, please check!"),n;const s=i.default.realpathSync(t);return i.default.readdirSync(s).forEach((t=>{if("oh_modules"==t||"node_modules"==t||"hviforfile.ts"==t)return;const o=a.default.resolve(s,t);i.default.statSync(o).isDirectory()?e(o,r,n):r.includes(a.default.extname(t))&&n.push(o)})),n}},2293:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseJsonText=t.fetchDependenciesFromFile=void 0;const s=a(r(3221)),c=a(r(9896)),l=o(r(7015)).default.getLogger();function u(e){const t=s.parseJsonText("",e),r=function(e){if(!e.statements||!e.statements.length)return void l.error("The JSON5 file format is incorrect, the root node statements is empty.");const t=e.statements[0];if(t.kind!==s.SyntaxKind.ExpressionStatement)return void l.error(`The JSON5 file format is incorrect, the first child node is not ExpressionStatement. kind: ${t.kind}`);const r=t.expression;if(!r)return void l.error("The JSON5 file format is incorrect, the first child node is empty.");if(r.kind===s.SyntaxKind.ObjectLiteralExpression)return r;if(r.kind===s.SyntaxKind.ArrayLiteralExpression){const e=r.elements;if(e&&e.length&&e[0].kind===s.SyntaxKind.ObjectLiteralExpression)return e[0];l.error("The JSON5 file format is incorrect, the node ArrayLiteralExpression first element is not ObjectLiteralExpression.")}return void l.error("The JSON5 file format is incorrect.")}(t);return r?p(r,t):{}}function d(e,t){return e.kind===s.SyntaxKind.StringLiteral||e.kind===s.SyntaxKind.NumericLiteral?e.text:e.kind===s.SyntaxKind.PrefixUnaryExpression?e.getText(t):e.kind===s.SyntaxKind.ArrayLiteralExpression?function(e,t){const r=[];return e.elements.forEach((e=>{r.push(d(e,t))})),r}(e,t):e.kind===s.SyntaxKind.ObjectLiteralExpression?p(e,t):e.kind===s.SyntaxKind.TrueKeyword||e.kind!==s.SyntaxKind.FalseKeyword&&void 0}function p(e,t){const r={};return e.properties.forEach((e=>{const n=e,i=n.name.text,a=d(n.initializer,t);r[i]=a})),r}t.fetchDependenciesFromFile=function(e){return c.existsSync(e)?u(c.readFileSync(e,"utf-8")):{}},t.parseJsonText=u},7015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOG_LEVEL=void 0;const n=r(1779);var i;!function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(i||(t.LOG_LEVEL=i={}));t.default=class{static configure(e,t){(0,n.configure)({appenders:{file:{type:"fileSync",filename:`${e}`,maxLogSize:5242880,backups:5,compress:!0,encoding:"utf-8",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [ArkAnalyzer] - %m"}},console:{type:"console",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [ArkAnalyzer] - %m"}}},categories:{default:{appenders:["console"],level:"info",enableCallStack:!1},codelinter:{appenders:["file"],level:t,enableCallStack:!0}}})}static getLogger(){return(0,n.getLogger)("codelinter")}static setLogLevel(e){(0,n.getLogger)("codelinter").level=e}}},3387:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transfer2UnixPath=void 0;const i=n(r(6928));t.transfer2UnixPath=function(e){return i.default.posix.join(...e.split(/\\/))}},366:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.codeGen=t.handleError=void 0;const s=a(r(9896)),c=o(r(6928)),l=r(4399),u=r(5097),d=r(5932),p=o(r(3506)),_=p.default.getLogger();function f(e,t){if(p.default.getLogger().error(e),t.isAbortOnConvertError())throw new Error(e)}function g(e,t,r){if(e.has(t)){const n=e.get(t);if(void 0!==n[1]&&n[1]===r||n[0].add(r),n[1]===r)throw new Error(`generate imports error: import ${r} from '${t}' is not supported, please use import {${r}} from '${t}'`)}else e.set(t,[new Set([r]),void 0])}t.handleError=f,t.codeGen=function(e,t){const r=c.default.dirname(t.getTtsConfigJsonPath())+c.default.sep+".gitignore";if(t.needAddNewFileToGitIgnore())try{!function(e){if(!s.existsSync(e))return;const t=s.readFileSync(e,"utf-8").split("\n"),r=[];let n=-1,i=-1;for(let e=0;e=n&&(-1==i||e<=i)||r.push(t[e]);s.writeFileSync(e,r.join("\n"),"utf-8")}(r),s.existsSync(r)?s.appendFileSync(r,"\n"+d.gitIgnorePattern):s.writeFileSync(r,"\n"+d.gitIgnorePattern)}catch(e){f(`Error clearing previous gitignore content or adding gitignore pattern! Error msg: ${e}`,t)}try{e.getFiles().forEach((e=>{const n=function(e,t){try{const r=`${function(e,t){let r=!1,n=!1,i=[];e.getClasses().forEach((e=>{const a=(0,u.isSendableClass)(e,t);e.getFields().forEach((e=>{a&&(([l.BaseType.OBJECT,l.BaseType.MAP].includes(e.getType().category)||e.getType().genericTypes.find((e=>e.category===l.BaseType.OBJECT)))&&(n=!0),[l.BaseType.ARRAY,l.BaseType.MAP,l.BaseType.SET].includes(e.getType().category)&&(r=!0)),(l.BaseType.COLLECTIONS_MAP===e.getType().category||e.getType().genericTypes.find((e=>e.category===l.BaseType.OBJECT)))&&(n=!0),[l.BaseType.COLLECTIONS_ARRAY,l.BaseType.COLLECTIONS_MAP,l.BaseType.COLLECTIONS_SET].includes(e.getType().category)&&(r=!0);const t=null!=(0,u.getMergeFromTransformFn)(e)&&null!=(0,u.getToJsonTransformFn)(e);e.getType().category!==l.BaseType.CLASS&&e.getType().category!==l.BaseType.OTHERS||t||i.push(e.getType().name);const o=e.getType().genericTypes.find((e=>e.category===l.BaseType.CLASS||e.category===l.BaseType.OTHERS));null==o||t||i.push(o.name)}))}));const a=function(e){const t=new Map;return Array.from(e.getImportInfoMap()).forEach((([e,r])=>{var n;const i=null===(n=r.find((e=>!e.isNamedImport())))||void 0===n?void 0:n.getElementName(),a=[new Set(r.filter((e=>e.isNamedImport())).map((e=>e.getElementName()))),i];t.set(e,a)})),t}(e);r&&g(a,"@kit.ArkTS","collections");n&&g(a,"@kit.ArkTS","lang");return g(a,"sendable-transformer","ISerializable"),g(a,"sendable-transformer","ISerializableType"),`${Array.from(a).filter((([e,t])=>"class-transformer"!=e)).map((([e,t])=>`import { ${t.filter((e=>void 0!==e)).flatMap((e=>"string"==typeof e?e:e instanceof Set?`${Array.from(e).flatMap((e=>i.includes(e)?[e,(0,d.classFactory)(e)]:e)).join(", ")}`:void 0)).join(", ")} } from '${e}';`)).join("\n")}\n${t.getCopyImportPrefixes().join("\n")}`}(e,t)}\n${t.isSendable()?"'use shared'\n":""}\n${e.getClasses().filter((e=>e.getName()!==d.defaultArkClassName)).flatMap((e=>e.getType()===l.SRClassType.ENUM?(0,u.genEnumHelper)(e,t):e.getMethods().find((e=>"constructor"==e.getName()&&e.getParameters().length>0))?(_.info(`Class ${e.getName()} has constructor with parameters, transformed @Sendable class will remain the same!`),[e.getOriginalCode(),""]):[(0,u.genClass)(e,t),(0,u.genClassFactory)(e,t)])).join("\n\n")}\n `;return{ok:!0,path:e.getFilePath(),content:r}}catch(t){return{ok:!1,path:e.getFilePath(),reason:t.message}}}(e,t);if(!n.ok)return void f(`Error generating file: ${n.reason}`,t);let i=e.getFilePath().replace(/(.*)\.tts/,"$1.ets");s.mkdir(c.default.dirname(i),{recursive:!0},(e=>{e?f(`Error creating directory for generated ${i}! Error msg: ${e}`,t):s.writeFile(i,n.content,(e=>{e&&f(`Error creating file ${i}! Error msg: ${e}`,t)}))}));try{let e=i.replace(c.default.dirname(t.getTtsConfigJsonPath()),"");e=e.split(c.default.sep).join("/"),n.ok&&t.needAddNewFileToGitIgnore()&&(_.debug(`generate ets file for ${i} success!`),s.appendFileSync(r,"\n"+e))}catch(e){f(`Error adding generated ets files to gitignore! Error msg: ${e}`,t)}}))}catch(e){throw e}if(t.needAddNewFileToGitIgnore())try{s.appendFileSync(r,"\n"+d.gitIgnorePattern)}catch(e){f(`Error adding gitignore pattern afther adding the last of generated ets files! Error msg: ${e}`,t)}}},8481:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SRConfig=void 0;const s=o(r(9896)),c=o(r(6928)),l=r(1756),u=a(r(3506));const d=u.default.getConsoleLogger();t.SRConfig=class{constructor(){this.addNewFileToGitIgnore=!1,this.targetFiles=[],this.extraImportPrefixes=[],this.copyImportPrefixes=[],this.abortOptions={onConvertError:!0,onScanError:!0}}configure(e,t=!1,r=[],n){var i;this.logLevel=null!==(i=u.LogLevel[e])&&void 0!==i?i:u.LogLevel.WARN,u.default.configure(this.logFilePath,this.logLevel),this.projectPath=c.default.resolve(c.default.dirname(n),".."),this.addNewFileToGitIgnore=t,this.targetFiles=(0,l.globSync)(r,{cwd:c.default.parse(n).dir,posix:!0,dotRelative:!0}).filter((e=>!e.startsWith("./oh_modules")&&!e.startsWith("./node_modules")&&!e.startsWith("./build"))).map((e=>c.default.parse(n).dir+c.default.sep+c.default.normalize(e))),this.ttsConfigJsonPath=n}buildFromJson(e){var t,r,n,i,a,o,c;if(s.default.existsSync(e)){const l=s.default.readFileSync(e,"utf8"),u=JSON.parse(l),p=null!==(t=u.logLevel)&&void 0!==t?t:"WARN",_=null!==(r=u.addGeneratedFilesIntoGitIgnore)&&void 0!==r&&r;this.logFilePath=null!==(n=u.logFilePath)&&void 0!==n?n:"./out/SRCodeGen.log";const f=null!==(i=u.targetFiles)&&void 0!==i?i:[];return u.abortOptions&&(this.abortOptions.onConvertError=u.abortOptions.onConvertError,this.abortOptions.onScanError=u.abortOptions.onScanError),this.extraImportPrefixes=null!==(a=u.extraImportPrefixes)&&void 0!==a?a:[],this.copyImportPrefixes=null!==(o=u.copyImportPrefixes)&&void 0!==o?o:[],this.sendable=null===(c=u.sendable)||void 0===c||c,this.configure(p.toUpperCase(),_,f,e),d.info(`Found ${this.targetFiles.length} tts files...`),d.info(`log file path: ${this.logFilePath}`),!0}return console.error(`Your ttsConfigJsonPath: "${e}" is not exist.`),!1}needAddNewFileToGitIgnore(){return this.addNewFileToGitIgnore}getLogLevel(){return this.logLevel}getTargetFiles(){return this.targetFiles}getProjectPath(){return this.projectPath}isAbortOnConvertError(){return this.abortOptions.onConvertError}isAbortOnScanError(){return this.abortOptions.onScanError}getExtraImportPrefixes(){return this.extraImportPrefixes}getCopyImportPrefixes(){return this.copyImportPrefixes}getTtsConfigJsonPath(){return this.ttsConfigJsonPath}getLogFilePath(){return this.logFilePath}isSendable(){return this.sendable}}},4414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SRConfigBuilder=void 0;const n=r(8481);t.SRConfigBuilder=class{constructor(e){this.ttsConfigJsonPath=e,this.srConf=new n.SRConfig}getConfig(){return this.srConf}getJsonPath(){return this.ttsConfigJsonPath}build(){return this.srConf.buildFromJson(this.ttsConfigJsonPath)}}},4399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.THIS=t.SRImportElement=t.SRFieldRef=t.SRStmt=t.SRScene=t.SRNamespace=t.SRMethod=t.SRFile=t.BaseType=t.SRField=t.UnclearDecorator=t.SROption=t.SRCommonOption=t.SRDiscriminator=t.TransformDecorator=t.ExcludeDecorator=t.ExposeDecorator=t.TypeDecorator=t.SRDecorator=t.SRClassType=t.SRClass=void 0;class r{constructor(e){this.type=e}getType(){return this.type}setType(e){this.type=e}}t.SRDecorator=r;t.TypeDecorator=class extends r{constructor(e,t){super(e),this.option=t}getOption(){return this.option}setOption(e){this.option=e}};t.ExposeDecorator=class extends r{constructor(e,t){super(e),this.option=t}getOption(){return this.option}setOption(e){this.option=e}};t.ExcludeDecorator=class extends r{constructor(e){super(e)}};t.TransformDecorator=class extends r{constructor(e,t,r){super(e);const n=t.match(/Transform\(([^,]+),\s*({[^}]+})\)/);if(n){const e=n[1];this.anonymousMethod=e}this.options=r}setAnonymousMethod(e){this.anonymousMethod=e}getAnonymousMethod(){return this.anonymousMethod}getOptions(){return this.options}};t.UnclearDecorator=class extends r{constructor(e){super(e)}};class n{}t.SROption=n;t.SRDiscriminator=class extends n{constructor(e,t){super(),this.property=e,this.subTypes=t}getProperty(){return this.property}getSubTypes(){return this.subTypes}};t.SRCommonOption=class extends n{constructor(e){super(),this.options=new Map,Object.keys(e).forEach((t=>{if(!this.options.has(t)){let r=e[t];"true"===r?r=!0:"false"===r&&(r=!1),this.options.set(t,r)}}))}getOptions(){return this.options}};class i{constructor(e,t){this.elementName=e,this.namedImport=t}getElementName(){return this.elementName}isNamedImport(){return this.namedImport}equals(e){return this.elementName===e.elementName&&this.namedImport===e.namedImport}}var a;t.SRImportElement=i,function(e){e[e.BOOLEAN=0]="BOOLEAN",e[e.NUMBER=1]="NUMBER",e[e.BIGINIT=2]="BIGINIT",e[e.STRING=3]="STRING",e[e.ARRAY=4]="ARRAY",e[e.SET=5]="SET",e[e.MAP=6]="MAP",e[e.COLLECTIONS_ARRAY=7]="COLLECTIONS_ARRAY",e[e.COLLECTIONS_SET=8]="COLLECTIONS_SET",e[e.COLLECTIONS_MAP=9]="COLLECTIONS_MAP",e[e.ENUM=10]="ENUM",e[e.CLASS=11]="CLASS",e[e.OBJECT=12]="OBJECT",e[e.UNION=13]="UNION",e[e.OTHERS=14]="OTHERS"}(a||(t.BaseType=a={}));t.SRField=class{constructor(e){this.decorators=[],this.modifiers=[],this.name=e}getType(){return this.type}setType(e){this.type=e}getName(){return this.name}setName(e){this.name=e}isOptional(){return this._isOptional}setIsOptional(e){this._isOptional=e}getInitializer(){return this.initializer}setInitializer(e){this.initializer=e}static extractRightSideOfAssignment(e){const t=e.match(/=(.*)\s*;?\s*$/);return t?t[1].trim():""}getDecorators(){return this.decorators}addDecorator(e){this.decorators.push(e)}isStatic(){for(let e in this.modifiers)if("StaticKeyword"==e)return!0;return!1}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.push(e)}setDeclaringClass(e){this.declaringClass=e}getDeclaringClass(){return this.declaringClass}};const o="this";t.THIS=o;t.SRFieldRef=class{constructor(e,t=o){this.name=e,this.base=t}getName(){return this.name}getBase(){return this.base}toString(){return this.base+"."+this.name}};t.SRStmt=class{constructor(e){this.fieldRefs=[],this.originalCode=e}getFieldRefs(){return this.fieldRefs}setFieldRefs(e){this.fieldRefs=e}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}addFieldRef(e){this.fieldRefs.push(e)}};t.SRMethod=class{constructor(e){this.parameters=[],this.modifiers=[],this.statements=[],this.name=e}getName(){return this.name}setName(e){this.name=e}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}isStatic(){for(let e in this.modifiers)if("StaticKeyword"==e)return!0;return!1}getModifiers(){return this.modifiers}setModifiers(e){this.modifiers=e}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}getStatements(){return this.statements}setStatements(e){this.statements=e}};var s;t.SRNamespace=class{constructor(e){this.classes=[],this.namespaces=[],this.name=e}getName(){return this.name}setName(e){this.name=e}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getClasses(){return this.classes}addClass(e){this.classes.push(e)}setClasses(e){this.classes=e}getNamespaces(){return this.namespaces}addNamespace(e){this.namespaces.push(e)}setNamespaces(e){this.namespaces=e}},function(e){e[e.INTERFACE=0]="INTERFACE",e[e.CLASS=1]="CLASS",e[e.STRUCT=2]="STRUCT",e[e.ENUM=3]="ENUM",e[e.OBJECT=4]="OBJECT"}(s||(t.SRClassType=s={}));t.SRClass=class{constructor(e,t){this.decorators=[],this.modifiers=[],this.implementClasses=[],this.methods=[],this.fields=[],this.name=e,this.type=t}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getDecorators(){return this.decorators}addDecorator(e){this.decorators.push(e)}setDecorators(e){this.decorators=e}getSuperClass(){return this.superClass}setSuperClass(e){this.superClass=e}getMethods(){return this.methods}addMethod(e){this.methods.push(e)}setMethods(e){this.methods=e}getFields(){return this.fields}addField(e){this.fields.push(e)}setFields(e){this.fields=e}addModifier(e){this.modifiers.push(e)}getModifiers(){return this.modifiers}addImplementedClass(e){this.implementClasses.push(e)}setDeclaringFile(e){this.declaringFile=e}getDeclaringFile(){return this.declaringFile}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}};t.SRFile=class{constructor(e){this.classes=[],this.namespaces=[],this.importInfoMap=new Map,this.name=e}getName(){return this.name}setName(e){this.name=e}getFilePath(){return this.filePath}setFilePath(e){this.filePath=e}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getClasses(){return this.classes}addClass(e){this.classes.push(e)}setClasses(e){this.classes=e}getNamespaces(){return this.namespaces}addNamespace(e){this.namespaces.push(e)}setNamespaces(e){this.namespaces=e}getImportInfoMap(){return this.importInfoMap}getImportInfoBy(e){return this.importInfoMap.get(e)}addImportInfo(e,t,r){if(this.importInfoMap.has(e)||this.importInfoMap.set(e,[]),""!==t){const n=this.importInfoMap.get(e);let a=new i(t,r),o=!1;for(let e of n)if(e.equals(a)){o=!0;break}o||n.push(a)}}getClassByName(e){return this.classes.find((t=>t.getName()===e))}};t.SRScene=class{constructor(){this.files=[]}getFiles(){return this.files}addFile(e){this.files.push(e)}setFiles(e){this.files=e}findFileByName(e){return this.files.find((t=>t.getName()===e))}findFileByPath(e){return this.files.find((t=>t.getFilePath()===e))}}},2752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SRSceneBuilder=void 0;const n=r(4399),i=r(5513),a=r(3506);t.SRSceneBuilder=class{constructor(){this.reverseFileMap=new Map,this.classMap=new Map,this.fieldMap=new Map}build(e){const t=new i.SceneConfig;t.buildConfig("dummy",e.getProjectPath(),"./out/SRSceneBuilder.log",a.LogLevel[e.getLogLevel()],[],e.getTargetFiles());const r=new i.Scene;r.buildSceneFromProjectDir(t),r.inferTypes(),this.scene=r;const o=new n.SRScene;return r.getFiles().forEach((e=>{o.addFile(this.buildFile(e))})),this.buildClassHierarchy(),this.buildFieldDecorators(),o}buildFile(e){const t=new n.SRFile(e.getName());return t.setFilePath(e.getFilePath()),e.getNamespaces().forEach((e=>t.addNamespace(this.buildNamespace(e)))),e.getClasses().forEach((e=>{const r=this.buildClass(e);t.addClass(r),r.setDeclaringFile(t),!t.getDefaultClass()&&e.isDefaultArkClass()&&t.setDefaultClass(r)})),e.getImportInfos().forEach((e=>{let r=e.getImportFrom(),n=e.getImportClauseName();const i=e.getNameBeforeAs();i&&(n=i+" as "+n),t.addImportInfo(r,n,"NamedImports"==e.getImportType())})),this.reverseFileMap.set(t,e),t}buildNamespace(e){const t=new n.SRNamespace(e.getName());return e.getClasses().forEach((e=>{const r=this.buildClass(e);t.addClass(r),!t.getDefaultClass()&&e.isDefaultArkClass()&&t.setDefaultClass(r)})),e.getNamespaces().forEach((e=>t.addNamespace(this.buildNamespace(e)))),t}buildClass(e){const t=e.getOriginType();let r=new n.SRClass(e.getName(),this.transformStrToClassType(t));return e.getModifiers().forEach((e=>{e instanceof i.Decorator?r.addDecorator(this.buildDecorator(e)):r.addModifier(this.transformModifierKeyword(e))})),e.getMethods().forEach((e=>{r.addMethod(this.buildMethod(e))})),e.getFields().forEach((e=>{let t=this.buildField(e);r.addField(t),t.setDeclaringClass(r)})),r.setOriginalCode(e.getCode()),this.classMap.set(e,r),r}buildMethod(e){const t=new n.SRMethod(e.getName()),r=[];e.getModifiers().forEach((e=>{r.push(this.transformModifierKeyword(e.toString()))})),t.setModifiers(r),t.setReturnType(e.getReturnType().toString());const a=[];e.getParameters().forEach((e=>{a.push(e.getName())})),t.setParameters(a),t.setOriginalCode(e.getCode());const o=e.getBody(),s=o.getCfg(),c=o.getOriginalCfg(),l=o.getStmtToOriginalStmt(),u=new Map,d=[];for(const e of c.getStmts()){const t=new n.SRStmt(e.toString());u.set(e,t),d.push(t)}for(const e of s.getStmts()){const t=l.get(e);if(!t)continue;const r=u.get(t);if(r)for(const t of e.getUses())if(t instanceof i.ArkInstanceFieldRef&&t.getBase().getName()==n.THIS){const e=new n.SRFieldRef(t.getFieldName());r.addFieldRef(e)}}return t.setStatements(d),t}buildField(e){let t=new n.SRField(e.getName());t.setInitializer(n.SRField.extractRightSideOfAssignment(e.getCode())),t.setIsOptional(e.getQuestionToken());let r=this.buildFieldType(e.getType());if(r.category==n.BaseType.ENUM){const t=e.getInitializer();if(null!=t){const e=t.getType();e instanceof i.NumberType?r.category=n.BaseType.NUMBER:e instanceof i.StringType&&(r.category=n.BaseType.STRING)}}return t.setType(r),this.fieldMap.set(e,t),t}buildFieldDecorators(){this.fieldMap.forEach(((e,t)=>{t.getModifiers().forEach((t=>{t instanceof i.Decorator?e.addDecorator(this.buildDecorator(t,e)):e.addModifier(this.transformModifierKeyword(t))}))}))}buildDecorator(e,t){const r=e.getKind(),i=e.getParam(),a=e.getContent();let o,s=t?this.buildOption(r,a,t):void 0;return o="Type"==r&&s?new n.TypeDecorator(i,s):"Expose"==r&&s?new n.ExposeDecorator(r,s):"Exclude"==r?new n.ExcludeDecorator(r):"Transform"==r&&s?new n.TransformDecorator(r,a,s):new n.UnclearDecorator(a),o}buildOption(e,t,r){let i=this.extractJson(t);if(""==i)return;let a=i.replace(/([a-zA-Z_]\w*)(?=\s*:)/g,'"$1"');a=a.replace(/:\s*'([^']*)'/g,':"$1"'),a=a.replace(/:\s*([A-Za-z_]\w*)(?=[,}])/g,':"$1"'),a=a.replace(/,\s*([}\]])/g,"$1");let o=JSON.parse(a);switch(e){case"Type":const e=Object.keys(o)[0];if("discriminator"==e){let e=o.discriminator.property,t=o.discriminator.subTypes,i=[];return t.forEach((e=>{var t,n;const a=r.getDeclaringClass().getDeclaringFile();let o=a.getClassByName(e.name);if(!o){const r=null===(n=null===(t=this.reverseFileMap.get(a).getImportInfoBy(e.name))||void 0===t?void 0:t.getLazyExportInfo())||void 0===n?void 0:n.getTypeSignature();o=this.classMap.get(this.scene.getClass(r))}i.push({name:e.name,value:o})})),new n.SRDiscriminator(e,i)}return"postProcess"==e||"passThrough"==e?new n.SRCommonOption(o):void 0;case"Expose":case"Transform":return new n.SRCommonOption(o);default:return}}buildFieldType(e){const t=this.transformStrToFieldType(e),r=this.transformFieldName(e,t),a=[];if(e instanceof i.UnclearReferenceType&&t!=n.BaseType.OTHERS){e.getGenericTypes().forEach((e=>{a.push(this.buildFieldType(e))}))}else if(e instanceof i.ArrayType){const t=e.getBaseType();a.push(this.buildFieldType(t))}else e instanceof i.UnionType&&e.getTypes().forEach((e=>{a.push(this.buildFieldType(e))}));return{category:t,name:r,genericTypes:a}}buildClassHierarchy(){this.classMap.forEach(((e,t)=>{const r=t.getSuperClass();r&&e.setSuperClass(this.classMap.get(r));t.getImplementedInterfaceNames().forEach((r=>{const n=t.getExtendedClasses().get(r);null!=n&&e.addImplementedClass(this.classMap.get(n))}))}))}transformStrToFieldType(e){if(e instanceof i.BooleanType)return n.BaseType.BOOLEAN;if(e instanceof i.StringType)return n.BaseType.STRING;if(e instanceof i.NumberType)return n.BaseType.NUMBER;if(e instanceof i.ClassType){const t=this.scene.getClass(e.getClassSignature());return null==t||"Enum"!=t.getOriginType()?n.BaseType.CLASS:n.BaseType.ENUM}if(e instanceof i.ArrayType)return n.BaseType.ARRAY;if(e instanceof i.UnionType)return n.BaseType.UNION;if(e instanceof i.UnclearReferenceType)switch(e.getName()){case"Set":return n.BaseType.SET;case"collections.Set":return n.BaseType.COLLECTIONS_SET;case"Map":return n.BaseType.MAP;case"collections.Map":return n.BaseType.COLLECTIONS_MAP;case"Array":return n.BaseType.ARRAY;case"collections.Array":return n.BaseType.COLLECTIONS_ARRAY;case"BigIntKeyword":return n.BaseType.BIGINIT;case"ObjectKeyword":return n.BaseType.OBJECT;default:return n.BaseType.OTHERS}return n.BaseType.OTHERS}transformFieldName(e,t){switch(t){case n.BaseType.BIGINIT:case n.BaseType.ARRAY:case n.BaseType.MAP:case n.BaseType.SET:case n.BaseType.UNION:return e.toString().match("BigIntKeyword")?e.toString().replace("BigIntKeyword","bigint"):e.toString().match("ObjectKeyword")?e.toString().replace("ObjectKeyword","object"):e.toString();case n.BaseType.CLASS:case n.BaseType.ENUM:const t=e.toString().split(":");return t.length>1?t[t.length-1].trim():e.toString();default:return e.toString()}}transformStrToClassType(e){switch(e){case"Class":return n.SRClassType.CLASS;case"Struct":return n.SRClassType.STRUCT;case"Interface":return n.SRClassType.INTERFACE;case"Enum":return n.SRClassType.ENUM;default:return n.SRClassType.OBJECT}}transformModifierKeyword(e){switch(e){case"ExportKeyword":return"export";case"PublicKeyword":return"public";case"ProtectedKeyword":return"protected";case"PrivateKeyword":return"private";case"ReadonlyKeyword":return"readonly";case"StaticKeyword":return"static";case"AsyncKeyword":return"async";case"AbstractKeyword":return"abstract";case"DefaultKeyword":return"default";case"ConstKeyword":return"const";default:return e}}extractJson(e){const t=e.indexOf("{");if(-1===t)return"";let r=0;for(let n=t;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDefaultOptional=t.getToJsonTransformFn=t.getMergeFromTransformFn=t.isOptional=t.needInitByCtor=t.needJudgmentInToJson=t.isSendableClass=t.isPostProcess=t.isPassThrough=t.copyMethods=t.genEnumHelper=t.genToJsonStmt=t.genMergeFromStmt=t.genMergeFromStmts=t.genCtorInitialization=t.genFieldDeclaration=t.genClassFactory=t.genClass=void 0;const n=r(4399),i=r(4897),a=r(5932);function o(e){var t;for(let r of e.getDecorators())if(r instanceof n.ExposeDecorator)return null!==(t=r.getOption().getOptions().get("name"))&&void 0!==t?t:null;return null}function s(e,t){const r=t?"convertType":"typeName",n=Object.assign(Object.assign({},e.getType()),{optional:h(e),sendable:t?"convertType":"typeName"}),a=(0,i.template)(n,r),o=e.getInitializer(),s=h(e)?"?":"";return`${e.getName()}${s}: ${a(n)}${o&&b(e)?" = "+o:""};`}function c(e,t){const r=Object.assign(Object.assign({},e.getType()),{optional:h(e),sendable:t?"convertType":"typeName"}),n=(0,i.template)(r,"ctor")(r);return n?`this.${e.getName()} = new ${n}()`:null}function l(e,t){const r=e.getFields().filter(p);let n="";r.length>0&&(n=`if(jsonObj){\n${r.map((e=>a.T.repeat(3)+u(e,"jsonObj",t))).join("\n")}\n${a.T}${a.T}}`);const i=_(e)?"this.postProcess();":"";return`${e.getSuperClass()?"super.mergeFrom(jsonObj)\n":""}${n}${e.getFields().filter((e=>!p(e))).map((e=>u(e,"jsonObj",t))).join(`\n${a.T}`)}\n${a.T}${a.T}${i}`}function u(e,t,r){if(e.getDecorators().find((e=>e instanceof n.ExcludeDecorator)))return"";const s=e.getType(),c=o(e),l=Object.assign(Object.assign({},s),{optional:h(e),sendable:r?"convertType":"typeName"}),u=e.getDecorators().find((e=>e instanceof n.TypeDecorator));(null==u?void 0:u.getOption())instanceof n.SRDiscriminator&&(l.discriminator=u.getOption());const d=y(e);let _="";d&&(l.transformFn=(0,a.transformFnName)(e.getName()),_=`let ${l.transformFn} = ${d}\n${a.T.repeat(3)}`);const f=(0,i.template)(l,"copy")(l);if(p(e))return`${_}${f(t,`this.${e.getName()}`)}`;const g=`${f(`${c?`${t}['${c}'] ?? `:""}${t}['${e.getName()}']`,`this.${e.getName()}`)}`,m=""+(c?`${b(e)?`${t}['${c}']`:(0,a.judgeNotNullStmt)(`${t}['${c}']`)}|| `:""),v=`${b(e)?`${t}['${e.getName()}']`:(0,a.judgeNotNullStmt)(`${t}['${e.getName()}']`)}`;return`\n${a.T}${a.T}if (${m}${v}) {\n${a.T}${a.T}${a.T}${_}${g}\n${a.T}${a.T}}`}function d(e,t,r){if(e.getDecorators().find((e=>e instanceof n.ExcludeDecorator)))return"";const s=e.getType(),c=o(e),l=Object.assign(Object.assign({},s),{optional:h(e),sendable:r?"convertType":"typeName"}),u=e.getDecorators().find((e=>e instanceof n.TypeDecorator));(null==u?void 0:u.getOption())instanceof n.SRDiscriminator&&(l.discriminator=u.getOption());const d=v(e);let p="";d&&(l.transformFn=(0,a.transformFnName)(e.getName()),p=`let ${l.transformFn} = ${d}`);const _=(0,i.template)(l,"toJson")(l);return g(e)?`${p}\n${a.T}${a.T}if(this.${e.getName()}) {\n${a.T}${a.T}${a.T}${_(`${e.getName()}`,`${t}['${null!=c?c:e.getName()}']`)}\n${a.T}${a.T}}`:p+`\n${a.T}${a.T}`+_(`${e.getName()}`,`${t}['${null!=c?c:e.getName()}']`)}function p(e){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.TransformDecorator)return null!=e.getOptions().getOptions().get("passThrough");if(e instanceof n.TypeDecorator&&e.getOption()instanceof n.SRCommonOption){return null!=e.getOption().getOptions().get("passThrough")}}))}function _(e){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.UnclearDecorator)return"PostProcess"===e.getType()}))}function f(e,t){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.UnclearDecorator)return"Sendable"===e.getType()}))||t.isSendable()}function g(e){return(!b(e)||e.getType().category===n.BaseType.CLASS||e.getType().category===n.BaseType.OTHERS)&&(0===e.getInitializer().length&&h(e))}function m(e){return(0===e.getInitializer().length||!b(e))&&(!e.isOptional()&&!b(e))}function h(e){return!!e.isOptional()||b(e)&&0===e.getInitializer().length}function y(e){const t=e.getDecorators().find((e=>e instanceof n.TransformDecorator&&e.getOptions().getOptions().get("toClassOnly")));return null==t?void 0:t.getAnonymousMethod()}function v(e){const t=e.getDecorators().find((e=>e instanceof n.TransformDecorator&&e.getOptions().getOptions().get("toPlainOnly")));return null==t?void 0:t.getAnonymousMethod()}function b(e){switch(e.getType().category){case n.BaseType.BOOLEAN:case n.BaseType.NUMBER:case n.BaseType.BIGINIT:case n.BaseType.STRING:case n.BaseType.OBJECT:case n.BaseType.CLASS:case n.BaseType.OTHERS:case n.BaseType.ENUM:case n.BaseType.UNION:return!0;case n.BaseType.ARRAY:case n.BaseType.COLLECTIONS_ARRAY:case n.BaseType.COLLECTIONS_SET:case n.BaseType.COLLECTIONS_MAP:case n.BaseType.SET:case n.BaseType.MAP:return!1}}t.genClass=function(e,t){const r=f(e,t);return`${r?"@Sendable":""}\n${function(e){return`${e.getModifiers().includes("export")?"export ":""}${e.getModifiers().includes("abstract")?"abstract ":""}class ${e.getName()}${e.getSuperClass()?" extends "+e.getSuperClass().getName():""} implements ISerializable<${e.getName()}>`}(e)} {\n${a.T}${e.getFields().map((e=>s(e,r))).join(`\n${a.T}`)}\n\n${a.T}${function(e,t){const r=e.getFields().map((e=>{if(m(e))return c(e,t)})).filter((e=>null!=e)).join(`;\n${a.T}${a.T}`);return e.getModifiers().includes("abstract")?"":`constructor() {\n${a.T}${a.T}${e.getSuperClass()?"super();\n":""}${r}\n${a.T}}`}(e,r)}\n\n${a.T}${e.getMethods().filter((e=>"constructor"!=e.getName()&&!e.getName().startsWith("AnonymousMethod-"))).map((e=>e.getOriginalCode())).join("\n"+a.T)}\n \n${a.T}mergeFrom(jsonObj: object): void {\n${a.T}${a.T}${l(e,r)}\n${a.T}}\n${a.T}toJson(): object {\n${a.T}${a.T}let ans:object = ${e.getSuperClass()?"super.toJson();":"new Object;"}\n${a.T}${a.T}${e.getFields().map((e=>d(e,"ans",r))).join("\n"+a.T.repeat(2))}\n${a.T}${a.T}return ans;\n${a.T}}\n}\n`},t.genClassFactory=function(e,t){const r=f(e,t);if(e.getModifiers().includes("abstract"))return"";const n=(0,a.classFactory)(e.getName());return`${r?"@Sendable":""}\n${e.getModifiers().includes("export")?"export ":""}class ${n} implements ISerializableType<${e.getName()}> {\n${a.T}fromJson(obj: object): ${e.getName()} {\n${a.T}${a.T}const o = new ${e.getName()}();\n${a.T}${a.T}o.mergeFrom(obj);\n${a.T}${a.T}return o;\n${a.T}}\n\n${a.T}toJson(o: ${e.getName()}): object {\n${a.T}${a.T}return o.toJson();\n${a.T}}\n\n${a.T}static instance: ${n} = new ${n}();\n}`},t.genFieldDeclaration=s,t.genCtorInitialization=c,t.genMergeFromStmts=l,t.genMergeFromStmt=u,t.genToJsonStmt=d,t.genEnumHelper=function(e,t){const r=f(e,t),i=(0,a.enumHelper)(e.getName()),o=e.getFields().find((e=>e.getType().category===n.BaseType.NUMBER));return`\n${e.getModifiers().join(" ")} enum ${e.getName()} {\n${a.T}${e.getFields().map((e=>{const t=e.getInitializer();return`${e.getName()}${t?" = "+t:""}`})).join(",\n"+a.T)}\n}\n${r?"@Sendable":""}\nexport class ${i} {\n${a.T}static toEnum(obj: object): ${e.getName()} {\n${a.T}${a.T}if (typeof obj === 'string') {\n${a.T}${a.T}${a.T}switch (String(obj)) {\n${a.T}${a.T}${a.T}${e.getFields().map((t=>`\n${a.T}${a.T}${a.T}${a.T}case '${t.getName()}':{\n${a.T}${a.T}${a.T}${a.T}${a.T}return ${e.getName()}.${t.getName()};\n${a.T}${a.T}${a.T}${a.T}}`)).join("\n")}\n${a.T}${a.T}${a.T}}\n${a.T}${a.T}}${void 0!==o?` else if (typeof obj === 'number') {\n${a.T}${a.T}${a.T}return Number(obj);\n${a.T}${a.T}}`:""} \n${a.T}${a.T}throw new Error('Invalid ${e.getName()}: ' + JSON.stringify(obj));\n${a.T}}\n}`},t.copyMethods=function(e){return""},t.isPassThrough=p,t.isPostProcess=_,t.isSendableClass=f,t.needJudgmentInToJson=g,t.needInitByCtor=m,t.isOptional=h,t.getMergeFromTransformFn=y,t.getToJsonTransformFn=v,t.isDefaultOptional=b},3044:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(4414),a=r(2752),o=r(366),s=n(r(6928)),c=n(r(3506));const l=process.argv.slice(1);l[1]=String(l[1]);const u=process.cwd(),d=(p=l[1],/^(\/|\\|[A-Za-z]:\\)/.test(p)?l[1]:s.default.resolve(u,l[1]));var p;console.info(`input path of ttsconfig.json5: ${d}`);const _=new i.SRConfigBuilder(d);try{if(_.build()){const e=_.getConfig(),t=(new a.SRSceneBuilder).build(e);c.default.configure(e.getLogFilePath(),e.getLogLevel()),(0,o.codeGen)(t,e)}else console.error("parse ttsconfig.json error!")}catch(e){console.error(`Fatal ERROR occurred, Class-Transformer exit! Error msg: ${e}`)}},4897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.template=void 0;const n=r(4399),i=r(5932);function a(e,t,r,n,i){return{typeName:e,convertType:t,ctor:r,copy:n,toJson:i}}function o(e,t){return w[e.category][t]}t.template=o;const s=()=>"bigint",c=()=>"boolean",l=()=>"number",u=()=>"string",d=()=>"lang.ISendable",p=e=>e.name,_=e=>e.name,f=e=>e.genericTypes.map((t=>{const r=Object.assign(Object.assign(Object.assign({},e),t),{optional:!1});return`${o(t,"convertType")(r)}`})).join("|"),g=e=>{const t=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return`collections.Array<${o(e.genericTypes[0],"convertType")(t)}>`},m=e=>`collections.Map<${o(e.genericTypes[0],"convertType")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}, ${o(e.genericTypes[1],"convertType")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1}))}>`,h=e=>{const t=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return`collections.Set<${o(e.genericTypes[0],"convertType")(t)}>`},y=()=>null,v=e=>o(e,e.sendable)(e),b=e=>(t,r)=>{var n;return(null===(n=e.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`let field: object = ${t};\n${i.T}${i.T}${i.T}if (!field['__type']) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in jsonObj: ' + JSON.stringify(jsonObj));\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (field['__type']) {\n${i.T}${i.T}${i.T}${i.T}${e.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${r} = ${(0,i.classFactory)(e.value.getName())}.instance.fromJson(field);\n${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}`:r?`${r} = ${(0,i.classFactory)(e.name)}.instance.fromJson(${t})`:`${(0,i.classFactory)(e.name)}.instance.fromJson(${t})`},x=e=>(t,r)=>{var n;const a=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),s=o(a,"copy")(a),c=e.optional?`${r} ??= new ${v(e)}();\n`:"";return(null===(n=a.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as object[])) {\n${i.T}${i.T}${i.T}${i.T}if (!item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in item: ' + JSON.stringify(item));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${a.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.push(${(0,i.classFactory)(e.value.getName())}.instance.fromJson(item));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as Object[])) {\n${i.T}${i.T}${i.T}${i.T}${r}.push(${s("item")});\n${i.T}${i.T}${i.T}}`},D=e=>(t,r)=>{var a;const s=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),c=(o(s,"convertType")(s),Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1})),l=(o(c,"convertType")(c),o(c,"copy")(c)),u=e.optional?`${r} ??= new ${v(e)}();`:"";let d={category:n.BaseType.OBJECT,name:"object",genericTypes:[]};e.genericTypes[1].category==n.BaseType.BIGINIT&&(d={category:n.BaseType.UNION,name:"union",genericTypes:[{category:n.BaseType.STRING,name:"string",genericTypes:[]},{category:n.BaseType.NUMBER,name:"number",genericTypes:[]},{category:n.BaseType.BIGINIT,name:"bigint",genericTypes:[]}]});const p=Object.assign(Object.assign({},e),{genericTypes:[e.genericTypes[0],d]});return(null===(a=c.discriminator)||void 0===a?void 0:a.getSubTypes().length)?`${u}\n${i.T}${i.T}${i.T}const map: ${v(e)} = ${t};\n${i.T}${i.T}${i.T}for (let entry of map.entries()) {\n${i.T}${i.T}${i.T}${i.T}if (!entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in entry[1]: ' + JSON.stringify(entry[1]));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${c.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.set(entry[0], ${(0,i.classFactory)(e.value.getName())}.instance.fromJson(entry[1]));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${u}\n${i.T}${i.T}${i.T}const map: ${v(p)} = ${t};\n${i.T}${i.T}${i.T}for (let entry of map.entries()) {\n${i.T}${i.T}${i.T}${i.T}${r}.set(entry[0], ${l("entry[1]")});\n${i.T}${i.T}${i.T}}`},S=e=>(t,r)=>{var n;const a=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),s=o(a,"copy")(a),c=e.optional?`${r} ??= new ${v(e)}();`:"";return(null===(n=a.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as object[])) {\n${i.T}${i.T}${i.T}${i.T}if (!item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in item: ' + JSON.stringify(item));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${a.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.add(${(0,i.classFactory)(e.value.getName())}.instance.fromJson(item));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as Object[])) {\n${i.T}${i.T}${i.T}${i.T}${r}.add(${s("item")});\n${i.T}${i.T}${i.T}}`},T=e=>t=>t.transformFn?(e=>(t,r)=>r?`${r} = ${e.transformFn}(${t})`:`${e.transformFn}(${t})`)(t):e(t),C=e=>t=>t.transformFn?(e=>(t,r)=>r?`${r} = ${e.transformFn}(this.${t})`:`${e.transformFn}(${t}) as object`)(t):e(t),E=C((e=>(e,t)=>`${t} = this.${(0,i.id)(e)};`)),k=e=>{var t;const r=o(e.genericTypes[0],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return r===E?(e,t)=>`${t} = Array.from(this.${e})`:(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)?(e,t)=>{var r;return`${t} = Array.from(this.${e}.map(x => {\n${i.T}${i.T}${i.T}if (!x.__type) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (x.__type) {\n${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map((e=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}return ${(0,i.classFactory)(e.value.getName())}.instance.toJson(x as ${e.value.getName()});\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}return x;\n${i.T}${i.T}}));`}:(e,t)=>`${t} = Array.from(this.${e}).map(x => ${r(n)("x")})`},A=e=>{var t;const r=o(e.genericTypes[1],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1});if(r===E)return(e,t)=>`${t} = new Map(this.${e}.entries())`;if(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)return(e,t)=>{var r;return`if (this.${e}) {\n${i.T}${i.T}${i.T}const ${e} = new Map();\n${i.T}${i.T}${i.T}for (let entry of this.${e}.entries()) {\n${i.T}${i.T}${i.T}${i.T}if (!entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map(((t,r,n)=>`case '${t.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${e}.set(entry[0], ${(0,i.classFactory)(t.value.getName())}.instance.toJson(entry[1] as ${t.value.getName()}));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${t} = ${e};\n${i.T}${i.T}}`};{const t=e.optional?i.T:"";return(e,a)=>`const ${e} = new Map();\n${t}${i.T}${i.T}for (let entry of this.${e}.entries()) {\n${t}${i.T}${i.T}${i.T}${e}.set(entry[0], ${r(n)("entry[1]")});\n${t}${i.T}${i.T}}\n${t}${i.T}${i.T}${a} = ${e};\n`}},N=e=>{var t;const r=o(e.genericTypes[0],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});if(r===E)return(e,t)=>`${t} = Array.from(this.${e}.keys())`;if(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)return(e,t)=>{var r;return`if (this.${e}) {\n${i.T}${i.T}${i.T}const ${e} = new Set();\n${i.T}${i.T}${i.T}for (let item of this.${e}.keys()) {\n${i.T}${i.T}${i.T}${i.T}if (!item.__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item.__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map(((t,r,n)=>`case '${t.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${e}.add(${(0,i.classFactory)(t.value.getName())}.instance.toJson(item as ${t.value.getName()}));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${t} = ${e};\n${i.T}${i.T}}`};{const t=e.optional?i.T:"";return(e,a)=>`const ${e} = new Set();\n${t}${i.T}${i.T}for (let item of this.${e}.keys()) {\n${t}${i.T}${i.T}${i.T}${e}.add(${r(n)("(item)")});\n${t}${i.T}${i.T}}\n${t}${i.T}${i.T}${a} = ${e};\n`}},F=e=>(t,r)=>{var n,a;return(null===(n=e.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`if (!this.${t}.__type) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (this.${t}.__type) {\n${i.T}${i.T}${i.T}${i.T}${null===(a=e.discriminator)||void 0===a?void 0:a.getSubTypes().map(((e,r,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}ans['${t}'] = ${(0,i.classFactory)(e.value.getName())}.instance.toJson(this.${t} as ${e.value.getName()});\n${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}`:r?`${r} = ${(0,i.classFactory)(e.name)}.instance.toJson(this.${t});`:`${(0,i.classFactory)(e.name)}.instance.toJson(${t})`},w={[n.BaseType.BIGINIT]:a(s,s,y,T((()=>(e,t)=>t?`${t} = BigInt(${e})`:`BigInt(${e} as (string | number | bigint))`)),E),[n.BaseType.BOOLEAN]:a(c,c,y,T((()=>(e,t)=>t?`${t} = Boolean(${e})`:`Boolean(${e})`)),E),[n.BaseType.NUMBER]:a(l,l,y,T((()=>(e,t)=>t?`${t} = Number(${e})`:`Number(${e})`)),E),[n.BaseType.STRING]:a(u,u,y,T((()=>(e,t)=>t?`${t} = String(${e})`:`String(${e})`)),E),[n.BaseType.OBJECT]:a((()=>"object"),d,y,T((()=>(e,t)=>t?`${t} = ${e} as lang.ISendable`:`${e} as lang.ISendable`)),E),[n.BaseType.ARRAY]:a((e=>`Array<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}>`),g,v,x,k),[n.BaseType.MAP]:a((e=>`Map<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}, ${o(e.genericTypes[1],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1}))}>`),m,v,D,A),[n.BaseType.SET]:a((e=>`Set<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}>`),h,v,S,N),[n.BaseType.ENUM]:a(p,p,y,(e=>(t,r)=>r?`${r} = ${(0,i.enumHelper)(e.name)}.toEnum(${t})`:`${(0,i.enumHelper)(e.name)}.toEnum(${t})`),E),[n.BaseType.OTHERS]:a(_,_,y,T(b),C(F)),[n.BaseType.UNION]:a(f,f,y,T((()=>(e,t)=>`${t} = ${e}`)),E),[n.BaseType.CLASS]:a(_,_,y,T(b),C(F)),[n.BaseType.COLLECTIONS_ARRAY]:a(g,g,v,x,k),[n.BaseType.COLLECTIONS_MAP]:a(m,m,v,D,A),[n.BaseType.COLLECTIONS_SET]:a(h,h,v,S,N)}},3506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0;const n=r(1779);var i;!function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(i||(t.LogLevel=i={}));t.default=class{static configure(e,t){(0,n.configure)({appenders:{file:{type:"fileSync",filename:`${e}`,maxLogSize:5242880,backups:5,compress:!0,encoding:"utf-8",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [SendableClassTransformer] - %m"}},console:{type:"console",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [SendableClassTransformer] - %m"}}},categories:{default:{appenders:["console"],level:"INFO",enableCallStack:!1},codegen:{appenders:["file"],level:t,enableCallStack:!0}}})}static getLogger(){return(0,n.getLogger)("codegen")}static getConsoleLogger(){return(0,n.getLogger)("console")}static setLogLevel(e){(0,n.getLogger)("codegen").level=e}static setConsoleLogLevel(e){(0,n.getLogger)("console").level=e}}},5932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformFnName=t.judgeNotNullStmt=t.defaultArkClassName=t.gitIgnorePattern=t.T=t.classFactory=t.enumHelper=t.id=void 0;t.id=e=>e;t.enumHelper=e=>`${e}Helper`;t.classFactory=e=>`${e}Type`,t.T=" ",t.gitIgnorePattern="################ content generated by Sendable Class Transformer ################",t.defaultArkClassName="_DEFAULT_ARK_CLASS";t.judgeNotNullStmt=e=>`${e} !== undefined && ${e} !== null`;t.transformFnName=e=>`${e}TransformFn`},1236:(e,t)=>{"use strict";t.S=function(e){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})},t.z=function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if("function"!=typeof t)return e.apply(this,arguments);e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},9907:e=>{"use strict";e.exports=require("cluster")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},9896:e=>{"use strict";e.exports=require("fs")},264:e=>{"use strict";e.exports=require("inspector")},9278:e=>{"use strict";e.exports=require("net")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},1455:e=>{"use strict";e.exports=require("node:fs/promises")},6760:e=>{"use strict";e.exports=require("node:path")},7075:e=>{"use strict";e.exports=require("node:stream")},6193:e=>{"use strict";e.exports=require("node:string_decoder")},3136:e=>{"use strict";e.exports=require("node:url")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2987:e=>{"use strict";e.exports=require("perf_hooks")},2203:e=>{"use strict";e.exports=require("stream")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},7035:(e,t)=>{"use strict";const{parse:r,stringify:n}=JSON,{keys:i}=Object,a=String,o="string",s={},c="object",l=(e,t)=>t,u=e=>e instanceof a?a(e):e,d=(e,t)=>typeof t===o?new a(t):t,p=(e,t,r,n)=>{const o=[];for(let l=i(r),{length:u}=l,d=0;d{const n=a(t.push(r)-1);return e.set(r,n),n},f=(e,t)=>{const n=r(e,d).map(u),i=n[0],a=t||l,o=typeof i===c&&i?p(n,new Set,i,a):i;return a.call({"":o},"",o)};t.parse=f;const g=(e,t,r)=>{const i=t&&typeof t===c?(e,r)=>""===e||-1r(g(e));t.fromJSON=e=>f(n(e))},3876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;const n=r(8722),i=r(3136),a=r(8576),o=r(4478),s=r(3984),c="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class l{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,i.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=!1!==t.includeChildMatches,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map((e=>e.replace(/\\/g,"/")))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map((e=>e.includes("/")?e:`./**/${e}`))}if(this.pattern=e,this.platform=t.platform||c,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const e="win32"===t.platform?a.PathScurryWin32:"darwin"===t.platform?a.PathScurryDarwin:t.platform?a.PathScurryPosix:a.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,s={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},l=this.pattern.map((e=>new n.Minimatch(e,s))),[u,d]=l.reduce(((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e)),[[],[]]);this.patterns=u.map(((e,t)=>{const r=d[t];if(!r)throw new Error("invalid pattern object");return new o.Pattern(e,r,0,this.platform)}))}async walk(){return[...await new s.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new s.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new s.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new s.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=l},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;const n=r(8722);t.hasMagic=(e,t={})=>{Array.isArray(e)||(e=[e]);for(const r of e)if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;const n=r(8722),i=r(4478),a="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:i,platform:o=a}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const t of e)this.add(t)}add(e){const t=new n.Minimatch(e,this.mmopts);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.Ignore=t.hasMagic=t.Glob=t.unescape=t.escape=void 0,t.globStreamSync=u,t.globStream=d,t.globSync=p,t.globIterateSync=f,t.globIterate=g;const n=r(8722),i=r(3876),a=r(3046);var o=r(8722);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return o.unescape}});var s=r(3876);Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return s.Glob}});var c=r(3046);Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return c.hasMagic}});var l=r(7972);function u(e,t={}){return new i.Glob(e,t).streamSync()}function d(e,t={}){return new i.Glob(e,t).stream()}function p(e,t={}){return new i.Glob(e,t).walkSync()}async function _(e,t={}){return new i.Glob(e,t).walk()}function f(e,t={}){return new i.Glob(e,t).iterateSync()}function g(e,t={}){return new i.Glob(e,t).iterate()}Object.defineProperty(t,"Ignore",{enumerable:!0,get:function(){return l.Ignore}}),t.streamSync=u,t.stream=Object.assign(d,{sync:u}),t.iterateSync=f,t.iterate=Object.assign(g,{sync:f}),t.sync=Object.assign(p,{stream:u,iterate:f}),t.glob=Object.assign(_,{glob:_,globSync:p,sync:t.sync,globStream:d,stream:t.stream,globStreamSync:u,streamSync:t.streamSync,globIterate:g,iterate:t.iterate,globIterateSync:f,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:a.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},4478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;const n=r(8722);class i{#e;#t;#r;length;#n;#i;#a;#o;#s;#c;#l=!0;constructor(e,t,r,n){if(!(e.length>=1))throw new TypeError("empty pattern list");if(!(t.length>=1))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#r=r,this.#n=n,0===this.#r)if(this.isUNC()){const[e,t,r,n,...i]=this.#e,[a,o,s,c,...l]=this.#t;""===i[0]&&(i.shift(),l.shift());const u=[e,t,r,n,""].join("/"),d=[a,o,s,c,""].join("/");this.#e=[u,...i],this.#t=[d,...l],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#e,[r,...n]=this.#t;""===t[0]&&(t.shift(),n.shift());const i=e+"/",a=r+"/";this.#e=[i,...t],this.#t=[a,...n],this.length=this.#e.length}}pattern(){return this.#e[this.#r]}isString(){return"string"==typeof this.#e[this.#r]}isGlobstar(){return this.#e[this.#r]===n.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#a=this.#a||(0===this.#r?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#e,this.#t,this.#r+1,this.#n),this.#i.#c=this.#c,this.#i.#s=this.#s,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){const e=this.#e;return void 0!==this.#s?this.#s:this.#s="win32"===this.#n&&0===this.#r&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){const e=this.#e;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#e;return void 0!==this.#c?this.#c:this.#c=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#e[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#r?e:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#l)&&(this.#l=!1,!0)}}t.Pattern=i},800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const n=r(8722);class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class a{store=new Map;add(e,t,r){const n=(t?2:0)|(r?1:0),i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(2&t),!!(1&t)]))}}t.MatchRecord=a;class o{store=new Map;add(e,t){if(!e.canReaddir())return;const r=this.store.get(e);r?r.find((e=>e.globString()===t.globString()))||r.push(t):this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=o;class s{hasWalkedCache;matches=new a;subwalks=new o;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root(),i=t.isAbsolute()&&!1!==this.opts.absolute;if(r){e=e.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=t.rest();if(!n){this.matches.add(e,!0,!1);continue}t=n}if(e.isENOENT())continue;let a,o,s=!1;for(;"string"==typeof(a=t.pattern())&&(o=t.rest());){const r=e.resolve(a);e=r,t=o,s=!0}if(a=t.pattern(),o=t.rest(),s){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if("string"!=typeof a)if(a===n.GLOBSTAR){(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar())&&this.subwalks.add(e,t);const r=o?.pattern(),n=o?.rest();if(o&&(""!==r&&"."!==r||n)){if(".."===r){const t=e.parent||e;n?this.hasWalkedCache.hasWalked(t,n)||this.subwalks.add(t,n):this.matches.add(t,i,!0)}}else this.matches.add(e,i,""===r||"."===r)}else a instanceof RegExp&&this.subwalks.add(e,t);else{const t=".."===a||""===a||"."===a;this.matches.add(e.resolve(a),i,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new s(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e),i=this.child();for(const e of t)for(const t of r){const r=t.isAbsolute(),a=t.pattern(),o=t.rest();a===n.GLOBSTAR?i.testGlobstar(e,t,o,r):a instanceof RegExp?i.testRegExp(e,a,o,r):i.testString(e,a,o,r)}return i}testGlobstar(e,t,r,n){if(!this.dot&&e.name.startsWith(".")||(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){const t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){const t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=s},3984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const n=r(5420),i=r(7972),a=r(800);class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#u=[];#d;#p;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#p=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,(r.ignore||!this.includeChildMatches)&&(this.#d=((e,t)=>"string"==typeof e?new i.Ignore([e],t):Array.isArray(e)?new i.Ignore(e,t):e)(r.ignore??[],r),!this.includeChildMatches&&"function"!=typeof this.#d.add)){throw new Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#u.length=0})))}#_(e){return this.seen.has(e)||!!this.#d?.ignored?.(e)}#f(e){return!!this.#d?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let e;for(this.paused=!1;!this.paused&&(e=this.#u.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#u.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=await n.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return!e||!(this.maxDepth===1/0||e.depth()<=this.maxDepth)||t&&!e.canReaddir()||this.opts.nodir&&e.isDirectory()||this.opts.nodir&&this.opts.follow&&e.isSymbolicLink()&&e.realpathCached()?.isDirectory()||this.#_(e)?void 0:e}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=n.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#_(e))return;if(!this.includeChildMatches&&this.#d?.add){const t=`${e.relativePosix()}/**`;this.#d.add(t)}const r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);const n=this.opts.mark&&e.isDirectory()?this.#p:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{const t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#p)?"."+this.#p:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){const n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){const n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new a.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#f(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(e,t,r,n)));r.processPatterns(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||(i++,this.match(e,t,n).then((()=>a())));for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,a):e.readdirCB(((t,n)=>this.walkCB3(e,n,r,a)),!0)}a()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||(i++,this.match(e,t,n).then((()=>a())));for(const[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),a);a()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new a.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#f(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(e,t,r,n)));r.processPatterns(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||this.matchSync(e,t,n);for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,a)}a()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||this.matchSync(e,t,n);for(const[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),a);a()}}t.GlobUtil=o;t.GlobWalker=class extends o{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};t.GlobStream=class extends o{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){const e=this.path;return e.isUnknown()?e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))})):this.walkCB(e,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},9096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},a=(e,t,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let o=globalThis.AbortController,s=globalThis.AbortSignal;if(void 0===o){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},o=class{constructor(){t()}signal=new s;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,a("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>c(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?u:null:null;class u extends Array{constructor(e){super(e),this.fill(0)}}class d{heap;length;static#g=!1;static create(e){const t=l(e);if(!t)return[];d.#g=!0;const r=new d(e,t);return d.#g=!1,r}constructor(e,t){if(!d.#g)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class p{#m;#h;#y;#v;#b;#x;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#D;#S;#T;#C;#E;#k;#A;#N;#F;#w;#P;#I;#O;#M;#L;#R;#B;static unsafeExposeInternals(e){return{starts:e.#O,ttls:e.#M,sizes:e.#I,keyMap:e.#T,keyList:e.#C,valList:e.#E,next:e.#k,prev:e.#A,get head(){return e.#N},get tail(){return e.#F},free:e.#w,isBackgroundFetch:t=>e.#j(t),backgroundFetch:(t,r,n,i)=>e.#J(t,r,n,i),moveToTail:t=>e.#U(t),indexes:t=>e.#z(t),rindexes:t=>e.#V(t),isStale:t=>e.#K(t)}}get max(){return this.#m}get maxSize(){return this.#h}get calculatedSize(){return this.#S}get size(){return this.#D}get fetchMethod(){return this.#b}get memoMethod(){return this.#x}get dispose(){return this.#y}get disposeAfter(){return this.#v}constructor(e){const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:u,allowStale:_,dispose:f,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:h,maxSize:y=0,maxEntrySize:v=0,sizeCalculation:b,fetchMethod:x,memoMethod:D,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:T,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:E,ignoreFetchAbort:k}=e;if(0!==t&&!c(t))throw new TypeError("max option must be a nonnegative integer");const A=t?l(t):Array;if(!A)throw new Error("invalid max value: "+t);if(this.#m=t,this.#h=y,this.maxEntrySize=v||this.#h,this.sizeCalculation=b,this.sizeCalculation){if(!this.#h&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==D&&"function"!=typeof D)throw new TypeError("memoMethod must be a function if defined");if(this.#x=D,void 0!==x&&"function"!=typeof x)throw new TypeError("fetchMethod must be a function if specified");if(this.#b=x,this.#R=!!x,this.#T=new Map,this.#C=new Array(t).fill(void 0),this.#E=new Array(t).fill(void 0),this.#k=new A(t),this.#A=new A(t),this.#N=0,this.#F=0,this.#w=d.create(t),this.#D=0,this.#S=0,"function"==typeof f&&(this.#y=f),"function"==typeof g?(this.#v=g,this.#P=[]):(this.#v=void 0,this.#P=void 0),this.#L=!!this.#y,this.#B=!!this.#v,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#h&&!c(this.#h))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#W()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!T,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!u,this.ttlResolution=c(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#q()}if(0===this.#m&&0===this.ttl&&0===this.#h)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#m&&!this.#h){const e="LRU_CACHE_UNBOUNDED";if((e=>!n.has(e))(e)){n.add(e);a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,p)}}}getRemainingTTL(e){return this.#T.has(e)?1/0:0}#q(){const e=new u(this.#m),t=new u(this.#m);this.#M=e,this.#O=t,this.#$=(n,i,a=r.now())=>{if(t[n]=0!==i?a:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout((()=>{this.#K(n)&&this.#G(this.#C[n],"expire")}),i+1);e.unref&&e.unref()}},this.#H=n=>{t[n]=0!==e[n]?r.now():0},this.#Q=(r,a)=>{if(e[a]){const o=e[a],s=t[a];if(!o||!s)return;r.ttl=o,r.start=s,r.now=n||i();const c=r.now-s;r.remainingTTL=o-c}};let n=0;const i=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const a=this.#T.get(r);if(void 0===a)return 0;const o=e[a],s=t[a];if(!o||!s)return 1/0;return o-((n||i())-s)},this.#K=r=>{const a=t[r],o=e[r];return!!o&&!!a&&(n||i())-a>o}}#H=()=>{};#Q=()=>{};#$=()=>{};#K=()=>!1;#W(){const e=new u(this.#m);this.#S=0,this.#I=e,this.#X=t=>{this.#S-=e[t],e[t]=0},this.#Y=(e,t,r,n)=>{if(this.#j(t))return 0;if(!c(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!c(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#Z=(t,r,n)=>{if(e[t]=r,this.#h){const r=this.#h-e[t];for(;this.#S>r;)this.#ee(!0)}this.#S+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#S)}}#X=e=>{};#Z=(e,t,r)=>{};#Y=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#z({allowStale:e=this.allowStale}={}){if(this.#D)for(let t=this.#F;this.#te(t)&&(!e&&this.#K(t)||(yield t),t!==this.#N);)t=this.#A[t]}*#V({allowStale:e=this.allowStale}={}){if(this.#D)for(let t=this.#N;this.#te(t)&&(!e&&this.#K(t)||(yield t),t!==this.#F);)t=this.#k[t]}#te(e){return void 0!==e&&this.#T.get(this.#C[e])===e}*entries(){for(const e of this.#z())void 0===this.#E[e]||void 0===this.#C[e]||this.#j(this.#E[e])||(yield[this.#C[e],this.#E[e]])}*rentries(){for(const e of this.#V())void 0===this.#E[e]||void 0===this.#C[e]||this.#j(this.#E[e])||(yield[this.#C[e],this.#E[e]])}*keys(){for(const e of this.#z()){const t=this.#C[e];void 0===t||this.#j(this.#E[e])||(yield t)}}*rkeys(){for(const e of this.#V()){const t=this.#C[e];void 0===t||this.#j(this.#E[e])||(yield t)}}*values(){for(const e of this.#z()){void 0===this.#E[e]||this.#j(this.#E[e])||(yield this.#E[e])}}*rvalues(){for(const e of this.#V()){void 0===this.#E[e]||this.#j(this.#E[e])||(yield this.#E[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#z()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.#C[r],this))return this.get(this.#C[r],t)}}forEach(e,t=this){for(const r of this.#z()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#C[r],this)}}rforEach(e,t=this){for(const r of this.#V()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#C[r],this)}}purgeStale(){let e=!1;for(const t of this.#V({allowStale:!0}))this.#K(t)&&(this.#G(this.#C[t],"expire"),e=!0);return e}info(e){const t=this.#T.get(e);if(void 0===t)return;const n=this.#E[t],i=this.#j(n)?n.__staleWhileFetching:n;if(void 0===i)return;const a={value:i};if(this.#M&&this.#O){const e=this.#M[t],n=this.#O[t];if(e&&n){const t=e-(r.now()-n);a.ttl=t,a.start=Date.now()}}return this.#I&&(a.size=this.#I[t]),a}dump(){const e=[];for(const t of this.#z({allowStale:!0})){const n=this.#C[t],i=this.#E[t],a=this.#j(i)?i.__staleWhileFetching:i;if(void 0===a||void 0===n)continue;const o={value:a};if(this.#M&&this.#O){o.ttl=this.#M[t];const e=r.now()-this.#O[t];o.start=Math.floor(Date.now()-e)}this.#I&&(o.size=this.#I[t]),e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:s}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const l=this.#Y(e,t,r.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#G(e,"set"),this;let u=0===this.#D?void 0:this.#T.get(e);if(void 0===u)u=0===this.#D?this.#F:0!==this.#w.length?this.#w.pop():this.#D===this.#m?this.#ee(!1):this.#D,this.#C[u]=e,this.#E[u]=t,this.#T.set(e,u),this.#k[this.#F]=u,this.#A[u]=this.#F,this.#F=u,this.#D++,this.#Z(u,l,s),s&&(s.set="add"),c=!1;else{this.#U(u);const r=this.#E[u];if(t!==r){if(this.#R&&this.#j(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||a||(this.#L&&this.#y?.(t,e,"set"),this.#B&&this.#P?.push([t,e,"set"]))}else a||(this.#L&&this.#y?.(r,e,"set"),this.#B&&this.#P?.push([r,e,"set"]));if(this.#X(u),this.#Z(u,l,s),this.#E[u]=t,s){s.set="replace";const e=r&&this.#j(r)?r.__staleWhileFetching:r;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0===n||this.#M||this.#q(),this.#M&&(c||this.#$(u,n,i),s&&this.#Q(s,u)),!a&&this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}return this}pop(){try{for(;this.#D;){const e=this.#E[this.#N];if(this.#ee(!0),this.#j(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}}}#ee(e){const t=this.#N,r=this.#C[t],n=this.#E[t];return this.#R&&this.#j(n)?n.__abortController.abort(new Error("evicted")):(this.#L||this.#B)&&(this.#L&&this.#y?.(n,r,"evict"),this.#B&&this.#P?.push([n,r,"evict"])),this.#X(t),e&&(this.#C[t]=void 0,this.#E[t]=void 0,this.#w.push(t)),1===this.#D?(this.#N=this.#F=0,this.#w.length=0):this.#N=this.#k[t],this.#T.delete(r),this.#D--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,i=this.#T.get(e);if(void 0!==i){const e=this.#E[i];if(this.#j(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#K(i))return r&&this.#H(i),n&&(n.has="hit",this.#Q(n,i)),!0;n&&(n.has="stale",this.#Q(n,i))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#T.get(e);if(void 0===n||!r&&this.#K(n))return;const i=this.#E[n];return this.#j(i)?i.__staleWhileFetching:i}#J(e,t,r,n){const i=void 0===t?void 0:this.#E[t];if(this.#j(i))return i;const a=new o,{signal:s}=r;s?.addEventListener("abort",(()=>a.abort(s.reason)),{signal:a.signal});const c={signal:a.signal,options:r,context:n},l=(n,i=!1)=>{const{aborted:o}=a.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!i?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!s&&!i)return u(a.signal.reason);const l=d;return this.#E[t]===d&&(void 0===n?l.__staleWhileFetching?this.#E[t]=l.__staleWhileFetching:this.#G(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,c.options))),n},u=n=>{const{aborted:i}=a.signal,o=i&&r.allowStaleOnFetchAbort,s=o||r.allowStaleOnFetchRejection,c=s||r.noDeleteOnFetchRejection,l=d;if(this.#E[t]===d){!c||void 0===l.__staleWhileFetching?this.#G(e,"fetch"):o||(this.#E[t]=l.__staleWhileFetching)}if(s)return r.status&&void 0!==l.__staleWhileFetching&&(r.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw n};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(((t,n)=>{const o=this.#b?.(e,i,c);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),n),a.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))}))})).then(l,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),u(e)))),p=Object.assign(d,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,p,{...c.options,status:void 0}),t=this.#T.get(e)):this.#E[t]=p,p}#j(e){if(!this.#R)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof o}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:f,forceRefresh:g=!1,status:m,signal:h}=t;if(!this.#R)return m&&(m.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:m});const y={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:_,ignoreFetchAbort:p,status:m,signal:h};let v=this.#T.get(e);if(void 0===v){m&&(m.fetch="miss");const t=this.#J(e,v,y,f);return t.__returned=t}{const t=this.#E[v];if(this.#j(t)){const e=r&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const i=this.#K(v);if(!g&&!i)return m&&(m.fetch="hit"),this.#U(v),n&&this.#H(v),m&&this.#Q(m,v),t;const a=this.#J(e,v,y,f),o=void 0!==a.__staleWhileFetching&&r;return m&&(m.fetch=i?"stale":"refresh",o&&i&&(m.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#x;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...a}=t,o=this.get(e,a);if(!i&&void 0!==o)return o;const s=r(e,o,{options:a,context:n});return this.set(e,s,a),s}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#T.get(e);if(void 0!==o){const t=this.#E[o],s=this.#j(t);return a&&this.#Q(a,o),this.#K(o)?(a&&(a.get="stale"),s?(a&&r&&void 0!==t.__staleWhileFetching&&(a.returnedStale=!0),r?t.__staleWhileFetching:void 0):(i||this.#G(e,"expire"),a&&r&&(a.returnedStale=!0),r?t:void 0)):(a&&(a.get="hit"),s?t.__staleWhileFetching:(this.#U(o),n&&this.#H(o),t))}a&&(a.get="miss")}#re(e,t){this.#A[t]=e,this.#k[e]=t}#U(e){e!==this.#F&&(e===this.#N?this.#N=this.#k[e]:this.#re(this.#A[e],this.#k[e]),this.#re(this.#F,e),this.#F=e)}delete(e){return this.#G(e,"delete")}#G(e,t){let r=!1;if(0!==this.#D){const n=this.#T.get(e);if(void 0!==n)if(r=!0,1===this.#D)this.#ne(t);else{this.#X(n);const r=this.#E[n];if(this.#j(r)?r.__abortController.abort(new Error("deleted")):(this.#L||this.#B)&&(this.#L&&this.#y?.(r,e,t),this.#B&&this.#P?.push([r,e,t])),this.#T.delete(e),this.#C[n]=void 0,this.#E[n]=void 0,n===this.#F)this.#F=this.#A[n];else if(n===this.#N)this.#N=this.#k[n];else{const e=this.#A[n];this.#k[e]=this.#k[n];const t=this.#k[n];this.#A[t]=this.#A[n]}this.#D--,this.#w.push(n)}}if(this.#B&&this.#P?.length){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}return r}clear(){return this.#ne("delete")}#ne(e){for(const t of this.#V({allowStale:!0})){const r=this.#E[t];if(this.#j(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#C[t];this.#L&&this.#y?.(r,n,e),this.#B&&this.#P?.push([r,n,e])}}if(this.#T.clear(),this.#E.fill(void 0),this.#C.fill(void 0),this.#M&&this.#O&&(this.#M.fill(0),this.#O.fill(0)),this.#I&&this.#I.fill(0),this.#N=0,this.#F=0,this.#w.length=0,this.#S=0,this.#D=0,this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}}}t.LRUCache=p},9274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;t.assertValidPattern=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")}},1674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;const n=r(3843),i=r(4116),a=new Set(["!","?","+","*","@"]),o=e=>a.has(e),s="(?!\\.)",c=new Set(["[","."]),l=new Set(["..","."]),u=new Set("().*{}+?[]^$\\!"),d="[^/]",p=d+"*?",_=d+"+?";class f{type;#ie;#ae;#oe=!1;#se=[];#ce;#le;#ue;#de=!1;#pe;#_e;#fe=!1;constructor(e,t,r={}){this.type=e,e&&(this.#ae=!0),this.#ce=t,this.#ie=this.#ce?this.#ce.#ie:this,this.#pe=this.#ie===this?r:this.#ie.#pe,this.#ue=this.#ie===this?[]:this.#ie.#ue,"!"!==e||this.#ie.#de||this.#ue.push(this),this.#le=this.#ce?this.#ce.#se.length:0}get hasMagic(){if(void 0!==this.#ae)return this.#ae;for(const e of this.#se)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#ae=!0;return this.#ae}toString(){return void 0!==this.#_e?this.#_e:this.type?this.#_e=this.type+"("+this.#se.map((e=>String(e))).join("|")+")":this.#_e=this.#se.map((e=>String(e))).join("")}#ge(){if(this!==this.#ie)throw new Error("should only call on root");if(this.#de)return this;let e;for(this.toString(),this.#de=!0;e=this.#ue.pop();){if("!"!==e.type)continue;let t=e,r=t.#ce;for(;r;){for(let n=t.#le+1;!r.type&&n"string"==typeof e?e:e.toJSON())):[this.type,...this.#se.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#ie||this.#ie.#de&&"!"===this.#ce?.type)&&e.push({}),e}isStart(){if(this.#ie===this)return!0;if(!this.#ce?.isStart())return!1;if(0===this.#le)return!0;const e=this.#ce;for(let t=0;t{const[n,i,a,o]="string"==typeof t?f.#he(t,this.#ae,r):t.toRegExpSource(e);return this.#ae=this.#ae||a,this.#oe=this.#oe||o,n})).join("");let a="";if(this.isStart()&&"string"==typeof this.#se[0]){if(!(1===this.#se.length&&l.has(this.#se[0]))){const r=c,i=t&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),o=!t&&!e&&r.has(n.charAt(0));a=i?"(?!(?:^|/)\\.\\.?(?:$|/))":o?s:""}}let o="";this.isEnd()&&this.#ie.#de&&"!"===this.#ce?.type&&(o="(?:$|\\/)");return[a+n+o,(0,i.unescape)(n),this.#ae=!!this.#ae,this.#oe]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let a=this.#ye(t);if(this.isStart()&&this.isEnd()&&!a&&"!"!==this.type){const e=this.toString();return this.#se=[e],this.type=null,this.#ae=void 0,[e,(0,i.unescape)(this.toString()),!1,!1]}let o=!r||e||t?"":this.#ye(!0);o===a&&(o=""),o&&(a=`(?:${a})(?:${o})*?`);let u="";if("!"===this.type&&this.#fe)u=(this.isStart()&&!t?s:"")+_;else{u=n+a+("!"===this.type?"))"+(!this.isStart()||t||e?"":s)+p+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`)}return[u,(0,i.unescape)(a),this.#ae=!!this.#ae,this.#oe]}#ye(e){return this.#se.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[r,n,i,a]=t.toRegExpSource(e);return this.#oe=this.#oe||a,r})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#he(e,t,r=!1){let a=!1,o="",s=!1;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=e=>e.replace(/[[\]\\-]/g,"\\$&"),i=e=>e.join("");t.parseClass=(e,t)=>{const a=t;if("["!==e.charAt(a))throw new Error("not in a brace expression");const o=[],s=[];let c=a+1,l=!1,u=!1,d=!1,p=!1,_=a,f="";e:for(;cf?o.push(n(f)+"-"+n(t)):t===f&&o.push(n(t)),f="",c++):e.startsWith("-]",c+1)?(o.push(n(t+"-")),c+=2):e.startsWith("-",c+1)?(f=t,c+=2):(o.push(n(t)),c++)}else d=!0,c++}else p=!0,c++}if(_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0;t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},8722:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const i=n(r(8928)),a=r(9274),o=r(1674),s=r(2363),c=r(4116);t.minimatch=(e,t,r={})=>((0,a.assertValidPattern)(t),!(!r.nocomment&&"#"===t.charAt(0))&&new O(t,r).match(e));const l=/^\*+([^+@!?\*\[\(]*)$/,u=e=>t=>!t.startsWith(".")&&t.endsWith(e),d=e=>t=>t.endsWith(e),p=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),_=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),f=/^\*+\.\*+$/,g=e=>!e.startsWith(".")&&e.includes("."),m=e=>"."!==e&&".."!==e&&e.includes("."),h=/^\.\*+$/,y=e=>"."!==e&&".."!==e&&e.startsWith("."),v=/^\*+$/,b=e=>0!==e.length&&!e.startsWith("."),x=e=>0!==e.length&&"."!==e&&".."!==e,D=/^\?+([^+@!?\*\[\(]*)?$/,S=([e,t=""])=>{const r=k([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},T=([e,t=""])=>{const r=A([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},C=([e,t=""])=>{const r=A([e]);return t?e=>r(e)&&e.endsWith(t):r},E=([e,t=""])=>{const r=k([e]);return t?e=>r(e)&&e.endsWith(t):r},k=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},A=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},N="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",F={sep:"\\"},w={sep:"/"};t.sep="win32"===N?F.sep:w.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;const P=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const r=t.minimatch;return Object.assign(((t,n,i={})=>r(t,n,P(e,i))),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,P(e,r))}static defaults(t){return r.defaults(P(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,P(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,P(e,n))}},unescape:(t,n={})=>r.unescape(t,P(e,n)),escape:(t,n={})=>r.escape(t,P(e,n)),filter:(t,n={})=>r.filter(t,P(e,n)),defaults:t=>r.defaults(P(e,t)),makeRe:(t,n={})=>r.makeRe(t,P(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,P(e,n)),match:(t,n,i={})=>r.match(t,n,P(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults;t.braceExpand=(e,t={})=>((0,a.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,i.default)(e)),t.minimatch.braceExpand=t.braceExpand;t.makeRe=(e,t={})=>new O(e,t).makeRe(),t.minimatch.makeRe=t.makeRe;t.match=(e,t,r={})=>{const n=new O(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;const I=/[?*]|[+@!]\(.*?\)|\[|\]/;class O{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,a.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||N,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&I.test(e[2])||I.test(e[3])),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(r)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,n),this.set=n.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const r=e[e.length-1];return"**"===t&&"**"===r?e:".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;rn&&r.splice(n+1,i-n);let a=r[n+1];const o=r[n+2],s=r[n+3];if(".."!==a)continue;if(!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,r.splice(n,1);const c=r.slice(0);c[n]="**",e.push(c),n--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length))}partsMatch(e,t,r=!1){let n=0,i=0,a=[],o="";for(;na?r=r.slice(o):a>o&&(e=e.slice(a)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var o=0,s=0,c=e.length,l=r.length;o>> no match, partial?",e,p,r,_),p!==c))}let a;if("string"==typeof u?(a=d===u,this.debug("string match",u,d,a)):(a=u.test(d),this.debug("pattern match",u,d,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return n;if(s===l)return o===c-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,a.assertValidPattern)(e);const r=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let n,i=null;(n=e.match(v))?i=r.dot?x:b:(n=e.match(l))?i=(r.nocase?r.dot?_:p:r.dot?d:u)(n[1]):(n=e.match(D))?i=(r.nocase?r.dot?T:S:r.dot?C:E)(n):(n=e.match(f))?i=r.dot?m:g:(n=e.match(h))&&(i=y);const s=o.AST.fromGlob(e,this.options).toMMPattern();return i&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let a=e.map((e=>{const r=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));return r.forEach(((e,i)=>{const a=r[i+1],o=r[i-1];e===t.GLOBSTAR&&o!==t.GLOBSTAR&&(void 0===o?void 0!==a&&a!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+a:r[i]=n:void 0===a?r[i-1]=o+"(?:\\/|"+n+")?":a!==t.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+a,r[i+1]=t.GLOBSTAR))})),r.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[o,s]=e.length>1?["(?:",")"]:["",""];a="^"+o+a+s+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const n=this.slashSplit(e);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let a=n[n.length-1];if(!a)for(let e=n.length-2;!a&&e>=0;e--)a=n[e];for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0;t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},5420:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Minipass=t.isWritable=t.isReadable=t.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},a=r(8474),o=n(r(7075)),s=r(6193);t.isStream=e=>!!e&&"object"==typeof e&&(e instanceof V||e instanceof o.default||(0,t.isReadable)(e)||(0,t.isWritable)(e));t.isReadable=e=>!!e&&"object"==typeof e&&e instanceof a.EventEmitter&&"function"==typeof e.pipe&&e.pipe!==o.default.Writable.prototype.pipe;t.isWritable=e=>!!e&&"object"==typeof e&&e instanceof a.EventEmitter&&"function"==typeof e.write&&"function"==typeof e.end;const c=Symbol("EOF"),l=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),d=Symbol("emittingEnd"),p=Symbol("emittedError"),_=Symbol("closed"),f=Symbol("read"),g=Symbol("flush"),m=Symbol("flushChunk"),h=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),b=Symbol("paused"),x=Symbol("resume"),D=Symbol("buffer"),S=Symbol("pipes"),T=Symbol("bufferLength"),C=Symbol("bufferPush"),E=Symbol("bufferShift"),k=Symbol("objectMode"),A=Symbol("destroyed"),N=Symbol("error"),F=Symbol("emitData"),w=Symbol("emitEnd"),P=Symbol("emitEnd2"),I=Symbol("async"),O=Symbol("abort"),M=Symbol("aborted"),L=Symbol("signal"),R=Symbol("dataListeners"),B=Symbol("discarded"),j=e=>Promise.resolve().then(e),J=e=>e();class U{src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[x](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class z extends U{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class V extends a.EventEmitter{[v]=!1;[b]=!1;[S]=[];[D]=[];[k];[h];[I];[y];[c]=!1;[u]=!1;[d]=!1;[_]=!1;[p]=null;[T]=0;[A]=!1;[L];[M]=!1;[R]=0;[B]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[k]=!0,this[h]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[h]=t.encoding,this[k]=!1):(this[k]=!1,this[h]=null),this[I]=!!t.async,this[y]=this[h]?new s.StringDecoder(this[h]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[D]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[S]});const{signal:r}=t;r&&(this[L]=r,r.aborted?this[O]():r.addEventListener("abort",(()=>this[O]())))}get bufferLength(){return this[T]}get encoding(){return this[h]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[k]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[I]}set async(e){this[I]=this[I]||!!e}[O](){this[M]=!0,this.emit("abort",this[L]?.reason),this.destroy(this[L]?.reason)}get aborted(){return this[M]}set aborted(e){}write(e,t,r){if(this[M])return!1;if(this[c])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(r=t,t="utf8"),t||(t="utf8");const n=this[I]?j:J;if(!this[k]&&!Buffer.isBuffer(e))if(i=e,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[k]?(this[v]&&0!==this[T]&&this[g](!0),this[v]?this.emit("data",e):this[C](e),0!==this[T]&&this.emit("readable"),r&&n(r),this[v]):e.length?("string"!=typeof e||t===this[h]&&!this[y]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[h]&&(e=this[y].write(e)),this[v]&&0!==this[T]&&this[g](!0),this[v]?this.emit("data",e):this[C](e),0!==this[T]&&this.emit("readable"),r&&n(r),this[v]):(0!==this[T]&&this.emit("readable"),r&&n(r),this[v])}read(e){if(this[A])return null;if(this[B]=!1,0===this[T]||0===e||e&&e>this[T])return this[l](),null;this[k]&&(e=null),this[D].length>1&&!this[k]&&(this[D]=[this[h]?this[D].join(""):Buffer.concat(this[D],this[T])]);const t=this[f](e||null,this[D][0]);return this[l](),t}[f](e,t){if(this[k])this[E]();else{const r=t;e===r.length||null===e?this[E]():"string"==typeof r?(this[D][0]=r.slice(e),t=r.slice(0,e),this[T]-=e):(this[D][0]=r.subarray(e),t=r.subarray(0,e),this[T]-=e)}return this.emit("data",t),this[D].length||this[c]||this.emit("drain"),t}end(e,t,r){return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t="utf8"),void 0!==e&&this.write(e,t),r&&this.once("end",r),this[c]=!0,this.writable=!1,!this[v]&&this[b]||this[l](),this}[x](){this[A]||(this[R]||this[S].length||(this[B]=!0),this[b]=!1,this[v]=!0,this.emit("resume"),this[D].length?this[g]():this[c]?this[l]():this.emit("drain"))}resume(){return this[x]()}pause(){this[v]=!1,this[b]=!0,this[B]=!1}get destroyed(){return this[A]}get flowing(){return this[v]}get paused(){return this[b]}[C](e){this[k]?this[T]+=1:this[T]+=e.length,this[D].push(e)}[E](){return this[k]?this[T]-=1:this[T]-=this[D][0].length,this[D].shift()}[g](e=!1){do{}while(this[m](this[E]())&&this[D].length);e||this[D].length||this[c]||this.emit("drain")}[m](e){return this.emit("data",e),this[v]}pipe(e,t){if(this[A])return e;this[B]=!1;const r=this[u];return t=t||{},e===i.stdout||e===i.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[S].push(t.proxyErrors?new z(this,e,t):new U(this,e,t)),this[I]?j((()=>this[x]())):this[x]()),e}unpipe(e){const t=this[S].find((t=>t.dest===e));t&&(1===this[S].length?(this[v]&&0===this[R]&&(this[v]=!1),this[S]=[]):this[S].splice(this[S].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const r=super.on(e,t);if("data"===e)this[B]=!1,this[R]++,this[S].length||this[v]||this[x]();else if("readable"===e&&0!==this[T])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[u])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[p]){const e=t;this[I]?j((()=>e.call(this,this[p]))):e.call(this,this[p])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){const r=super.off(e,t);return"data"===e&&(this[R]=this.listeners("data").length,0!==this[R]||this[B]||this[S].length||(this[v]=!1)),r}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[R]=0,this[B]||this[S].length||(this[v]=!1)),t}get emittedEnd(){return this[u]}[l](){this[d]||this[u]||this[A]||0!==this[D].length||!this[c]||(this[d]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[_]&&this.emit("close"),this[d]=!1)}emit(e,...t){const r=t[0];if("error"!==e&&"close"!==e&&e!==A&&this[A])return!1;if("data"===e)return!(!this[k]&&!r)&&(this[I]?(j((()=>this[F](r))),!0):this[F](r));if("end"===e)return this[w]();if("close"===e){if(this[_]=!0,!this[u]&&!this[A])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[p]=r,super.emit(N,r);const e=!(this[L]&&!this.listeners("error").length)&&super.emit("error",r);return this[l](),e}if("resume"===e){const e=super.emit("resume");return this[l](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const n=super.emit(e,...t);return this[l](),n}[F](e){for(const t of this[S])!1===t.dest.write(e)&&this.pause();const t=!this[B]&&super.emit("data",e);return this[l](),t}[w](){return!this[u]&&(this[u]=!0,this.readable=!1,this[I]?(j((()=>this[P]())),!0):this[P]())}[P](){if(this[y]){const e=this[y].end();if(e){for(const t of this[S])t.dest.write(e);this[B]||super.emit("data",e)}}for(const e of this[S])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[k]||(e.dataLength=0);const t=this.promise();return this.on("data",(t=>{e.push(t),this[k]||(e.dataLength+=t.length)})),await t,e}async concat(){if(this[k])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[h]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(A,(()=>t(new Error("stream destroyed")))),this.on("error",(e=>t(e))),this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[B]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[c])return t();let n,i;const a=e=>{this.off("data",o),this.off("end",s),this.off(A,l),t(),i(e)},o=e=>{this.off("error",a),this.off("end",s),this.off(A,l),this.pause(),n({value:e,done:!!this[c]})},s=()=>{this.off("error",a),this.off("data",o),this.off(A,l),t(),n({done:!0,value:void 0})},l=()=>a(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t,n=e,this.once(A,l),this.once("error",a),this.once("end",s),this.once("data",o)}))},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[B]=!1;let e=!1;const t=()=>(this.pause(),this.off(N,t),this.off(A,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(N,t),this.once(A,t),{next:()=>{if(e)return t();const r=this.read();return null===r?t():{done:!1,value:r}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[A])return e?this.emit("error",e):this.emit(A),this;this[A]=!0,this[B]=!0,this[D].length=0,this[T]=0;return"function"!=typeof this.close||this[_]||this.close(),e?this.emit("error",e):this.emit(A),this}static get isStream(){return t.isStream}}t.Minipass=V},8576:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PathScurry=t.Path=t.PathScurryDarwin=t.PathScurryPosix=t.PathScurryWin32=t.PathScurryBase=t.PathPosix=t.PathWin32=t.PathBase=t.ChildrenCache=t.ResolveCache=void 0;const o=r(9096),s=r(6760),c=r(3136),l=r(9896),u=a(r(3024)),d=l.realpathSync.native,p=r(1455),_=r(5420),f={lstatSync:l.lstatSync,readdir:l.readdir,readdirSync:l.readdirSync,readlinkSync:l.readlinkSync,realpathSync:d,promises:{lstat:p.lstat,readdir:p.readdir,readlink:p.readlink,realpath:p.realpath}},g=e=>e&&e!==f&&e!==u?{...f,...e,promises:{...f.promises,...e.promises||{}}}:f,m=/^\\\\\?\\([a-z]:)\\?$/i,h=/[\\\/]/,y=10,v=15,b=-16,x=128,D=256,S=512,T=e=>e.isFile()?8:e.isDirectory()?4:e.isSymbolicLink()?y:e.isCharacterDevice()?2:e.isBlockDevice()?6:e.isSocket()?12:e.isFIFO()?1:0,C=new Map,E=e=>{const t=C.get(e);if(t)return t;const r=e.normalize("NFKD");return C.set(e,r),r},k=new Map,A=e=>{const t=k.get(e);if(t)return t;const r=E(e.toLowerCase());return k.set(e,r),r};class N extends o.LRUCache{constructor(){super({max:256})}}t.ResolveCache=N;class F extends o.LRUCache{constructor(e=16384){super({maxSize:e,sizeCalculation:e=>e.length+1})}}t.ChildrenCache=F;const w=Symbol("PathScurry setAsCwd");class P{name;root;roots;parent;nocase;isCWD=!1;#ve;#be;get dev(){return this.#be}#xe;get mode(){return this.#xe}#De;get nlink(){return this.#De}#Se;get uid(){return this.#Se}#Te;get gid(){return this.#Te}#Ce;get rdev(){return this.#Ce}#Ee;get blksize(){return this.#Ee}#ke;get ino(){return this.#ke}#D;get size(){return this.#D}#Ae;get blocks(){return this.#Ae}#Ne;get atimeMs(){return this.#Ne}#Fe;get mtimeMs(){return this.#Fe}#we;get ctimeMs(){return this.#we}#Pe;get birthtimeMs(){return this.#Pe}#Ie;get atime(){return this.#Ie}#Oe;get mtime(){return this.#Oe}#Me;get ctime(){return this.#Me}#Le;get birthtime(){return this.#Le}#Re;#Be;#je;#Je;#Ue;#ze;#Ve;#Ke;#We;#qe;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=0,r,n,i,a,o){this.name=e,this.#Re=i?A(e):E(e),this.#Ve=1023&t,this.nocase=i,this.roots=n,this.root=r||this,this.#Ke=a,this.#je=o.fullpath,this.#Ue=o.relative,this.#ze=o.relativePosix,this.parent=o.parent,this.parent?this.#ve=this.parent.#ve:this.#ve=g(o.fs)}depth(){return void 0!==this.#Be?this.#Be:this.parent?this.#Be=this.parent.depth()+1:this.#Be=0}childrenCache(){return this.#Ke}resolve(e){if(!e)return this;const t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#$e(r):this.#$e(r)}#$e(e){let t=this;for(const r of e)t=t.child(r);return t}children(){const e=this.#Ke.get(this);if(e)return e;const t=Object.assign([],{provisional:0});return this.#Ke.set(this,t),this.#Ve&=-17,t}child(e,t){if(""===e||"."===e)return this;if(".."===e)return this.parent||this;const r=this.children(),n=this.nocase?A(e):E(e);for(const e of r)if(e.#Re===n)return e;const i=this.parent?this.sep:"",a=this.#je?this.#je+i+e:void 0,o=this.newChild(e,0,{...t,parent:this,fullpath:a});return this.canReaddir()||(o.#Ve|=x),r.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#Ue)return this.#Ue;const e=this.name,t=this.parent;if(!t)return this.#Ue=this.name;const r=t.relative();return r+(r&&t.parent?this.sep:"")+e}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#ze)return this.#ze;const e=this.name,t=this.parent;if(!t)return this.#ze=this.fullpathPosix();const r=t.relativePosix();return r+(r&&t.parent?"/":"")+e}fullpath(){if(void 0!==this.#je)return this.#je;const e=this.name,t=this.parent;if(!t)return this.#je=this.name;const r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#je=r}fullpathPosix(){if(void 0!==this.#Je)return this.#Je;if("/"===this.sep)return this.#Je=this.fullpath();if(!this.parent){const e=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(e)?this.#Je=`//?/${e}`:this.#Je=e}const e=this.parent,t=e.fullpathPosix(),r=t+(t&&e.parent?"/":"")+this.name;return this.#Je=r}isUnknown(){return!(this.#Ve&v)}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Ve&v)}isDirectory(){return 4==(this.#Ve&v)}isCharacterDevice(){return 2==(this.#Ve&v)}isBlockDevice(){return 6==(this.#Ve&v)}isFIFO(){return 1==(this.#Ve&v)}isSocket(){return 12==(this.#Ve&v)}isSymbolicLink(){return(this.#Ve&y)===y}lstatCached(){return 32&this.#Ve?this:void 0}readlinkCached(){return this.#We}realpathCached(){return this.#qe}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#We)return!0;if(!this.parent)return!1;const e=this.#Ve&v;return!(0!==e&&e!==y||this.#Ve&D||this.#Ve&x)}calledReaddir(){return!!(16&this.#Ve)}isENOENT(){return!!(this.#Ve&x)}isNamed(e){return this.nocase?this.#Re===A(e):this.#Re===E(e)}async readlink(){const e=this.#We;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=await this.#ve.promises.readlink(this.fullpath()),t=(await this.parent.realpath())?.resolve(e);if(t)return this.#We=t}catch(e){return void this.#Ge(e.code)}}readlinkSync(){const e=this.#We;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=this.#ve.readlinkSync(this.fullpath()),t=this.parent.realpathSync()?.resolve(e);if(t)return this.#We=t}catch(e){return void this.#Ge(e.code)}}#He(e){this.#Ve|=16;for(let t=e.provisional;tt(null,e)))}readdirCB(e,t=!1){if(!this.canReaddir())return void(t?e(null,[]):queueMicrotask((()=>e(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(t?e(null,n):queueMicrotask((()=>e(null,n))))}if(this.#st.push(e),this.#ct)return;this.#ct=!0;const n=this.fullpath();this.#ve.readdir(n,{withFileTypes:!0},((e,t)=>{if(e)this.#et(e.code),r.provisional=0;else{for(const e of t)this.#rt(e,r);this.#He(r)}this.#lt(r.slice(0,r.provisional))}))}#ut;async readdir(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();if(this.#ut)await this.#ut;else{let r=()=>{};this.#ut=new Promise((e=>r=e));try{for(const r of await this.#ve.promises.readdir(t,{withFileTypes:!0}))this.#rt(r,e);this.#He(e)}catch(t){this.#et(t.code),e.provisional=0}this.#ut=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();try{for(const r of this.#ve.readdirSync(t,{withFileTypes:!0}))this.#rt(r,e);this.#He(e)}catch(t){this.#et(t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(704&this.#Ve)return!1;const e=v&this.#Ve;return 0===e||4===e||e===y}shouldWalk(e,t){return!(4&~this.#Ve)&&!(704&this.#Ve)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#qe)return this.#qe;if(!(896&this.#Ve))try{const e=await this.#ve.promises.realpath(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Ye()}}realpathSync(){if(this.#qe)return this.#qe;if(!(896&this.#Ve))try{const e=this.#ve.realpathSync(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Ye()}}[w](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;const t=new Set([]);let r=[],n=this;for(;n&&n.parent;)t.add(n),n.#Ue=r.join(this.sep),n.#ze=r.join("/"),n=n.parent,r.push("..");for(n=e;n&&n.parent&&!t.has(n);)n.#Ue=void 0,n.#ze=void 0,n=n.parent}}t.PathBase=P;class I extends P{sep="\\";splitSep=h;constructor(e,t=0,r,n,i,a,o){super(e,t,r,n,i,a,o)}newChild(e,t=0,r={}){return new I(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return s.win32.parse(e).root}getRoot(e){if((e=(e=>e.replace(/\//g,"\\").replace(m,"$1\\"))(e.toUpperCase()))===this.root.name)return this.root;for(const[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new L(e,this).root}sameRoot(e,t=this.root.name){return(e=e.toUpperCase().replace(/\//g,"\\").replace(m,"$1\\"))===t}}t.PathWin32=I;class O extends P{splitSep="/";sep="/";constructor(e,t=0,r,n,i,a,o){super(e,t,r,n,i,a,o)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=0,r={}){return new O(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}}t.PathPosix=O;class M{root;rootPath;roots;cwd;#dt;#pt;#Ke;nocase;#ve;constructor(e=process.cwd(),t,r,{nocase:n,childrenCacheSize:i=16384,fs:a=f}={}){this.#ve=g(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,c.fileURLToPath)(e));const o=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#dt=new N,this.#pt=new N,this.#Ke=new F(i);const s=o.substring(this.rootPath.length).split(r);if(1!==s.length||s[0]||s.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#ve),this.roots[this.rootPath]=this.root;let l=this.root,u=s.length-1;const d=t.sep;let p=this.rootPath,_=!1;for(const e of s){const t=u--;l=l.child(e,{relative:new Array(t).fill("..").join(d),relativePosix:new Array(t).fill("..").join("/"),fullpath:p+=(_?"":d)+e}),_=!0}this.cwd=l}depth(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#Ke}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#dt.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpath();return this.#dt.set(t,n),n}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#pt.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpathPosix();return this.#pt.set(t,n),n}relative(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r}=t;if(e.canReaddir()){const t=await e.readdir();return r?t:t.map((e=>e.name))}return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map((e=>e.name)):[]}async lstat(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=[];i&&!i(e)||o.push(r?e:e.fullpath());const s=new Set,c=(e,t)=>{s.add(e),e.readdirCB(((e,l)=>{if(e)return t(e);let u=l.length;if(!u)return t();const d=()=>{0==--u&&t()};for(const e of l)i&&!i(e)||o.push(r?e:e.fullpath()),n&&e.isSymbolicLink()?e.realpath().then((e=>e?.isUnknown()?e.lstat():e)).then((e=>e?.shouldWalk(s,a)?c(e,d):d())):e.shouldWalk(s,a)?c(e,d):d()}),!0)},l=e;return new Promise(((e,t)=>{c(l,(r=>{if(r)return t(r);e(o)}))}))}walkSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=[];i&&!i(e)||o.push(r?e:e.fullpath());const s=new Set([e]);for(const e of s){const t=e.readdirSync();for(const e of t){i&&!i(e)||o.push(r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&s.add(t)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t;i&&!i(e)||(yield r?e:e.fullpath());const o=new Set([e]);for(const e of o){const t=e.readdirSync();for(const e of t){i&&!i(e)||(yield r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,a)&&o.add(t)}}}stream(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=new _.Minipass({objectMode:!0});i&&!i(e)||o.write(r?e:e.fullpath());const s=new Set,c=[e];let l=0;const u=()=>{let e=!1;for(;!e;){const t=c.shift();if(!t)return void(0===l&&o.end());l++,s.add(t);const d=(t,_,f=!1)=>{if(t)return o.emit("error",t);if(n&&!f){const e=[];for(const t of _)t.isSymbolicLink()&&e.push(t.realpath().then((e=>e?.isUnknown()?e.lstat():e)));if(e.length)return void Promise.all(e).then((()=>d(null,_,!0)))}for(const t of _)!t||i&&!i(t)||o.write(r?t:t.fullpath())||(e=!0);l--;for(const e of _){const t=e.realpathCached()||e;t.shouldWalk(s,a)&&c.push(t)}e&&!o.flowing?o.once("drain",u):p||u()};let p=!0;t.readdirCB(d,!0),p=!1}};return u(),o}streamSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=new _.Minipass({objectMode:!0}),s=new Set;i&&!i(e)||o.write(r?e:e.fullpath());const c=[e];let l=0;const u=()=>{let e=!1;for(;!e;){const t=c.shift();if(!t)return void(0===l&&o.end());l++,s.add(t);const u=t.readdirSync();for(const t of u)i&&!i(t)||o.write(r?t:t.fullpath())||(e=!0);l--;for(const e of u){let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&c.push(t)}}e&&!o.flowing&&o.once("drain",u)};return u(),o}chdir(e=this.cwd){const t=this.cwd;this.cwd="string"==typeof e?this.cwd.resolve(e):e,this.cwd[w](t)}}t.PathScurryBase=M;class L extends M{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,s.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return s.win32.parse(e).root.toUpperCase()}newRoot(e){return new I(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}}t.PathScurryWin32=L;class R extends M{sep="/";constructor(e=process.cwd(),t={}){const{nocase:r=!1}=t;super(e,s.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new O(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}}t.PathScurryPosix=R;class B extends R{constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,{...t,nocase:r})}}t.PathScurryDarwin=B,t.Path="win32"===process.platform?I:O,t.PathScurry="win32"===process.platform?L:"darwin"===process.platform?B:R},9429:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>L});var n={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},i={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let a,o,s,c,l,u,d,p,_;function f(e,t,r){const n=e[t];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(let e=0;e0;){const t=x();if(!i.isHexDigit(t))throw F(D());e+=D()}return String.fromCodePoint(parseInt(e,16))}const k={start(){if("eof"===d.type)throw w();A()},beforePropertyName(){switch(d.type){case"identifier":case"string":return p=d.value,void(o="afterPropertyName");case"punctuator":return void N();case"eof":throw w()}},afterPropertyName(){if("eof"===d.type)throw w();o="beforePropertyValue"},beforePropertyValue(){if("eof"===d.type)throw w();A()},beforeArrayValue(){if("eof"===d.type)throw w();"punctuator"!==d.type||"]"!==d.value?A():N()},afterPropertyValue(){if("eof"===d.type)throw w();switch(d.value){case",":return void(o="beforePropertyName");case"}":N()}},afterArrayValue(){if("eof"===d.type)throw w();switch(d.value){case",":return void(o="beforeArrayValue");case"]":N()}},end(){}};function A(){let e;switch(d.type){case"punctuator":switch(d.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=d.value}if(void 0===_)_=e;else{const t=s[s.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,p,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)s.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=s[s.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function N(){s.pop();const e=s[s.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return O(void 0===e?`JSON5: invalid end of input at ${l}:${u}`:`JSON5: invalid character '${I(e)}' at ${l}:${u}`)}function w(){return O(`JSON5: invalid end of input at ${l}:${u}`)}function P(){return u-=5,O(`JSON5: invalid identifier character at ${l}:${u}`)}function I(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function O(e){const t=new SyntaxError(e);return t.lineNumber=l,t.columnNumber=u,t}const M={parse:function(e,t){a=String(e),o="start",s=[],c=0,l=1,u=0,d=void 0,p=void 0,_=void 0;do{d=b(),k[o]()}while("eof"!==d.type);return"function"==typeof t?f({"":_},"",t):_},stringify:function(e,t,r){const n=[];let a,o,s,c="",l="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){a=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&a.indexOf(t)<0&&a.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),l=" ".substr(0,r)):"string"==typeof r&&(l=r.substr(0,10)),u("",{"":e});function u(e,t){let r=t[e];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(e):"function"==typeof r.toJSON&&(r=r.toJSON(e))),o&&(r=o.call(t,e,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?d(r):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?function(e){if(n.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=c;c+=l;let r,i=[];for(let t=0;t=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=c;c+=l;let r,i=a||Object.keys(e),o=[];for(const t of i){const r=u(t,e);if(void 0!==r){let e=p(t)+":";""!==l&&(e+=" "),e+=r,o.push(e)}}if(0===o.length)r="{}";else{let e;if(""===l)e=o.join(","),r="{"+e+"}";else{let n=",\n"+c;e=o.join(n),r="{\n"+c+e+",\n"+t+"}"}}return n.pop(),c=t,r}(r):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let n="";for(let a=0;at[e]{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n=r(r.s=3044);module.exports=n})(); \ No newline at end of file +***************************************************************************** */var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0;for(var r=0,n=e;r>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.getIterator=function(t){if(t){if(k(t))return _(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r=0;n--){var i=e[n];if(t(i,n))return i}},e.findIndex=function(e,t,r){if(void 0===e)return-1;for(var n=null!=r?r:0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n100&&r>t.length>>1){var i=t.length-r;t.copyWithin(0,r),t.length=i,r=0}return e},isEmpty:n}},e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next:function(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!k(r.value))return{value:r.value};e=_(r.value)}}}}return{has:function(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!k(a))return n(a,e);for(var o=0,s=a;ot?1:0}function R(e,t){return O(e,t)}e.toFileNameLowerCase=P,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function U(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;dr)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function V(e,t){for(var r=t;r=r.length+n.length&&q(t,r)&&z(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;ri&&(i=c.prefix.length,n=s)}return n},e.startsWith=q,e.removePrefix=function(e,t){return q(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),q(r(e),r(t))?e.substring(t.length):void 0},e.isPatternMatch=$,e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(d||(d={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.enableDeprecationWarnings=!0,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function g(e,t,r){null==e&&_(t,r||g)}function m(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a=[],o=t,s=0,c=i;st)break;0!==u&&u&t&&(a.push(d),o&=~u)}if(0===o)return a.join("|")}else for(var p=0,_=i;p<_.length;p++){var f=_[p];u=f[0],d=f[1];if(u===t)return d}return t.toString()}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(D(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= ").concat(r),n||e)},r.assertIsDefined=g,r.checkDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertEachIsDefined=m,r.checkEachDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertNever=h,r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '".concat(v(n),"'.")}),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node ".concat(D(t.kind)," should not have passed test '").concat(v(r),"'.")}),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node ".concat(D(null==t?void 0:t.kind)," was not a '").concat(D(r),"' token.")}),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node ".concat(D(t.kind)," was unexpected'.")}),n||e)},r.type=y,r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(k(t.flags),"; declarations: ").concat(e.map(t.declarations,(function(e){return D(e.kind)}))," }")},r.formatEnum=b;var x=new e.Map;function D(t){return b(t,e.SyntaxKind,!1)}function S(t){return b(t,e.NodeFlags,!0)}function T(t){return b(t,e.ModifierFlags,!0)}function C(t){return b(t,e.TransformFlags,!0)}function E(t){return b(t,e.EmitFlags,!0)}function k(t){return b(t,e.SymbolFlags,!0)}function A(t){return b(t,e.TypeFlags,!0)}function N(t){return b(t,e.SignatureFlags,!0)}function F(t){return b(t,e.ObjectFlags,!0)}function w(t){return b(t,e.FlowFlags,!0)}r.formatSyntaxKind=D,r.formatSnippetKind=function(t){return b(t,e.SnippetKind,!1)},r.formatNodeFlags=S,r.formatModifierFlags=T,r.formatTransformFlags=C,r.formatEmitFlags=E,r.formatSymbolFlags=k,r.formatTypeFlags=A,r.formatSignatureFlags=N,r.formatObjectFlags=F,r.formatFlowFlags=w,r.formatRelationComparisonResult=function(t){return b(t,e.RelationComparisonResult,!0)},r.formatCheckMode=function(t){return b(t,e.CheckMode,!0)},r.formatSignatureCheckMode=function(t){return b(t,e.SignatureCheckMode,!0)},r.formatTypeFacts=function(t){return b(t,e.TypeFacts,!0)};var P,I,O,M=!1;function L(e){return function(){if(j(),!P)throw new Error("Debugging helpers could not be loaded.");return P}().formatControlFlowGraph(e)}function R(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(w(t),")"):"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return L(this)}}})}function B(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function j(){if(!M){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(k(r),")"):"")}},__debugFlags:{get:function(){return k(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(F(r),")"):"")}},__debugFlags:{get:function(){return A(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?F(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return N(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return p?function(e,t,r,n){var i=J(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,c,d,n.message):_?function(e,t,n,i){var a=!1;return function(){r.enableDeprecationWarnings&&!a&&(l.warn(J(e,!1,t,n,i)),a=!0)}}(t,c,d,n.message):e.noop}r.printControlFlowGraph=function(e){return console.log(L(e))},r.formatControlFlowGraph=L,r.attachFlowNodeDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Object.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.attachNodeArrayDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(O||B(O=Object.create(Array.prototype)),Object.setPrototypeOf(e,O)):B(e))},r.enableDebugInfo=j,r.createDeprecation=U,r.deprecate=function(e,t){var r;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(U(null!==(r=null==t?void 0:t.name)&&void 0!==r?r:v(e),t),e)},r.formatVariance=function(e){var t=7&e,r=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?r+=" (unmeasurable)":16&e&&(r+=" (unreliable)"),r};var z=function(){function t(){}return t.prototype.__debugToString=function(){var t;switch(this.kind){case 3:return(null===(t=this.debugInfo)||void 0===t?void 0:t.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,(function(){return"any"})),(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString())})).join(", ");case 2:return e.zipWith(this.sources,this.targets,(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString())})).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return h(this)}},t}();r.DebugTypeMapper=z,r.attachDebugPrototypeIfDebug=function(e){return r.isDebugging?Object.setPrototypeOf(e,z.prototype):e}}(e.Debug||(e.Debug={}))}(d||(d={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,i=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^[a-z0-9-]+$/i,o=/^(0|[1-9]\d*)$/,s=function(){function t(t,r,i,o,s){if(void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),"string"==typeof t){var l=e.Debug.checkDefined(c(t),"Invalid version");t=l.major,r=l.minor,i=l.patch,o=l.prerelease,s=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(r>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch");var u=o?e.isArray(o)?o:o.split("."):e.emptyArray,d=s?e.isArray(s)?s:s.split("."):e.emptyArray;e.Debug.assert(e.every(u,(function(e){return n.test(e)})),"Invalid argument: prerelease"),e.Debug.assert(e.every(d,(function(e){return a.test(e)})),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=u,this.build=d}return t.tryParse=function(e){var r=c(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function g(t){for(var r=[],n=0,i=e.trimString(t).split(u);n=",n.version)),v(i.major)||r.push(v(i.minor)?b("<",i.version.increment("major")):v(i.patch)?b("<",i.version.increment("minor")):b("<=",i.version)),!0)}function y(e,t,r){var n=m(t);if(!n)return!1;var i=n.version,a=n.major,o=n.minor,c=n.patch;if(v(a))"<"!==e&&">"!==e||r.push(b("<",s.zero));else switch(e){case"~":r.push(b(">=",i)),r.push(b("<",i.increment(v(o)?"major":"minor")));break;case"^":r.push(b(">=",i)),r.push(b("<",i.increment(i.major>0||v(o)?"major":i.minor>0||v(c)?"minor":"patch")));break;case"<":case">=":r.push(v(o)||v(c)?b(e,i.with({prerelease:"0"})):b(e,i));break;case"<=":case">":r.push(v(o)?b("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):v(c)?b("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):b(e,i));break;case"=":case void 0:v(o)||v(c)?(r.push(b(">=",i.with({prerelease:"0"}))),r.push(b("<",i.increment(v(o)?"major":"minor").with({prerelease:"0"})))):r.push(b("=",i));break;default:return!1}return!0}function v(e){return"*"===e||"x"===e||"X"===e}function b(e,t){return{operator:e,operand:t}}function x(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function S(t){return e.map(t,T).join(" ")}function T(e){return"".concat(e.operator).concat(e.operand)}}(d||(d={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r(2987),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")},clearMarks:function(e){return a.clearMarks(e)},clearMeasures:function(e){return a.clearMeasures(e)}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,_=l.get(t)||0;l.set(t,_+(d-p)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.forEachMark=function(e){s.forEach((function(t,r){return e(r)}))},t.clearMeasures=function(e){void 0!==e?l.delete(e):l.clear(),null==n||n.clearMeasures(e)},t.clearMarks=function(e){void 0!==e?(c.delete(e),s.delete(e)):(c.clear(),s.clear()),null==n||n.clearMarks(e)},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(d||(d={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r(9953)(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(d||(d={})),function(e){var t;!function(t){var n,i,o,s=0,c=0,l=[],u=[];t.startTracing=function(d,p,_){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r(9896)}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=d,l.length=0,void 0===o&&(o=e.combinePaths(p,"legend.json")),n.existsSync(p)||n.mkdirSync(p,{recursive:!0});var f="build"===i?".".concat(process.pid,"-").concat(++s):"server"===i?".".concat(process.pid):"",g=e.combinePaths(p,"trace".concat(f,".json")),m=e.combinePaths(p,"types".concat(f,".json"));u.push({configFilePath:_,tracePath:g,typesPath:m}),c=n.openSync(g,"w"),e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[a({name:"process_name",args:{name:"tsc"}},h),a({name:"thread_name",args:{name:"Main"}},h),a(a({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?function(t){var r,i,o,s,c,l,d,p,_,f,m,h,y,v,b,x,D,S,T,C,E,k;e.performance.mark("beginDumpTypes");var A=u[u.length-1].typesPath,N=n.openSync(A,"w"),F=new e.Map;n.writeSync(N,"[");for(var w=t.length,P=0;P0),_(d.length-1,1e3*e.timestamp(),t),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)_(r,t);d.length=0};var p=1e4;function _(t,r,n){var i=d[t],o=i.phase,s=i.name,c=i.args,l=i.time;i.separateBeginAndEnd?(e.Debug.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",o,s,c,void 0,r)):p-l%p<=r-l&&f("X",o,s,a(a({},c),{results:n}),'"dur":'.concat(r-l),l)}function f(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function g(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(u))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(d||(d={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.StructKeyword=85]="StructKeyword",e[e.ConstKeyword=86]="ConstKeyword",e[e.ContinueKeyword=87]="ContinueKeyword",e[e.DebuggerKeyword=88]="DebuggerKeyword",e[e.DefaultKeyword=89]="DefaultKeyword",e[e.DeleteKeyword=90]="DeleteKeyword",e[e.DoKeyword=91]="DoKeyword",e[e.ElseKeyword=92]="ElseKeyword",e[e.EnumKeyword=93]="EnumKeyword",e[e.ExportKeyword=94]="ExportKeyword",e[e.ExtendsKeyword=95]="ExtendsKeyword",e[e.FalseKeyword=96]="FalseKeyword",e[e.FinallyKeyword=97]="FinallyKeyword",e[e.ForKeyword=98]="ForKeyword",e[e.FunctionKeyword=99]="FunctionKeyword",e[e.IfKeyword=100]="IfKeyword",e[e.ImportKeyword=101]="ImportKeyword",e[e.InKeyword=102]="InKeyword",e[e.InstanceOfKeyword=103]="InstanceOfKeyword",e[e.NewKeyword=104]="NewKeyword",e[e.NullKeyword=105]="NullKeyword",e[e.ReturnKeyword=106]="ReturnKeyword",e[e.SuperKeyword=107]="SuperKeyword",e[e.SwitchKeyword=108]="SwitchKeyword",e[e.ThisKeyword=109]="ThisKeyword",e[e.ThrowKeyword=110]="ThrowKeyword",e[e.TrueKeyword=111]="TrueKeyword",e[e.TryKeyword=112]="TryKeyword",e[e.TypeOfKeyword=113]="TypeOfKeyword",e[e.VarKeyword=114]="VarKeyword",e[e.VoidKeyword=115]="VoidKeyword",e[e.WhileKeyword=116]="WhileKeyword",e[e.WithKeyword=117]="WithKeyword",e[e.ImplementsKeyword=118]="ImplementsKeyword",e[e.InterfaceKeyword=119]="InterfaceKeyword",e[e.LetKeyword=120]="LetKeyword",e[e.PackageKeyword=121]="PackageKeyword",e[e.PrivateKeyword=122]="PrivateKeyword",e[e.ProtectedKeyword=123]="ProtectedKeyword",e[e.PublicKeyword=124]="PublicKeyword",e[e.StaticKeyword=125]="StaticKeyword",e[e.YieldKeyword=126]="YieldKeyword",e[e.AbstractKeyword=127]="AbstractKeyword",e[e.AccessorKeyword=128]="AccessorKeyword",e[e.AsKeyword=129]="AsKeyword",e[e.AssertsKeyword=130]="AssertsKeyword",e[e.AssertKeyword=131]="AssertKeyword",e[e.AnyKeyword=132]="AnyKeyword",e[e.AsyncKeyword=133]="AsyncKeyword",e[e.AwaitKeyword=134]="AwaitKeyword",e[e.BooleanKeyword=135]="BooleanKeyword",e[e.ConstructorKeyword=136]="ConstructorKeyword",e[e.DeclareKeyword=137]="DeclareKeyword",e[e.GetKeyword=138]="GetKeyword",e[e.InferKeyword=139]="InferKeyword",e[e.IntrinsicKeyword=140]="IntrinsicKeyword",e[e.IsKeyword=141]="IsKeyword",e[e.KeyOfKeyword=142]="KeyOfKeyword",e[e.ModuleKeyword=143]="ModuleKeyword",e[e.NamespaceKeyword=144]="NamespaceKeyword",e[e.NeverKeyword=145]="NeverKeyword",e[e.OutKeyword=146]="OutKeyword",e[e.ReadonlyKeyword=147]="ReadonlyKeyword",e[e.RequireKeyword=148]="RequireKeyword",e[e.NumberKeyword=149]="NumberKeyword",e[e.ObjectKeyword=150]="ObjectKeyword",e[e.SatisfiesKeyword=151]="SatisfiesKeyword",e[e.SetKeyword=152]="SetKeyword",e[e.StringKeyword=153]="StringKeyword",e[e.SymbolKeyword=154]="SymbolKeyword",e[e.TypeKeyword=155]="TypeKeyword",e[e.UndefinedKeyword=156]="UndefinedKeyword",e[e.UniqueKeyword=157]="UniqueKeyword",e[e.UnknownKeyword=158]="UnknownKeyword",e[e.FromKeyword=159]="FromKeyword",e[e.GlobalKeyword=160]="GlobalKeyword",e[e.BigIntKeyword=161]="BigIntKeyword",e[e.OverrideKeyword=162]="OverrideKeyword",e[e.OfKeyword=163]="OfKeyword",e[e.QualifiedName=164]="QualifiedName",e[e.ComputedPropertyName=165]="ComputedPropertyName",e[e.TypeParameter=166]="TypeParameter",e[e.Parameter=167]="Parameter",e[e.Decorator=168]="Decorator",e[e.PropertySignature=169]="PropertySignature",e[e.PropertyDeclaration=170]="PropertyDeclaration",e[e.MethodSignature=171]="MethodSignature",e[e.MethodDeclaration=172]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=173]="ClassStaticBlockDeclaration",e[e.Constructor=174]="Constructor",e[e.GetAccessor=175]="GetAccessor",e[e.SetAccessor=176]="SetAccessor",e[e.CallSignature=177]="CallSignature",e[e.ConstructSignature=178]="ConstructSignature",e[e.IndexSignature=179]="IndexSignature",e[e.TypePredicate=180]="TypePredicate",e[e.TypeReference=181]="TypeReference",e[e.FunctionType=182]="FunctionType",e[e.ConstructorType=183]="ConstructorType",e[e.TypeQuery=184]="TypeQuery",e[e.TypeLiteral=185]="TypeLiteral",e[e.ArrayType=186]="ArrayType",e[e.TupleType=187]="TupleType",e[e.OptionalType=188]="OptionalType",e[e.RestType=189]="RestType",e[e.UnionType=190]="UnionType",e[e.IntersectionType=191]="IntersectionType",e[e.ConditionalType=192]="ConditionalType",e[e.InferType=193]="InferType",e[e.ParenthesizedType=194]="ParenthesizedType",e[e.ThisType=195]="ThisType",e[e.TypeOperator=196]="TypeOperator",e[e.IndexedAccessType=197]="IndexedAccessType",e[e.MappedType=198]="MappedType",e[e.LiteralType=199]="LiteralType",e[e.NamedTupleMember=200]="NamedTupleMember",e[e.TemplateLiteralType=201]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=202]="TemplateLiteralTypeSpan",e[e.ImportType=203]="ImportType",e[e.ObjectBindingPattern=204]="ObjectBindingPattern",e[e.ArrayBindingPattern=205]="ArrayBindingPattern",e[e.BindingElement=206]="BindingElement",e[e.ArrayLiteralExpression=207]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=208]="ObjectLiteralExpression",e[e.PropertyAccessExpression=209]="PropertyAccessExpression",e[e.ElementAccessExpression=210]="ElementAccessExpression",e[e.CallExpression=211]="CallExpression",e[e.NewExpression=212]="NewExpression",e[e.TaggedTemplateExpression=213]="TaggedTemplateExpression",e[e.TypeAssertionExpression=214]="TypeAssertionExpression",e[e.ParenthesizedExpression=215]="ParenthesizedExpression",e[e.FunctionExpression=216]="FunctionExpression",e[e.ArrowFunction=217]="ArrowFunction",e[e.EtsComponentExpression=218]="EtsComponentExpression",e[e.DeleteExpression=219]="DeleteExpression",e[e.TypeOfExpression=220]="TypeOfExpression",e[e.VoidExpression=221]="VoidExpression",e[e.AwaitExpression=222]="AwaitExpression",e[e.PrefixUnaryExpression=223]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=224]="PostfixUnaryExpression",e[e.BinaryExpression=225]="BinaryExpression",e[e.ConditionalExpression=226]="ConditionalExpression",e[e.TemplateExpression=227]="TemplateExpression",e[e.YieldExpression=228]="YieldExpression",e[e.SpreadElement=229]="SpreadElement",e[e.ClassExpression=230]="ClassExpression",e[e.OmittedExpression=231]="OmittedExpression",e[e.ExpressionWithTypeArguments=232]="ExpressionWithTypeArguments",e[e.AsExpression=233]="AsExpression",e[e.NonNullExpression=234]="NonNullExpression",e[e.MetaProperty=235]="MetaProperty",e[e.SyntheticExpression=236]="SyntheticExpression",e[e.SatisfiesExpression=237]="SatisfiesExpression",e[e.TemplateSpan=238]="TemplateSpan",e[e.SemicolonClassElement=239]="SemicolonClassElement",e[e.Block=240]="Block",e[e.EmptyStatement=241]="EmptyStatement",e[e.VariableStatement=242]="VariableStatement",e[e.ExpressionStatement=243]="ExpressionStatement",e[e.IfStatement=244]="IfStatement",e[e.DoStatement=245]="DoStatement",e[e.WhileStatement=246]="WhileStatement",e[e.ForStatement=247]="ForStatement",e[e.ForInStatement=248]="ForInStatement",e[e.ForOfStatement=249]="ForOfStatement",e[e.ContinueStatement=250]="ContinueStatement",e[e.BreakStatement=251]="BreakStatement",e[e.ReturnStatement=252]="ReturnStatement",e[e.WithStatement=253]="WithStatement",e[e.SwitchStatement=254]="SwitchStatement",e[e.LabeledStatement=255]="LabeledStatement",e[e.ThrowStatement=256]="ThrowStatement",e[e.TryStatement=257]="TryStatement",e[e.DebuggerStatement=258]="DebuggerStatement",e[e.VariableDeclaration=259]="VariableDeclaration",e[e.VariableDeclarationList=260]="VariableDeclarationList",e[e.FunctionDeclaration=261]="FunctionDeclaration",e[e.ClassDeclaration=262]="ClassDeclaration",e[e.StructDeclaration=263]="StructDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.CaseClause=295]="CaseClause",e[e.DefaultClause=296]="DefaultClause",e[e.HeritageClause=297]="HeritageClause",e[e.CatchClause=298]="CatchClause",e[e.AssertClause=299]="AssertClause",e[e.AssertEntry=300]="AssertEntry",e[e.ImportTypeAssertionContainer=301]="ImportTypeAssertionContainer",e[e.PropertyAssignment=302]="PropertyAssignment",e[e.ShorthandPropertyAssignment=303]="ShorthandPropertyAssignment",e[e.SpreadAssignment=304]="SpreadAssignment",e[e.EnumMember=305]="EnumMember",e[e.UnparsedPrologue=306]="UnparsedPrologue",e[e.UnparsedPrepend=307]="UnparsedPrepend",e[e.UnparsedText=308]="UnparsedText",e[e.UnparsedInternalText=309]="UnparsedInternalText",e[e.UnparsedSyntheticReference=310]="UnparsedSyntheticReference",e[e.SourceFile=311]="SourceFile",e[e.Bundle=312]="Bundle",e[e.UnparsedSource=313]="UnparsedSource",e[e.InputFiles=314]="InputFiles",e[e.JSDocTypeExpression=315]="JSDocTypeExpression",e[e.JSDocNameReference=316]="JSDocNameReference",e[e.JSDocMemberName=317]="JSDocMemberName",e[e.JSDocAllType=318]="JSDocAllType",e[e.JSDocUnknownType=319]="JSDocUnknownType",e[e.JSDocNullableType=320]="JSDocNullableType",e[e.JSDocNonNullableType=321]="JSDocNonNullableType",e[e.JSDocOptionalType=322]="JSDocOptionalType",e[e.JSDocFunctionType=323]="JSDocFunctionType",e[e.JSDocVariadicType=324]="JSDocVariadicType",e[e.JSDocNamepathType=325]="JSDocNamepathType",e[e.JSDoc=326]="JSDoc",e[e.JSDocComment=326]="JSDocComment",e[e.JSDocText=327]="JSDocText",e[e.JSDocTypeLiteral=328]="JSDocTypeLiteral",e[e.JSDocSignature=329]="JSDocSignature",e[e.JSDocLink=330]="JSDocLink",e[e.JSDocLinkCode=331]="JSDocLinkCode",e[e.JSDocLinkPlain=332]="JSDocLinkPlain",e[e.JSDocTag=333]="JSDocTag",e[e.JSDocAugmentsTag=334]="JSDocAugmentsTag",e[e.JSDocImplementsTag=335]="JSDocImplementsTag",e[e.JSDocAuthorTag=336]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=337]="JSDocDeprecatedTag",e[e.JSDocClassTag=338]="JSDocClassTag",e[e.JSDocPublicTag=339]="JSDocPublicTag",e[e.JSDocPrivateTag=340]="JSDocPrivateTag",e[e.JSDocProtectedTag=341]="JSDocProtectedTag",e[e.JSDocReadonlyTag=342]="JSDocReadonlyTag",e[e.JSDocOverrideTag=343]="JSDocOverrideTag",e[e.JSDocCallbackTag=344]="JSDocCallbackTag",e[e.JSDocEnumTag=345]="JSDocEnumTag",e[e.JSDocParameterTag=346]="JSDocParameterTag",e[e.JSDocReturnTag=347]="JSDocReturnTag",e[e.JSDocThisTag=348]="JSDocThisTag",e[e.JSDocTypeTag=349]="JSDocTypeTag",e[e.JSDocTemplateTag=350]="JSDocTemplateTag",e[e.JSDocTypedefTag=351]="JSDocTypedefTag",e[e.JSDocSeeTag=352]="JSDocSeeTag",e[e.JSDocPropertyTag=353]="JSDocPropertyTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=117]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=163]="LastKeyword",e[e.FirstFutureReservedWord=118]="FirstFutureReservedWord",e[e.LastFutureReservedWord=126]="LastFutureReservedWord",e[e.FirstTypeNode=180]="FirstTypeNode",e[e.LastTypeNode=203]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=163]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=242]="FirstStatement",e[e.LastStatement=258]="LastStatement",e[e.FirstNode=164]="FirstNode",e[e.FirstJSDocNode=315]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=333]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=127]="FirstContextualKeyword",e[e.LastContextualKeyword=163]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.EtsContext=1073741824]="EtsContext",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=1124462592]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.StructContext=2]="StructContext",e[e.EtsExtendComponentsContext=4]="EtsExtendComponentsContext",e[e.EtsStylesComponentsContext=8]="EtsStylesComponentsContext",e[e.EtsBuildContext=16]="EtsBuildContext",e[e.EtsBuilderContext=32]="EtsBuilderContext",e[e.EtsStateStylesContext=64]="EtsStateStylesContext",e[e.EtsComponentsContext=128]="EtsComponentsContext",e[e.EtsNewExpressionContext=256]="EtsNewExpressionContext"}(e.EtsFlags||(e.EtsFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var t,r=function(){};e.OperationCanceledException=r,function(e){e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(e){e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride"}(e.MemberOverrideStatus||(e.MemberOverrideStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=268435456]="InCheckIdentifier"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(e){e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent"}(e.AccessFlags||(e.AccessFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force"}(e.ModuleDetectionKind||(e.ModuleDetectionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e[e.ETS=8]="ETS"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e.Ets=".ets",e.Dets=".d.ets"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable"}(e.SnippetKind||(e.SnippetKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",e[e.Immutable=268435456]="Immutable",e[e.IndirectCall=536870912]="IndirectCall"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=4194304]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(e){e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(d||(d={})),function(e){function t(e){for(var t=5381,r=0;r=4,f="linux"===process.platform||"darwin"===process.platform,g=l.platform(),m="win32"!==g&&"win64"!==g&&!P((u=__filename,u.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),h=s.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?s.realpathSync.native(e):s.realpathSync(e)}:s.realpathSync.native:s.realpathSync,y=_&&("win32"===process.platform||"darwin"===process.platform),b=e.memoize((function(){return process.cwd()})),x=S({pollingWatchFileWorker:function(e,t,r){var i;return s.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return s.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i,r.mtime)}},getModifiedTime:O,setTimeout,clearTimeout,fsWatchWorker:function(e,t,r){return s.watch(e,y?{persistent:!0,recursive:!!t}:{persistent:!0},r)},useCaseSensitiveFileNames:m,getCurrentDirectory:b,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:y,getAccessibleSortedChildDirectories:function(e){return F(e).directories},realpath:I,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:f,sysLog:v}),D=x.watchFile,T=x.watchDirectory,E={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:m,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e){var t;try{t=s.readFileSync(e)}catch(e){return}var r=t.length;if(r>=2&&254===t[0]&&255===t[1]){r&=-2;for(var n=0;n=2&&255===t[0]&&254===t[1]?t.toString("utf16le",2):r>=3&&239===t[0]&&187===t[1]&&191===t[2]?t.toString("utf8",3):t.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=s.openSync(t,"w"),s.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:D,watchDirectory:T,resolvePath:function(e){return c.resolve(e)},fileExists:P,directoryExists:function(e){return w(e,1)},createDirectory:function(e){if(!E.directoryExists(e))try{s.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:b,getDirectories:function(e){return F(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,m,process.cwd(),a,F,I)},getModifiedTime:O,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(e){return}},createHash:i?M:t,createSHA256Hash:i?M:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=k(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){A((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(a)return t(),!1;var n=r(264);if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){a=i,d=e,t()}))})),!0},disableCPUProfiler:A,cpuProfilingEnabled:function(){return!!a||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:I,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r(2345).install()}catch(e){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:N,base64decode:function(e){return N(e,"base64").toString("utf8")},base64encode:function(e){return N(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,E);return{module:r(9953)(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return E;function k(e){return s.statSync(e,{throwIfNoEntry:!1})}function A(t){if(a&&"stopping"!==a){var r=a;return a.post("Profiler.stop",(function(n,i){var l,u=i.profile;if(!n){try{(null===(l=k(d))||void 0===l?void 0:l.isDirectory())&&(d=c.join(d,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch(e){}try{s.mkdirSync(c.dirname(d),{recursive:!0})}catch(e){}s.writeFileSync(d,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://".concat(1===e.getRootLength(i)?"":"/").concat(i),s=0,c=t.nodes;s0}function o(e){return 0!==d(e)}function s(e){return/^\.\.?($|[\\/])/.test(e)}function c(t,r){return t.length>r.length&&e.endsWith(t,r)}function l(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function d(r){if(!r)return 0;var n=r.charCodeAt(0);if(47===n||92===n){if(r.charCodeAt(1)!==n)return 1;var i=r.indexOf(47===n?e.directorySeparator:e.altDirectorySeparator,2);return i<0?r.length:i+1}if(u(n)&&58===r.charCodeAt(1)){var a=r.charCodeAt(2);if(47===a||92===a)return 3;if(2===r.length)return 2}var o=r.indexOf(t);if(-1!==o){var s=o+t.length,c=r.indexOf(e.directorySeparator,s);if(-1!==c){var l=r.slice(0,o),d=r.slice(s,c);if("file"===l&&(""===d||"localhost"===d)&&u(r.charCodeAt(c+1))){var p=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(r,c+2);if(-1!==p){if(47===r.charCodeAt(p))return~(p+1);if(p===r.length)return~p}}return~(c+1)}return~r.length}return 0}function p(e){var t=d(e);return t<0?~t:t}function _(t){var r=p(t=v(t));return r===t.length?t:(t=E(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function f(t,r,n){if(p(t=v(t))===t.length)return"";var i=(t=E(t)).slice(Math.max(p(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function g(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function m(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return g(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function h(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=x(r,t),p(t))}function y(t){return 0===t.length?"":(t[0]&&k(t[0]))+t.slice(1).join(e.directorySeparator)}function v(t){return-1!==t.indexOf("\\")?t.replace(r,e.directorySeparator):t}function b(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function x(e){for(var t=[],r=1;r0&&t===e.length},e.pathIsAbsolute=o,e.pathIsRelative=s,e.pathIsBareSpecifier=function(e){return!o(e)&&!s(e)},e.hasExtension=function(t){return e.stringContains(f(t),".")},e.fileExtensionIs=c,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==p(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function I(t,r,n,i,o){var s=w(D(n,t),D(n,r),e.equateStringsCaseSensitive,i),c=s[0];if(o&&a(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return F(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return F(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),F(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=b(h(t)),o=b(h(r));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:t(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:t(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:t(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:t(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:t(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:t(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Warning,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:t(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:t(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:t(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:t(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:t(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:t(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:t(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:t(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:t(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:t(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:t(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:t(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:t(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:t(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:t(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:t(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend:t(28e3,e.DiagnosticCategory.Error,"Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend_28000","Should not add return type to the function that is annotated by Extend."),Decorator_name_must_be_one_of_ETS_Components:t(28001,e.DiagnosticCategory.Error,"Decorator_name_must_be_one_of_ETS_Components_28001","Decorator name must be one of ETS Components"),A_struct_declaration_without_the_default_modifier_must_have_a_name:t(28002,e.DiagnosticCategory.Error,"A_struct_declaration_without_the_default_modifier_must_have_a_name_28002","A struct declaration without the 'default' modifier must have a name."),Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles:t(28003,e.DiagnosticCategory.Error,"Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles_28003","Should not add return type to the function that is annotated by Styles."),Unable_to_resolve_signature_of_function_decorator_when_decorators_are_not_valid:t(28004,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_function_decorator_when_decorators_are_not_valid_28004","Unable to resolve signature of function decorator when decorators are not valid."),The_statement_must_be_written_use_the_function_0_under_the_if_condition:t(28005,e.DiagnosticCategory.Warning,"The_statement_must_be_written_use_the_function_0_under_the_if_condition_28005","The statement must be written use the function '{0}' under the if condition."),The_struct_name_cannot_contain_reserved_tag_name_Colon_0:t(28006,e.DiagnosticCategory.Error,"The_struct_name_cannot_contain_reserved_tag_name_Colon_0_28006","The struct name cannot contain reserved tag name: '{0}'."),This_API_has_been_Special_Markings_exercise_caution_when_using_this_API:t(28007,e.DiagnosticCategory.Warning,"This_API_has_been_Special_Markings_exercise_caution_when_using_this_API_28007","This API has been Special Markings. exercise caution when using this API."),Looking_up_in_oh_modules_folder_initial_location_0:t(28008,e.DiagnosticCategory.Message,"Looking_up_in_oh_modules_folder_initial_location_0_28008","Looking up in 'oh_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_oh_modules_folder:t(28009,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_oh_modul_28009","Containing file is not specified and root directory cannot be determined, skipping lookup in 'oh_modules' folder."),Loading_module_0_from_oh_modules_folder_target_file_type_1:t(28010,e.DiagnosticCategory.Message,"Loading_module_0_from_oh_modules_folder_target_file_type_1_28010","Loading module '{0}' from 'oh_modules' folder, target file type '{1}'."),Found_oh_package_json5_at_0:t(28011,e.DiagnosticCategory.Message,"Found_oh_package_json5_at_0_28011","Found 'oh-package.json5' at '{0}'."),oh_package_json5_does_not_have_a_0_field:t(28012,e.DiagnosticCategory.Message,"oh_package_json5_does_not_have_a_0_field_28012","'oh-package.json5' does not have a '{0}' field."),oh_package_json5_has_0_field_1_that_references_2:t(28013,e.DiagnosticCategory.Message,"oh_package_json5_has_0_field_1_that_references_2_28013","'oh-package.json5' has '{0}' field '{1}' that references '{2}'."),Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared:t(28014,e.DiagnosticCategory.Warning,"Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in__28014","Currently module for '{0}' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared."),UI_component_0_cannot_be_used_in_this_place:t(28015,e.DiagnosticCategory.Error,"UI_component_0_cannot_be_used_in_this_place_28015","UI component '{0}' cannot be used in this place."),Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden:t(28016,e.DiagnosticCategory.Warning,"Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden_28016","Importing ArkTS files in JS and TS files is about to be forbidden."),Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden:t(28017,e.DiagnosticCategory.Error,"Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden_28017","Importing ArkTS files in JS and TS files is forbidden.")}}(d||(d={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={abstract:127,accessor:128,any:132,as:129,asserts:130,assert:131,bigint:161,boolean:135,break:81,case:82,catch:83,class:84,continue:87,const:86}).constructor=136,t.debugger=88,t.declare=137,t.default=89,t.delete=90,t.do=91,t.else=92,t.enum=93,t.export=94,t.extends=95,t.false=96,t.finally=97,t.for=98,t.from=159,t.function=99,t.get=138,t.if=100,t.implements=118,t.import=101,t.in=102,t.infer=139,t.instanceof=103,t.interface=119,t.intrinsic=140,t.is=141,t.keyof=142,t.let=120,t.module=143,t.namespace=144,t.never=145,t.new=104,t.null=105,t.number=149,t.object=150,t.package=121,t.private=122,t.protected=123,t.public=124,t.override=162,t.out=146,t.readonly=147,t.require=148,t.global=160,t.return=106,t.satisfies=151,t.set=152,t.static=125,t.string=153,t.struct=85,t.super=107,t.switch=108,t.symbol=154,t.this=109,t.throw=110,t.true=111,t.try=112,t.type=155,t.typeof=113,t.undefined=156,t.unique=157,t.unknown=158,t.var=114,t.void=115,t.while=116,t.with=117,t.yield=126,t.async=133,t.await=134,t.of=163,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,_=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e=2?u:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,h=(m=[],i.forEach((function(e,t){m[e]=t})),m);function y(e){for(var t=[],r=0,n=0;r127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,y(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return h[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&S(s)){r++;continue}}return r}};var N=7;function F(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N=0&&r127&&S(g)){d&&C(g)&&(u=!0),r++;continue}break e}}return d&&(_=i(s,c,l,u,a,_)),_}function L(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=P.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function U(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?d:1===t?l:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=U,e.isIdentifierText=function(e,t,r){var n=z(e,0);if(!J(n,t))return!1;for(var i=V(n);i117},isReservedWord:function(){return m>=81&&m<=117},isUnterminated:function(){return!!(4&y)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=72):(u+=2,m=49):61===b.charCodeAt(u+1)?(u+=2,m=71):(u++,m=48);if(61===b.charCodeAt(u))return u++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=d){y|=4,P(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){y|=4,P(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r=d)return m=1;var e=z(b,u);switch(u+=V(e),e){case 9:case 11:case 12:case 32:for(;u=0&&J(r,t))return u+=3,y|=8,h=X()+ee(),m=te();var n=Y();return n>=0&&J(n,t)?(u+=6,y|=1024,h=String.fromCharCode(n)+ee(),m=te()):(u++,m=0)}if(J(e,t)){for(var i=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length=d){n+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=H(),i=u}return n}function G(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=b.substring(i,u),y|=4,P(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1=d)return P(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u=0?String.fromCharCode(r):(P(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=K(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(P(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(P(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=d?(P(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(P(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function Y(){if(u+5=0&&U(n,t)){u+=3,y|=8,e+=X(),r=u;continue}if(!((n=Y())>=0&&U(n,t)))break;y|=1024,e+=b.substring(r,u),e+=W(n),r=u+=6}}return e+=b.substring(r,u)}function te(){var e=h.length;if(e>=2&&e<=12){var t=h.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(h);if(void 0!==r)return m=r,85!==r||D||(m=79),m}}return m=79}function re(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=b[u],u++,i=!1}else y|=512,n?(n=!1,i=!0):P(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&P(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function ne(){if(110===b.charCodeAt(u))return h+="n",384&y&&(h=e.parsePseudoBigInt(h)+"n"),u++,9;var t=128&y?parseInt(h.slice(2),2):256&y?parseInt(h.slice(2),8):+h;return h=""+t,8}function ie(){var r;f=u,y=0;for(var n=!1;;){if(g=u,u>=d)return m=1;var o=z(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return m=6}switch(o){case 10:case 13:if(y|=1,i){u++;continue}return 13===o&&u+1=0&&J(D,t))return u+=3,y|=8,h=X()+ee(),m=te();var S=Y();return S>=0&&J(S,t)?(u+=6,y|=1024,h=String.fromCharCode(S)+ee(),m=te()):(P(e.Diagnostics.Invalid_character),u++,m=0);case 35:if(0!==u&&"!"===b[u+1])return P(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,m=0;var k=z(b,u+1);if(92===k){u++;var N=Z();if(N>=0&&J(N,t))return u+=3,y|=8,h="#"+X()+ee(),m=80;var M=Y();if(M>=0&&J(M,t))return u+=6,y|=1024,h="#"+String.fromCharCode(M)+ee(),m=80;u--}return J(k,t)?(u++,ae(k,t)):(h="#",P(e.Diagnostics.Invalid_character,u++,V(o))),m=80;default:var R=ae(o,t);if(R)return m=R;if(T(o)){u+=V(o);continue}if(C(o)){y|=1,u+=V(o);continue}var j=V(o);return P(e.Diagnostics.Invalid_character,u,j),u+=j,m=0}}}function ae(e,t){var r=e;if(J(r,t)){for(u+=V(r);u=d)return m=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,m=30):(u++,m=29);if(123===r)return u++,m=18;for(var n=0;u0)break;S(r)||(n=u)}u++}return h=b.substring(f,u),-1===n?12:11}function ce(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return h=$(!0),m=10;default:return ie()}}function le(e,t){var r=u,n=f,i=g,a=m,o=h,s=y,c=e();return c&&!t||(u=r,f=n,g=i,m=a,h=o,y=s),c}function ue(e,t,r){b=e||"",d=void 0===r?b.length:t+r,de(t||0)}function de(t){e.Debug.assert(t>=0),u=t,f=t,g=t,m=0,h=void 0,y=0}};var z=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function V(e){return e>=65536?2:1}var K=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function W(e){return K(e)}e.utf16EncodeAsString=W}(d||(d={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!te(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 259===t.kind&&(t=t.parent),t&&260===t.kind&&(n|=r(t),t=t.parent),t&&242===t.kind&&(n|=r(t)),n}function _(e){return!(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(ue(r))return h(r);switch(r.kind){case 242:if(r.declarationList&&r.declarationList.declarations[0])return h(r.declarationList.declarations[0]);break;case 243:var n=r.expression;switch(225===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 209:return n.name;case 210:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 215:return h(r.expression);case 255:if(ue(r.statement)||oe(r.statement))return h(r.statement)}}}function h(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function y(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 353:case 346:var r=t.name;if(164===r.kind)return r.right;break;case 211:case 225:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 351:return y(t);case 345:return m(t);case 277:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 210:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t){if(e.hasDecorators(t))return e.filter(t.modifiers,e.isDecorator)}function T(t){if(e.hasIllegalDecorators(t))return t.illegalDecorators}function C(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return w(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=w(t.parent,r).filter(e.isJSDocParameterTag);if(i=164}function J(e){return e>=0&&e<=163}function U(e){return 8<=e&&e<=14}function z(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function K(e){switch(e){case 127:case 128:case 133:case 86:case 137:case 89:case 94:case 102:case 124:case 122:case 123:case 147:case 125:case 146:case 162:return!0}return!1}function W(t){return!!(16476&e.modifierToFlag(t))}function q(e){return K(e.kind)}function $(e){return!!e&&H(e.kind)}function G(e){switch(e){case 261:case 172:case 174:case 175:case 176:case 216:case 217:return!0;default:return!1}}function H(e){switch(e){case 171:case 177:case 329:case 178:case 179:case 182:case 323:case 183:return!0;default:return G(e)}}function Q(e){var t=e.kind;return 174===t||170===t||172===t||175===t||176===t||179===t||173===t||239===t}function X(e){return e&&(262===e.kind||230===e.kind||263===e.kind)}function Y(e){switch(e.kind){case 172:case 175:case 176:return!0;default:return!1}}function Z(e){var t=e.kind;return 178===t||177===t||169===t||171===t||179===t||175===t||176===t}function ee(e){var t=e.kind;return 302===t||303===t||304===t||172===t||175===t||176===t}function te(e){if(e){var t=e.kind;return 205===t||204===t}return!1}function re(e){switch(e.kind){case 204:case 208:return!0}return!1}function ne(e){switch(e.kind){case 205:case 207:return!0}return!1}function ie(e){switch(e){case 209:case 210:case 212:case 211:case 284:case 285:case 288:case 213:case 207:case 215:case 208:case 230:case 216:case 218:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 227:case 96:case 105:case 109:case 111:case 107:case 234:case 232:case 235:case 101:return!0;default:return!1}}function ae(e){switch(e){case 223:case 224:case 219:case 220:case 221:case 222:case 214:return!0;default:return ie(e)}}function oe(e){return function(e){switch(e){case 226:case 228:case 217:case 225:case 229:case 233:case 231:case 357:case 356:case 237:return!0;default:return ae(e)}}(R(e).kind)}function se(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ce(e){return 261===e||282===e||262===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function le(e){return 251===e||250===e||258===e||245===e||243===e||241===e||248===e||249===e||247===e||244===e||255===e||252===e||254===e||256===e||257===e||242===e||246===e||253===e||355===e||359===e||358===e}function ue(t){return 166===t.kind?t.parent&&350!==t.parent.kind||e.isInJSFile(t):217===(r=t.kind)||206===r||262===r||230===r||173===r||263===r||174===r||266===r||305===r||281===r||261===r||216===r||175===r||273===r||271===r||276===r||264===r||291===r||172===r||171===r||267===r||270===r||274===r||280===r||167===r||302===r||170===r||169===r||176===r||303===r||265===r||166===r||259===r||351===r||344===r||353===r;var r}function de(e){return e.kind>=333&&e.kind<=353}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getDecorators=S,e.getModifiers=function(t){if(e.hasSyntacticModifier(t,126975))return e.filter(t.modifiers,q)},e.getAllDecorators=function(e){var t=[];if(!e)return t;var r=S(e);r&&t.push.apply(t,r);var n=T(e);return n&&t.push.apply(t,n),t},e.getIllegalDecorators=T,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return C(e,!0)},e.getJSDocTypeParameterTags=function(e){return k(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return k(e,!0)},e.hasJSDocParameterTags=function(t){return!!I(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return I(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return O(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return I(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return I(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return I(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return I(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return I(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return I(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return I(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return I(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return I(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return I(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return I(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return I(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return I(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return I(t,e.isJSDocThisTag)},e.getJSDocReturnTag=A,e.getJSDocTemplateTag=function(t){return I(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=N,e.getJSDocType=F,e.getJSDocReturnType=function(t){var r=A(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=N(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=P,e.getJSDocTagsNoCache=function(e){return w(e,!0)},e.getAllJSDocTags=O,e.getAllJSDocTagsOfKind=function(e,t){return P(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 327===t.kind?t.text:(n=330===(r=t).kind?"link":331===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(326===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.canHaveIllegalTypeParameters(t)&&t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=F(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 176===e.kind||175===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=M,e.isOptionalChainRoot=L,e.isExpressionOfOptionalChainRoot=function(e){return L(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!M(e.parent)||L(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 225===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=R,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 251===e.kind||250===e.kind},e.isNamedExportBindings=function(e){return 280===e.kind||279===e.kind},e.isUnparsedTextLike=B,e.isUnparsedNode=function(e){return B(e)||306===e.kind||310===e.kind},e.isJSDocPropertyLikeTag=function(e){return 353===e.kind||346===e.kind},e.isNode=function(e){return j(e.kind)},e.isNodeKind=j,e.isTokenKind=J,e.isToken=function(e){return J(e.kind)},e.isNodeArray=function(t){return e.hasProperty(t,"pos")&&e.hasProperty(t,"end")},e.isLiteralKind=U,e.isLiteralExpression=function(e){return U(e.kind)},e.isLiteralExpressionOfObject=function(e){switch(e.kind){case 208:case 207:case 13:case 216:case 230:return!0}return!1},e.isTemplateLiteralKind=z,e.isTemplateLiteralToken=function(e){return z(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 276:case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||z(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isGeneratedPrivateIdentifier=function(t){return e.isPrivateIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=K,e.isParameterPropertyModifier=W,e.isClassMemberModifier=function(e){return W(e)||125===e||162===e||128===e},e.isModifier=q,e.isEntityName=function(e){var t=e.kind;return 164===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||165===t},e.isBindingName=function(e){var t=e.kind;return 79===t||204===t||205===t},e.isFunctionLike=$,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(H(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&G(e.kind)},e.isBooleanLiteral=function(e){return 111===e.kind||96===e.kind},e.isFunctionLikeKind=H,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&$(t.parent)},e.isClassElement=Q,e.isClassLike=X,e.isStruct=function(e){return e&&263===e.kind},e.isAccessor=function(e){return e&&(175===e.kind||176===e.kind)},e.isAutoAccessorPropertyDeclaration=function(t){return e.isPropertyDeclaration(t)&&e.hasAccessorModifier(t)},e.isMethodOrAccessor=Y,e.isNamedClassElement=function(e){switch(e.kind){case 172:case 175:case 176:case 170:return!0;default:return!1}},e.isModifierLike=function(t){return q(t)||e.isDecorator(t)},e.isTypeElement=Z,e.isClassOrTypeElement=function(e){return Z(e)||Q(e)},e.isObjectLiteralElementLike=ee,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 182:case 183:return!0}return!1},e.isBindingPattern=te,e.isAssignmentPattern=function(e){var t=e.kind;return 207===t||208===t},e.isArrayBindingElement=function(e){var t=e.kind;return 206===t||231===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 259:case 167:case 206:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return re(e)||ne(e)},e.isObjectBindingOrAssignmentPattern=re,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 206:case 302:case 303:case 304:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ne,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 209===t||164===t||203===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 209===t||164===t},e.isCallLikeExpression=function(e){switch(e.kind){case 286:case 285:case 211:case 212:case 213:case 168:case 218:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 211===e.kind||212===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 227===t||14===t},e.isLeftHandSideExpression=function(e){return ie(R(e).kind)},e.isUnaryExpression=function(e){return ae(R(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 224:return!0;case 223:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=oe,e.isAssertionExpression=function(e){var t=e.kind;return 214===t||233===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 247:case 248:case 249:case 245:case 246:return!0;case 255:return r&&e(t.statement,r)}return!1},e.isScopeMarker=se,e.hasScopeMarker=function(t){return e.some(t,se)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 248===e.kind||249===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||oe(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||oe(t)},e.isModuleBody=function(e){var t=e.kind;return 268===t||267===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 268===t||267===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||267===t},e.isNamedImportBindings=function(e){var t=e.kind;return 275===t||274===t},e.isModuleOrEnumDeclaration=function(e){return 267===e.kind||266===e.kind},e.isDeclaration=ue,e.isDeclarationStatement=function(e){return ce(e.kind)},e.isStatementButNotDeclaration=function(e){return le(e.kind)},e.isStatement=function(t){var r=t.kind;return le(r)||ce(r)||function(t){if(240!==t.kind)return!1;if(void 0!==t.parent&&(257===t.parent.kind||298===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return le(t)||ce(t)||240===t},e.isModuleReference=function(e){var t=e.kind;return 283===t||164===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 109===t||79===t||209===t},e.isJsxChild=function(e){var t=e.kind;return 284===t||294===t||285===t||11===t||288===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 291===t||293===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||294===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 286===t||285===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 295===t||296===t},e.isJSDocNode=function(e){return e.kind>=315&&e.kind<=353},e.isJSDocCommentContainingNode=function(t){return 326===t.kind||325===t.kind||327===t.kind||_e(t)||de(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=de,e.isSetAccessor=function(e){return 176===e.kind},e.isGetAccessor=function(e){return 175===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 259:case 167:case 206:case 170:case 302:case 305:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 291===e.kind||293===e.kind||ee(e)},e.isTypeReferenceType=function(e){return 181===e.kind||232===e.kind};var pe=1073741823;function _e(e){return 330===e.kind||331===e.kind||332===e.kind}function fe(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&324===r.kind}e.guessIndentation=function(t){for(var r=pe,n=0,i=t;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||!e.virtual&&(e.pos===e.end&&e.pos>=0&&1!==e.kind)}function f(e){return!_(e)}function g(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?v(t._children[0],r,n):t.virtual?t.pos:e.skipTrivia((r||d(t)).text,t.pos,!1,!1,Te(t))}function b(e,t,r){return void 0===r&&(r=!1),x(e.text,t,r)}function x(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function D(e,t){return void 0===t&&(t=!1),b(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=wt(e);return 259===t.kind&&298===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function N(e){return E(e)&&F(e)}function F(t){switch(t.parent.kind){case 311:return e.isExternalModule(t.parent);case 268:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function w(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(N(t)||e.isModuleDeclaration(t)&&A(t))}))}function P(t,r){switch(t.kind){case 311:case 269:case 298:case 267:case 247:case 248:case 249:case 174:case 172:case 175:case 176:case 261:case 216:case 217:case 170:case 173:return!0;case 240:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 177:case 178:case 171:case 179:case 182:case 183:case 323:case 262:case 263:case 230:case 264:case 265:case 350:case 261:case 172:case 174:case 175:case 176:case 216:case 217:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return P(e,e.parent)}))}function R(e){return e&&e.virtual&&79===e.kind?e.escapedText.toString():e&&0!==c(e)?D(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.autoGenerateFlags?void 0:t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 165:return Tt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function j(t){return e.Debug.checkDefined(B(t))}function J(t){switch(t.kind){case 109:return"this";case 80:case 79:return 0===c(t)?e.idText(t):D(t);case 164:return J(t.left)+"."+J(t.right);case 209:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?J(t.expression)+"."+J(t.name):e.Debug.assertNever(t.name);case 317:return J(t.left)+J(t.right);default:return e.Debug.assertNever(t)}}function U(e,t,r,n,i,a,o){var s=W(e,t);return Cn(e,s.start,s.length,r,n,i,a,o)}function z(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function V(e,t,r,n,i){return z(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function K(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function W(t,r){var n=r;switch(r.kind){case 311:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):K(t,i);case 259:case 206:case 262:case 230:case 263:case 264:case 267:case 266:case 305:case 261:case 216:case 172:case 175:case 176:case 265:case 170:case 169:case 274:n=r.name;break;case 217:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&240===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return K(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=_(n),c=s||e.isJsxText(r)||r.virtual?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function q(e){return 6===e.scriptKind}function $(e){return!!e}function G(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 211===e.kind&&101===e.expression.kind}function Q(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function X(e){return 243===e.kind&&10===e.expression.kind}function Y(e){return!!(1048576&T(e))}function Z(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||o(e,t)},e.optionsHaveModuleResolutionChanges=o,e.changesAffectingProgramStructure=function(t,r){return s(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=s,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},e.setResolvedModule=function(t,r,n,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToPackageName=l,e.packageIdToString=function(e){return"".concat(l(e),"@").concat(e.version)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i,a){e.Debug.assert(t.length===r.length);for(var o=0;o=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=d(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=p,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return g(e,t,X)},e.insertStatementsAfterCustomPrologue=function(e,t){return g(e,t,h)},e.insertStatementAfterStandardPrologue=function(e,t){return m(e,t,X)},e.insertStatementAfterCustomPrologue=function(e,t){return m(e,t,h)},e.getEtsLibs=function(t){var r,n,i=[],a=null!==(n=null===(r=t.getCompilerOptions().ets)||void 0===r?void 0:r.libs)&&void 0!==n?n:[];return a.length&&e.forEach(a,(function(r){i.push(e.sys.resolvePath(r));var n=function(t,r){if(!r)return;for(var n=e.sys.resolvePath(r),i=0,a=t.getSourceFiles();i=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isAmbientPropertyDeclaration=function(e){return!!(16777216&e.flags)||Cr(e,2)},e.isBlockScope=P,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 344:case 351:case 329:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=function(e){return O(e)||ke(e)},e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 272:case 271:case 242:case 262:case 263:case 261:case 267:case 265:case 264:case 266:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 165===e.kind&&!Tt(e.expression)},e.tryGetTextOfPropertyName=B,e.getTextOfPropertyName=j,e.entityNameToString=J,e.createDiagnosticForNode=function(e,t,r,n,i,a){return U(d(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return Cn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=U,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=d(e),i=W(n,e);return V(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=V,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=K,e.getErrorSpanForNode=W,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=q,e.isEmitNodeModulesFiles=$,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=G,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 211===e.kind&&107===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&101===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=Q,e.isPrologueDirective=X,e.isCustomPrologue=Y,e.isHoistedFunction=function(t){return Y(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return Y(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Z)},e.getJSDocCommentRanges=function(t,r){var n=167===t.kind||166===t.kind||216===t.kind||217===t.kind||215===t.kind||259===t.kind||281===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var ee=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var te=/^(\/\/\/\s*/;function re(t){if(180<=t.kind&&t.kind<=203)return!0;switch(t.kind){case 132:case 158:case 149:case 161:case 153:case 135:case 154:case 150:case 156:case 145:return!0;case 115:return 221!==t.parent.kind;case 232:return e.isHeritageClause(t.parent)&&!Kr(t);case 166:return 198===t.parent.kind||193===t.parent.kind;case 79:(164===t.parent.kind&&t.parent.right===t||209===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||164===t.kind||209===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 164:case 209:case 109:var r=t.parent;if(184===r.kind)return!1;if(203===r.kind)return!r.isTypeOf;if(180<=r.kind&&r.kind<=203)return!0;switch(r.kind){case 232:return e.isHeritageClause(r.parent)&&!Kr(r);case 166:case 350:return t===r.constraint;case 170:case 169:case 167:case 259:case 261:case 216:case 217:case 174:case 172:case 171:case 175:case 176:case 177:case 178:case 179:case 214:return t===r.type;case 211:case 212:return e.contains(r.typeArguments,t);case 213:return!1}}return!1}function ne(e){if(e)switch(e.kind){case 206:case 305:case 167:case 302:case 170:case 169:case 303:case 259:return!0}return!1}function ie(e){return 260===e.parent.kind&&242===e.parent.parent.kind}function ae(t){return!!Se(t)&&(e.isBinaryExpression(t)&&1===Re(t))}function oe(e,t,r){return e.properties.filter((function(e){if(302===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function se(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ce(t,r){var n=se(t);return n?oe(n,r):e.emptyArray}function le(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)}function ue(t){return e.findAncestor(t.parent,e.isClassLike)}function de(t,r){for(e.Debug.assert(311!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 165:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 168:167===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 217:if(!r)continue;case 261:case 216:case 267:case 173:case 170:case 169:case 172:case 171:case 174:case 175:case 176:case 177:case 178:case 179:case 266:case 311:return t}}}function pe(e){var t=e.kind;return(209===t||210===t)&&107===e.expression.kind}function _e(t,r,n,i){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 262:case 263:return!0;case 170:return 262===r.kind||263===r.kind;case 175:case 176:case 172:return void 0!==t.body&&(262===r.kind||263===r.kind);case 167:return!(void 0===r.body||174!==r.kind&&172!==r.kind&&176!==r.kind||262!==n.kind&&263!==n.kind);case 261:return e.isArkTsDecorator(t,i)}return!1}function fe(e,t,r){return Nr(e)&&_e(e,t,r)}function ge(e,t,r){return fe(e,t,r)||me(e,t)}function me(t,r){switch(t.kind){case 262:case 263:return e.some(t.members,(function(e){return ge(e,t,r)}));case 172:case 176:case 174:return e.some(t.parameters,(function(e){return fe(e,t,r)}));default:return!1}}function he(e){var t=e.parent;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 107:case 105:case 111:case 96:case 13:case 207:case 208:case 209:case 218:case 210:case 211:case 212:case 213:case 233:case 214:case 237:case 234:case 215:case 216:case 230:case 217:case 221:case 219:case 220:case 223:case 224:case 225:case 226:case 229:case 227:case 231:case 284:case 285:case 288:case 228:case 222:case 235:return!0;case 232:return!e.isHeritageClause(t.parent);case 164:for(;164===t.parent.kind;)t=t.parent;return 184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 317:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&102===t.parent.operatorToken.kind;case 79:if(184===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||he(t))return!0;case 8:case 9:case 10:case 14:case 109:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 259:case 167:case 170:case 169:case 305:case 302:case 206:return t.initializer===e;case 243:case 244:case 245:case 246:case 252:case 253:case 254:case 295:case 256:return t.expression===e;case 247:var r=t;return r.initializer===e&&260!==r.initializer.kind||r.condition===e||r.incrementor===e;case 248:case 249:var n=t;return n.initializer===e&&260!==n.initializer.kind||n.expression===e;case 214:case 233:case 238:case 165:case 237:return e===t.expression;case 168:case 294:case 293:case 304:return!0;case 232:return t.expression===e&&!re(t);case 303:return t.objectAssignmentInitializer===e;default:return ye(t)}}function be(e){for(;164===e.kind||79===e.kind;)e=e.parent;return 184===e.kind}function xe(e){return 271===e.kind&&283===e.moduleReference.kind}function De(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function Te(e){return!!e&&!!(8388608&e.flags)}function Ce(t,r){if(211!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(e){return Ae(e,!1)}function ke(e){return Ae(e,!0)}function Ae(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Ce(r?_n(t.initializer):t.initializer,!0)}function Ne(t){return e.isBinaryExpression(t)||pn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Fe(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Wr(t.name)&&Pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function we(t,r){if(e.isCallExpression(t)){var n=pt(t.expression);return 216===n.kind||217===n.kind?t:void 0}return 216===t.kind||230===t.kind||217===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Pe(t,r){return Nt(t)&&Nt(r)?Ft(t)===Ft(r):e.isMemberName(t)&&je(r)&&(109===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?Pe(t,Ke(r)):!(!je(t)||!je(r))&&(qe(t)===qe(r)&&Pe(t.expression,r.expression))}function Ie(e){for(;Vr(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Me(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Le(t){return(e.isPropertyAccessExpression(t)||Je(t))&&Me(t.expression)&&"exports"===qe(t)}function Re(t){var r=function(t){if(e.isCallExpression(t)){if(!Be(t))return 0;var r=t.arguments[0];return Oe(r)||Le(r)?8:Ue(r)&&"prototype"===qe(r)?9:7}if(63!==t.operatorToken.kind||!pn(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text))return 0;var n;if(Ve(t.left.expression,!0)&&"prototype"===qe(t.left)&&e.isObjectLiteralExpression(Ge(t)))return 6;return $e(t.left)}(t);return 5===r||Se(t)?r:0}function Be(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Tt(t.arguments[1])&&Ve(t.arguments[0],!0)}function je(t){return e.isPropertyAccessExpression(t)||Je(t)}function Je(t){return e.isElementAccessExpression(t)&&Tt(t.argumentExpression)}function Ue(t,r){return e.isPropertyAccessExpression(t)&&(!r&&109===t.expression.kind||e.isIdentifier(t.name)&&Ve(t.expression,!0))||ze(t,r)}function ze(e,t){return Je(e)&&(!t&&109===e.expression.kind||Wr(e.expression)||Ue(e.expression,!0))}function Ve(e,t){return Wr(e)||Ue(e,t)}function Ke(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function We(t){if(e.isPropertyAccessExpression(t))return t.name;var r=pt(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function qe(t){var r=We(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function $e(t){if(109===t.expression.kind)return 4;if(Le(t))return 2;if(Ve(t.expression,!0)){if($r(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===qe(r))&&Ue(t))return 1;if(Ve(t,!0)||e.isElementAccessExpression(t)&&kt(t))return 5}return 0}function Ge(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function He(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 211:return H(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 199:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Qe(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return 283===t.moduleReference.kind?t.moduleReference.expression:void 0;case 203:return Q(t)?t.argument.literal:void 0;case 211:return t.arguments[0];case 267:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Xe(e){return 351===e.kind||344===e.kind||345===e.kind}function Ye(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Re(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ze(e){switch(e.kind){case 242:var t=et(e);return t&&t.initializer;case 170:case 302:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&267===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(function(e){return nt(t,e)}));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 302===r.kind||277===r.kind||170===r.kind||243===r.kind&&209===t.kind||252===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ze(r.parent.parent)===t||Ye(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Ye(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0}(r)||Ze(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(e){for(var t=e.parent;;){switch(t.kind){case 225:var r=t.operatorToken.kind;return Jr(r)&&t.left===e?63===r||jr(r)?1:2:0;case 223:case 224:var n=t.operator;return 45===n||46===n?2:0;case 248:case 249:return t.initializer===e?1:0;case 215:case 207:case 229:case 234:e=t;break;case 304:e=t.parent;break;case 303:if(t.name!==e)return 0;e=t.parent;break;case 302:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ut(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function dt(e){return ut(e,215)}function pt(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function _t(t){return Wr(t)||e.isClassExpression(t)}function ft(e){return _t(gt(e))}function gt(t){return e.isExportAssignment(t)?t.expression:t.right}function mt(t){var r=ht(t);if(r&&Se(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function ht(e){var t=bt(e.heritageClauses,95);return t&&t.types.length>0?t.types[0]:void 0}function yt(t){if(Se(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=bt(t.heritageClauses,118);return null==r?void 0:r.types}function vt(e){var t=bt(e.heritageClauses,95);return t?t.types:void 0}function bt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===b(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ne,e.getEffectiveInitializer=Fe,e.getDeclaredExpandoInitializer=function(e){var t=Fe(e);return t&&we(t,$r(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=$r(t.parent.left);return we(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&we(r.right,n);if(i&&Pe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Be(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&we(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=we,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&we(t.right,$r(r))&&Wr(r)&&Pe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Pe,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Me,e.isModuleExportsAccessExpression=Le,e.getAssignmentDeclarationKind=Re,e.isBindableObjectDefinePropertyCall=Be,e.isLiteralLikeAccess=je,e.isLiteralLikeElementAccess=Je,e.isBindableStaticAccessExpression=Ue,e.isBindableStaticElementAccessExpression=ze,e.isBindableStaticNameExpression=Ve,e.getNameOrArgument=Ke,e.getElementOrPropertyAccessArgumentExpressionOrName=We,e.getElementOrPropertyAccessName=qe,e.getAssignmentDeclarationPropertyAccessKind=$e,e.getInitializerOfBinaryExpression=Ge,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Re(t)},e.isSpecialPropertyDeclaration=function(t){return Se(t)&&t.parent&&243===t.parent.kind&&(!e.isElementAccessExpression(t)||Je(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Ne(r)&&!Ne(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 261===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n;switch(t.kind){case 259:return null===(r=e.findAncestor(t.initializer,(function(e){return Ce(e,!0)})))||void 0===r?void 0:r.arguments[0];case 272:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 271:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return He(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=He,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 272:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 271:return t;case 278:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 167:case 172:case 171:case 303:case 302:case 170:case 169:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Xe,e.isTypeAlias=function(t){return Xe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=function(t,r){var n;ne(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),167===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(166===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Xe);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=lt,e.isAssignmentTarget=function(e){return 0!==lt(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 240:case 242:case 253:case 244:case 254:case 269:case 295:case 296:case 255:case 247:case 248:case 249:case 245:case 246:case 257:case 298:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ut(e,194)},e.walkUpParenthesizedExpressions=dt,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&194===e.kind;)t=e,e=e.parent;return[t,e]},e.skipTypeParentheses=function(t){for(;e.isParenthesizedTypeNode(t);)t=t.type;return t},e.skipParentheses=pt,e.isDeleteTarget=function(e){return(209===e.kind||210===e.kind)&&((e=dt(e.parent))&&219===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Re(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Tt(t)&&165===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 170:case 169:case 172:case 171:case 175:case 176:case 305:case 302:case 209:return t.name===e;case 164:return t.right===e;case 206:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return!!(271===t.kind||270===t.kind||273===t.kind&&t.name||274===t.kind||280===t.kind||276===t.kind||281===t.kind||277===t.kind&&ft(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Re(t)&&ft(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&_t(t.parent.right))},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 164:do{t=t.parent}while(164===t.parent.kind);return e(t)}},e.isAliasableExpression=_t,e.exportAssignmentIsAlias=ft,e.getExportAssignmentExpression=gt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 303===e.kind?e.name:302===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=mt,e.getClassExtendsHeritageElement=ht,e.getEffectiveImplementsTypeNodes=yt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?vt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(mt(t)),yt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=vt,e.getHeritageClause=bt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.getRootEtsComponent=function(t){for(;t;){if(e.isEtsComponentExpression(t))return t;t=t.expression}},e.isKeyword=xt,e.isContextualKeyword=Dt,e.isNonContextualKeyword=St,e.isFutureReservedKeyword=function(e){return 118<=e&&e<=126},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&St(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&xt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!Dt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 261:case 216:case 172:e.asteriskToken&&(t|=1);case 217:Cr(e,512)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 261:case 216:case 217:case 172:return void 0!==e.body&&void 0===e.asteriskToken&&Cr(e,512)}return!1},e.isStringOrNumericLiteralLike=Tt,e.isSignedNumericLiteral=Ct,e.hasDynamicName=Et,e.isDynamicName=kt,e.getPropertyNameForPropertyNameNode=At,e.isPropertyNameLiteral=Nt,e.getTextOfIdentifierOrLiteral=Ft,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#".concat(e.getSymbolId(t),"@").concat(r)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 167===wt(e).kind},e.getRootDeclaration=wt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 174===t||216===t||261===t||217===t||172===t||175===t||176===t||267===t||311===t},e.nodeIsSynthesized=Pt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Ot(e),r=212===e.kind&&void 0!==e.arguments;return It(e.kind,t,r)},e.getOperatorAssociativity=It,e.getExpressionPrecedence=function(e){var t=Ot(e),r=212===e.kind&&void 0!==e.arguments;return Mt(e.kind,t,r)},e.getOperator=Ot,function(e){e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={})),e.getOperatorPrecedence=Mt,e.getBinaryOperatorPrecedence=Lt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 294:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,Nn)},lookup:function(r){var i;i=r.file?n.get(r.file.fileName):t;if(!i)return;var a=e.binarySearch(i,r,e.identity,Nn);if(a>=0)return i[a];return},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));if(!t.length)return a;return a.unshift.apply(a,t),a}}};var Rt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Bt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,jt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Jt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Ut=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function zt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Vt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Ut.get(e)||zt(e.charCodeAt(0))}function Kt(e,t){var r=96===t?Jt:39===t?jt:Bt;return e.replace(r,Vt)}e.escapeString=Kt;var Wt=/[^\u0000-\u007F]/g;function qt(e,t){return e=Kt(e,t),Wt.test(e)?e.replace(Wt,(function(e){return zt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=qt;var $t=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Gt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Ht=new e.Map(e.getEntries({'"':""","'":"'"}));function Qt(e){return 0===e.charCodeAt(0)?"�":Ht.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Xt(e,t){var r=39===t?Gt:$t;return e.replace(r,Qt)}e.escapeJsxAttributeString=Xt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Yt=[""," "];function Zt(e){for(var t=Yt[1],r=Yt.length;r<=e;r++)Yt.push(Yt[r-1]+t);return Yt[e]}function er(){return Yt[1].length}function tr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function rr(e,t,r){return t.moduleName||ir(e,t.fileName,r&&r.fileName)}function nr(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ir(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=gi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function ar(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?ur(e,a,r,n,i):e,s=or(o);return gi(o)+s}function or(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":e.fileExtensionIsOneOf(t,[".ets"])?".d.ets":".d.ts"}function sr(e){return e.outFile||e.out}function cr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&De(e))&&!e.isDeclarationFile&&(!t.isSourceFileFromExternalLibrary(e)||$(t.getCompilerOptions().emitNodeModulesFiles))&&(r||!(q(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function lr(e,t,r){return ur(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ur(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function dr(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(dr(e.getDirectoryPath(t),r,n),r(t))}function pr(t,r){return e.computeLineOfPosition(t,r)}function _r(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&f(t.body)}))}function fr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&gr(e.parameters[0]);return e.parameters[t?1:0]}}function gr(e){return mr(e.name)}function mr(e){return!!e&&79===e.kind&&hr(e)}function hr(e){return 109===e.originalKeywordKind}function yr(t){if(Se(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!Se(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function vr(e,t,r,n){br(e,t,r.pos,n)}function br(e,t,r,n){n&&n.length&&r!==n[0].pos&&pr(e,r)!==pr(e,n[0].pos)&&t.writeLine()}function xr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l=0&&e.kind<=163?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Lr(e)),!t||4096&e.modifierFlagsCache||!r&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Mr(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return Pr(e,!0)}function Or(e){return Pr(e,!1)}function Mr(t){var r=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Lr(t){var r=e.canHaveModifiers(t)?Rr(t.modifiers):0;return(4&t.flags||79===t.kind&&t.isInJSDocNamespace)&&(r|=1),r}function Rr(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Ur(e){var t=zr(e);return t&&!t.isImplements?t.class:void 0}function zr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:118===t.parent.token}:void 0}function Vr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Jr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Kr(e){return void 0!==Ur(e)}function Wr(e){return 79===e.kind||qr(e)}function qr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Wr(t.expression)}function $r(e){return Ue(e)&&"prototype"===qe(e)}function Gr(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=Zt,e.getIndentSize=er,e.isNightly=function(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=tr,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(tr(t))},e.getResolvedExternalModuleName=rr,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Qe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==nr(t,i.path).indexOf(nr(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return rr(t,i)}},e.getExternalModuleNameFromPath=ir,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?gi(lr(e,t,n.outDir)):gi(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return ar(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=ar,e.getDeclarationEmitExtensionForPath=or,e.getPossibleOriginalInputExtensionForExtension=function(t){return e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},e.outFile=sr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(sr(i)){var a=Mn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&cr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return cr(e,t,n)}))},e.sourceFileMayBeEmitted=cr,e.getSourceFilePathInNewDir=lr,e.getSourceFilePathInNewDirWorker=ur,e.writeFile=function(t,r,n,i,a,o,s){t.writeFile(n,i,a,(function(t){r.add(En(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){dr(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=pr,e.getFirstConstructorWithBody=_r,e.getSetAccessorValueParameter=fr,e.getSetAccessorTypeAnnotationNode=function(e){var t=fr(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(gr(r))return r}},e.parameterIsThisKeyword=gr,e.isThisIdentifier=mr,e.isThisInTypeQuery=function(t){if(!mr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 184===t.parent.kind},e.identifierIsThisKeyword=hr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Et(r)?(n=r,175===r.kind?a=r:176===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&Er(t)===Er(r)&&(At(t.name)===At(r.name)&&(n?i||(i=t):n=t,175!==t.kind||a||(a=t),176!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=yr,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Se(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(326===t.parent.kind&&t.parent.tags.some(Xe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=fr(e);return t&&yr(t)},e.emitNewLineBeforeLeadingComments=vr,e.emitNewLineBeforeLeadingCommentsOfPosition=br,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&pr(e,r)!==pr(e,n)&&t.writeLine()},e.emitComments=xr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(d){var g=pr(r,d.end);if(pr(r,f.pos)>=g+2)break}u.push(f),d=f}if(u.length){g=pr(r,e.last(u).end);pr(r,e.skipTrivia(t,a.pos))>=g+2&&(vr(r,n,a,c),xr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end})}}return l},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,d=s.line;u0){var f=_%er(),g=Zt((_-f)/er());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Dr(t,a,n,o,u,p),u=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Ir(e)},e.hasSyntacticModifiers=function(e){return 0!==Or(e)},e.hasEffectiveModifier=Tr,e.hasSyntacticModifier=Cr,e.isStatic=Er,e.hasIllegalDecorators=function(t){return e.canHaveIllegalDecorators(t)},e.hasStaticModifier=kr,e.hasOverrideModifier=function(e){return Tr(e,16384)},e.hasAbstractModifier=function(e){return Cr(e,256)},e.hasAmbientModifier=function(e){return Cr(e,2)},e.hasAccessorModifier=function(e){return Cr(e,128)},e.hasEffectiveReadonlyModifier=Ar,e.hasDecorators=Nr,e.getSelectedEffectiveModifierFlags=Fr,e.getSelectedSyntacticModifierFlags=wr,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Pr(e,!0,!0)},e.getSyntacticModifierFlags=Or,e.getEffectiveModifierFlagsNoCache=function(e){return Lr(e)|Mr(e)},e.getSyntacticModifierFlagsNoCache=Lr,e.modifiersToFlags=Rr,e.modifierToFlag=Br,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=jr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return jr(e.operatorToken.kind)},e.isAssignmentOperator=Jr,e.tryGetClassExtendingExpressionWithTypeArguments=Ur,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zr,e.isAssignmentExpression=Vr,e.isLeftHandSideOfAssignment=function(e){return Vr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Vr(e,!0)){var t=e.left.kind;return 208===t||207===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Kr,e.isEntityNameExpression=Wr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 164:do{e=e.left}while(79!==e.kind);return e;case 209:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||109===t.kind||107===t.kind||235===t.kind||209===t.kind&&e(t.expression)||215===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=qr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+J(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+At(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=$r,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 164===e.parent.kind&&e.parent.right===e||209===e.parent.kind&&e.parent.name===e},e.isRightSideOfAccessExpression=Gr,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 208===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 207===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Cr(t.declarations[0],1024)}(t)&&t.declarations)for(var r=0,n=t.declarations;r>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,l=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Hr.charAt(r)+Hr.charAt(n)+Hr.charAt(i)+Hr.charAt(a),c+=3;return o}function Xr(t,r){var n=e.isString(r)?r:r.readFile(t);if(n){var i=e.parseConfigFileTextToJson(t,n);return i.error?void 0:i.config}}e.convertToBase64=Qr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Qr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r=t||-1===r),{pos:t,end:r}}function tn(e,t){return en(t,e.end)}function rn(t){var r=e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return r&&!vi(r.end)?tn(t,r.end):t}function nn(e,t,r){return an(on(e,r,!1),t.end,r)}function an(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function on(t,r,n){return vi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function sn(e){return void 0!==e.initializer}function cn(e){return 33554432&e.flags?e.checkFlags:0}function ln(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 215:case 207:return ln(r);case 224:case 223:var n=r.operator;return 45===n||46===n?c():0;case 225:var i=r,a=i.left,o=i.operatorToken;return a===t&&Jr(o.kind)?63===o.kind?1:c():0;case 209:return r.name!==t?0:ln(r);case 302:var s=ln(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 303:return t===r.objectAssignmentInitializer?0:ln(r.parent);default:return 0}function c(){return r.parent&&243===dt(r.parent).kind?1:2}}function un(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function dn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function pn(e){return 209===e.kind||210===e.kind}function _n(e){for(;pn(e);)e=e.expression;return e}function fn(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function gn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function mn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function hn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function yn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function vn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function bn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function xn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function Dn(e){return Zr&&Zr[e.key]||e.message}function Sn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Tn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=xn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function En(e){var t=Dn(e);return arguments.length>1&&(t=xn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function kn(e){return e.file?e.file.path:void 0}function An(t,r){return Nn(t,r)||function(t,r){if(!t.relatedInformation&&!r.relatedInformation)return 0;if(t.relatedInformation&&r.relatedInformation)return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return An(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function Nn(t,r){return e.compareStringsCaseSensitive(kn(t),kn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||Fn(t.messageText,r.messageText)||0}function Fn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function wn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,wn)}function Pn(e){return e.isDeclarationFile?void 0:wn(e)}function In(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts",".mjs",".mts"])||t.isDeclarationFile)||void 0}function On(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function Mn(t){return"number"==typeof t.module?t.module:On(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Ln(t){return t.moduleDetection||(Mn(t)===e.ModuleKind.Node16||Mn(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Rn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(Mn(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Bn(e){return!(!e.declaration&&!e.composite)}function jn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Jn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Un(e,t){return t.strictFlag?jn(e,t.name):e[t.name]}function zn(t,r,n){return void 0!==t&&("node_modules"===r(t)||n&&"oh_modules"===r(t)||e.startsWith(t,"@"))}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=en,e.moveRangeEnd=function(e,t){return en(e.pos,t)},e.moveRangePos=tn,e.moveRangePastDecorators=rn,e.moveRangePastModifiers=function(t){var r=e.canHaveModifiers(t)?e.lastOrUndefined(t.modifiers):void 0;return r&&!vi(r.end)?tn(t,r.end):rn(t)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return en(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return nn(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return an(on(e,r,!1),on(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return an(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=nn,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return an(e.end,on(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=on(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!an(e.pos,e.end,t)},e.positionsAreOnSameLine=an,e.getStartPositionOfRange=on,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 266:case 267:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,sn)},e.isWatchSet=function(t){return t.watch&&e.hasProperty(t,"watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=cn,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,e.isSetAccessorDeclaration)||32768&t.flags&&e.find(t.declarations,e.isGetAccessorDeclaration)||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&cn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===ln(e)},e.isWriteAccess=function(e){return 0!==ln(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Yr||(Yr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=un,e.mutateMap=function(e,t,r){un(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=dn(e);return!!t&&Cr(t,256)}return!1},e.getClassLikeDeclarationOfSymbol=dn,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:D(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){f(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=180&&e<=203||132===e||158===e||149===e||161===e||150===e||135===e||153===e||154===e||115===e||156===e||145===e||232===e||318===e||319===e||320===e||321===e||322===e||323===e||324===e},e.isAccessExpression=pn,e.getNameOfAccessExpression=function(t){return 209===t.kind?t.name:(e.Debug.assert(210===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 275===e.kind||279===e.kind},e.getLeftmostAccessExpression=_n,e.forEachNameInAccessChainWalkingLeft=function(t,r){if(pn(t.parent)&&Gr(t))return function t(n){if(209===n.kind){if(void 0!==(i=r(n.name)))return i}else if(210===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}if(pn(n.expression))return t(n.expression);if(e.isIdentifier(n.expression))return r(n.expression);return}(t.parent)},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 224:e=e.operand;continue;case 225:e=e.left;continue;case 226:e=e.condition;continue;case 213:e=e.tag;continue;case 211:if(t)return e;case 233:case 210:case 209:case 234:case 356:case 237:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return hn},getTokenConstructor:function(){return yn},getIdentifierConstructor:function(){return vn},getPrivateIdentifierConstructor:function(){return hn},getSourceFileConstructor:function(){return hn},getSymbolConstructor:function(){return fn},getTypeConstructor:function(){return gn},getSignatureConstructor:function(){return mn},getSourceMapSourceConstructor:function(){return bn}},e.setObjectAllocator=function(t){Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=xn,e.setLocalizedDiagnosticMessages=function(e){Zr=e},e.maybeSetLocalizedDiagnosticMessages=function(e){!Zr&&e&&(Zr=e())},e.getLocaleSpecificMessage=Dn,e.createDetachedDiagnostic=function(e,t,r,n){z(void 0,t,r);var i=Dn(n);return arguments.length>4&&(i=xn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=xn(r,arguments,2)),r},e.createCompilerDiagnostic=En,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=Dn(t);return arguments.length>2&&(r=xn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=An,e.compareDiagnosticsSkipRelatedInformation=Nn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getSetExternalModuleIndicator=function(t){switch(Ln(t)){case e.ModuleDetectionKind.Force:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(Pn),r.push(In);var n=e.or.apply(void 0,r);return function(e){e.externalModuleIndicator=n(e)}}},e.getEmitScriptTarget=On,e.getEmitModuleKind=Mn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;if(void 0===r)switch(Mn(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=Ln,e.hasJsonModuleEmitEnabled=function(t){switch(Mn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Bn(e)||!e.declarationMap)},e.getESModuleInterop=Rn,e.getAllowSyntheticDefaultImports=function(t){var r=Mn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Rn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Bn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=jn,e.getAllowJSCompilerOption=Jn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?On(e)>=9:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return s(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return s(r,t,e.affectsEmitOptionDeclarations)},e.compilerOptionsAffectDeclarationPath=function(t,r){return s(r,t,e.affectsDeclarationPathOptionDeclarations)},e.getCompilerOptionValue=Un,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r=2&&s.length>=2&&!zn(o[o.length-2],i,a)&&!zn(s[s.length-2],i,a)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),c=!0;return c?[e.getPathFromPathComponents(o),e.getPathFromPathComponents(s)]:void 0}(o,s,t,r,a)||e.emptyArray,l=c[0],u=c[1];l&&u&&n.setSymlinkedDirectory(u,{real:l,realPath:e.toPath(l,t,r)})}}},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var Vn=/[^\w\s\/]/g;function Kn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Vn,Kn)};var Wn=[42,63];e.commonPackageFolders=["node_modules","oh_modules","bower_components","jspm_packages"];var qn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),$n={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ti(e,$n.singleAsteriskRegexFragment)}},Gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ti(e,Gn.singleAsteriskRegexFragment)}},Hn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return ti(e,Hn.singleAsteriskRegexFragment)}},Qn={files:$n,directories:Gn,exclude:Hn};function Xn(e,t,r){var n=Yn(e,t,r);if(n&&n.length){var i=n.map((function(e){return"(".concat(e,")")})).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Yn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&ei(e,r,n,Qn[n])}))}function Zn(e){return!/[.*?]/.test(e)}function ei(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Zn(d)&&u.push("**","*");for(var p=0,_=0,f=u;_0;)c+=")?",p--;return c}}function ti(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ri(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Yn(n,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:Xn(n,o,"files"),includeDirectoryPattern:Xn(n,o,"directories"),excludePattern:Xn(r,o,"exclude"),basePaths:ii(t,n,i)}}function ni(e,t){return new RegExp(e,t?"":"i")}function ii(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0)}function bi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||".ets"===e||".d.ets"===e}function xi(t){return e.fileExtensionIs(t,".ets")?".ets":e.find(fi,(function(r){return e.fileExtensionIs(t,r)}))}function Di(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Di)}function Si(e,t){return e.pos=t,e}function Ti(e,t){return e.end=t,e}function Ci(e,t,r){return Ti(Si(e,t),r)}function Ei(e,t){return e&&t&&(e.parent=t),e}function ki(t){return!e.isOmittedExpression(t)}function Ai(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}function Ni(e){return 259===e.kind&&298===e.parent.kind}function Fi(e){return(+e).toString()===e}function wi(e){switch(e.kind){case 166:case 262:case 264:case 265:case 266:case 351:case 344:case 345:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}e.removeFileExtension=gi,e.tryRemoveExtension=mi,e.removeExtension=hi,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,fi,!1)},e.tryParsePattern=yi,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return yi(e)}))},e.positionIsSynthesized=vi,e.extensionIsTS=bi,e.resolutionExtensionIsTSOrJson=function(e){return bi(e)||".json"===e},e.extensionFromPath=function(t){var r=xi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==xi(e)},e.tryGetExtensionFromPath=xi,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:v(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=Di,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(l=f;l>=0;l--){var h=m<<16|o[l],y=h/10|0;o[l]=y,m=h-10*y,y&&!g&&(f=l,g=!0)}_=m+_}return _},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(16777216&t.flags)||be(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 297:return!0;case 209:case 232:return!1;default:return"quit"}}));return 118===(null==r?void 0:r.token)||264===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||209===e.kind;)e=e.parent;if(165!==e.kind)return!1;if(Cr(e.parent,256))return!0;var t=e.parent.parent.kind;return 264===t||185===t}(t)||!(ye(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)},e.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},e.getNodeModulePathParts=function(e,t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf(t,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=e.indexOf(t,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=function(e){var t;return 346===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type},e.isTypeDeclaration=wi,e.canHaveExportModifier=function(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||wi(t)||e.isModuleDeclaration(t)&&!N(t)&&!A(t)},e.isCalledStructDeclaration=function(e){return!!e&&e.some((function(e){return 263===e.kind}))},e.getNameOfDecorator=function(t){var r=t.expression;return e.isIdentifier(r)?r.escapedText.toString():e.isCallExpression(r)&&e.isIdentifier(r.expression)?r.expression.escapedText.toString():void 0}}(d||(d={})),function(e){e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(t){t&&t.length&&(i&&(t=e.getIndentString(n)+t,i=!1),r+=t,c(t))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*e.getIndentSize():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&228===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r,n){var i=e.skipPartiallyEmittedExpressions(r);return!e.isLeftHandSideExpression(i)||212===i.kind&&!i.arguments||!n&&e.isOptionalChain(i)?e.setTextRange(t.createParenthesizedExpression(r),r):r}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(225,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){switch(e.kind){case 182:case 183:case 192:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 190:case 191:return t.createParenthesizedType(e)}return u(e)}function p(e){switch(e.kind){case 190:case 191:return t.createParenthesizedType(e)}return d(e)}function _(e){return 191===e.kind?t.createParenthesizedType(e):p(e)}function f(e){switch(e.kind){case 193:case 196:case 184:return t.createParenthesizedType(e)}return _(e)}function g(e){return m(e)?t.createParenthesizedType(e):e}function m(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?m(t.type):e.isConditionalTypeNode(t)?m(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?m(e.last(t.types)):!!e.isInferTypeNode(t)&&(!!t.typeParameter.constraint&&m(t.typeParameter.constraint))}function h(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function y(e,t){return 0===t?h(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}}(d||(d={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 205:case 207:return o(e);case 204:case 208:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(d||(d={})),function(e){var t,r=0;function n(n,_){var f=8&n?a:o,g=e.memoize((function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(F)})),m=e.memoize((function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(F)})),h=e.memoizeOne((function(e){return function(t,r){return Jt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Bt(e,t)}})),b=e.memoizeOne((function(e){return function(t){return jt(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return P(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return _n(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(_n(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return pn(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(pn(e,r,t.postfix),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return In(e,t,r)}})),k=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=yn(t));return t.tagName!==r||t.comment!==n?f(In(e,r,n),t):t}(e,t,r,n)}})),A=e.memoizeOne((function(e){return function(t,r,n){return On(e,t,r,n)}})),N=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=yn(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(On(e,r,n,i),t):t}(e,t,r,n,i)}})),F={get parenthesizer(){return g()},get converters(){return m()},baseFactory:_,flags:n,createNodeArray:w,createNumericLiteral:K,createBigIntLiteral:W,createStringLiteral:$,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:G,createLiteralLikeNode:function(e,t){switch(e){case 8:return K(t,0);case 9:return W(t);case 10:return $(t,void 0);case 11:return Vn(t,!1);case 12:return Vn(t,!0);case 13:return G(t);case 14:return Wt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:Y,createLoopVariable:function(e){var t=2;e&&(t|=8);return Q("",t,void 0,void 0)},createUniqueName:function(t,r,n,i){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Q(t,3|r,n,i)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);return ee(t)},createUniquePrivateName:function(t,r,n){t&&!e.startsWith(t,"#")&&e.Debug.fail("First character of private identifier must be #: "+t);return te(null!=t?t:"",8|(t?3:1),r,n)},getGeneratedPrivateNameForNode:function(t,r,n){var i=e.isMemberName(t)?e.formatGeneratedName(!0,r,t,n,e.idText):"#generated@".concat(e.getNodeId(t)),a=r||n?16:0,o=te(i,4|a,r,n);return o.original=t,o},createToken:ne,createSuper:function(){return ne(107)},createThis:ie,createNull:function(){return ne(105)},createTrue:ae,createFalse:oe,createModifier:se,createModifiersFromModifierFlags:ce,createQualifiedName:le,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(le(t,r),e):e},createComputedPropertyName:ue,updateComputedPropertyName:function(e,t){return e.expression!==t?f(ue(t),e):e},createTypeParameterDeclaration:de,updateTypeParameterDeclaration:pe,createParameterDeclaration:_e,updateParameterDeclaration:fe,createDecorator:ge,updateDecorator:function(e,t){return e.expression!==t?f(ge(t),e):e},createPropertySignature:me,updatePropertySignature:he,createPropertyDeclaration:ye,updatePropertyDeclaration:ve,createMethodSignature:be,updateMethodSignature:xe,createMethodDeclaration:De,updateMethodDeclaration:Se,createConstructorDeclaration:Ce,updateConstructorDeclaration:Ee,createGetAccessorDeclaration:ke,updateGetAccessorDeclaration:Ae,createSetAccessorDeclaration:Ne,updateSetAccessorDeclaration:Fe,createCallSignature:we,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(we(t,r,n),e):e},createConstructSignature:Pe,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(Pe(t,r,n),e):e},createIndexSignature:Ie,updateIndexSignature:Oe,createClassStaticBlockDeclaration:Te,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.illegalDecorators=t.illegalDecorators,e.modifiers=t.modifiers);return f(e,t)}(Te(t),e):e},createTemplateLiteralTypeSpan:Me,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Me(t,r),e):e},createKeywordTypeNode:function(e){return ne(e)},createTypePredicateNode:Le,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Le(t,r,n),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Re(t,r),e):e},createFunctionTypeNode:Be,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?function(e,t){e!==t&&(e.modifiers=t.modifiers);return R(e,t)}(Be(t,r,n),e):e},createConstructorTypeNode:je,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?si(t):e.reduceLeft(t,F.createComma)},getInternalName:function(e,t,r){return gi(e,t,r,49152)},getLocalName:function(e,t,r){return gi(e,t,r,16384)},getExportName:mi,getDeclarationName:function(e,t,r){return gi(e,t,r)},getNamespaceMemberName:hi,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return hi(t,gi(r),n,i);return mi(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a))))return function(e,t){switch(e.kind){case 215:return At(e,t);case 214:return Et(e,e.type,t);case 233:return Yt(e,t,e.type);case 237:return rr(e,t,e.type);case 234:return er(e,t);case 356:return ai(e,t)}}(r,t(r.expression,n));var a;return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=Tr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:yi,copyPrologue:function(e,t,r,n){var i=vi(e,t,0,r);return bi(e,t,i,n)},copyStandardPrologue:vi,copyCustomPrologue:bi,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(w(i([yi()],t,!0)),t);return t},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||sr(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=xi(t,e.isPrologueDirective,0),a=xi(t,e.isHoistedFunction,n),o=xi(t,e.isHoistedVariableStatement,a),s=xi(r,e.isPrologueDirective,0),c=xi(r,e.isHoistedFunction,s),l=xi(r,e.isHoistedVariableStatement,c),u=xi(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;u>l&&d.splice.apply(d,i([o,0],r.slice(l,u),!1));l>c&&d.splice.apply(d,i([a,0],r.slice(c,l),!1));c>s&&d.splice.apply(d,i([n,0],r.slice(s,c),!1));if(s>0)if(0===n)d.splice.apply(d,i([0,0],r.slice(0,s),!1));else{for(var p=new e.Map,_=0;_=0;_--){var g=r[_];p.has(g.expression.text)||d.unshift(g)}}if(e.isNodeArray(t))return e.setTextRange(w(d,t.hasTrailingComma),t);return t},updateModifiers:function(t,r){var n,i;i="number"==typeof r?ce(r):r;return e.isTypeParameterDeclaration(t)?pe(t,i,t.name,t.constraint,t.default):e.isParameter(t)?fe(t,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isConstructorTypeNode(t)?ze(t,i,t.typeParameters,t.parameters,t.type):e.isPropertySignature(t)?he(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ve(t,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?xe(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?Se(t,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?Ee(t,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ae(t,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Fe(t,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Oe(t,i,t.parameters,t.type):e.isFunctionExpression(t)?Ft(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?It(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Ht(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isStructDeclaration(t)?Or(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?lr(t,i,t.declarationList):e.isFunctionDeclaration(t)?Fr(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Pr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Lr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Br(t,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Jr(t,i,t.name,t.members):e.isModuleDeclaration(t)?zr(t,i,t.name,t.body):e.isImportEqualsDeclaration(t)?$r(t,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Hr(t,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?on(t,i,t.expression):e.isExportDeclaration(t)?cn(t,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return F;function w(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function P(e){return _.createBaseNode(e)}function I(e){var t=P(e);return t.symbol=void 0,t.localSymbol=void 0,t.locals=void 0,t.nextContainer=void 0,t}function O(t,r,n){var i=I(t);if(n=Si(n),i.name=n,e.canHaveModifiers(i)&&(i.modifiers=Di(r),i.transformFlags|=d(i.modifiers)),n)switch(i.kind){case 172:case 175:case 176:case 170:case 302:if(e.isIdentifier(n)){i.transformFlags|=l(n);break}default:i.transformFlags|=u(n)}return i}function M(e,t,r,n){var i=O(e,t,r);return i.typeParameters=Di(n),i.transformFlags|=d(i.typeParameters),n&&(i.transformFlags|=1),i}function L(e,t,r,n,i,a){var o=M(e,t,r,n);return o.parameters=w(i),o.type=a,o.transformFlags|=d(o.parameters)|u(o.type),a&&(o.transformFlags|=1),o.typeArguments=void 0,o}function R(e,t){return e!==t&&(e.typeArguments=t.typeArguments),f(e,t)}function B(e,t,r,n,i,a,o){var s=L(e,t,r,n,i,a);return s.body=o,s.transformFlags|=-67108865&u(s.body),o||(s.transformFlags|=1),s}function j(e,t,r,n,i){var a=M(e,t,r,n);return a.heritageClauses=Di(i),a.transformFlags|=d(a.heritageClauses),a}function J(e,t,r,n,i,a){var o=j(e,t,r,n,i);return o.members=w(a),o.transformFlags|=d(o.members),o}function U(e,t,r,n){var i=O(e,t,r);return i.initializer=n,i.transformFlags|=u(i.initializer),i}function z(e,t,r,n,i){var a=U(e,t,r,i);return a.type=n,a.transformFlags|=u(n),n&&(a.transformFlags|=1),a}function V(e,t){var r=re(e);return r.text=t,r}function K(e,t){void 0===t&&(t=0);var r=V(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function W(t){var r=V(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=V(10,e);return r.singleQuote=t,r}function $(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function G(e){return V(13,e)}function H(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=_.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Q(e,t,n,i){var a=H(e,void 0);return a.autoGenerateFlags=t,a.autoGenerateId=r,a.autoGeneratePrefix=n,a.autoGenerateSuffix=i,r++,a}function X(e,t,r,n){var i=H(e,r);return t&&(i.typeArguments=w(t)),134===i.originalKeywordKind&&(i.transformFlags|=67108864),n&&(i.hasExtendedUnicodeEscape=n,i.transformFlags|=1024),i}function Y(e,t,r,n){var i=1;t&&(i|=8);var a=Q("",i,r,n);return e&&e(a),a}function Z(t,r,n,i){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),(n||i)&&(r|=16);var a=Q(t?e.isMemberName(t)?e.formatGeneratedName(!1,n,t,i,e.idText):"generated@".concat(e.getNodeId(t)):"",4|r,n,i);return a.original=t,a}function ee(t){var r=_.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=16777216,r}function te(e,t,n,i){var a=ee(e);return a.autoGenerateFlags=t,a.autoGenerateId=r,a.autoGeneratePrefix=n,a.autoGenerateSuffix=i,r++,a}function re(e){return _.createBaseTokenNode(e)}function ne(t){e.Debug.assert(t>=0&&t<=163,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=re(t),n=0;switch(t){case 133:n=384;break;case 124:case 122:case 123:case 147:case 127:case 137:case 86:case 132:case 149:case 161:case 145:case 150:case 102:case 146:case 162:case 153:case 135:case 154:case 115:case 158:case 156:n=1;break;case 107:n=134218752;break;case 125:n=1024;break;case 128:n=16777216;break;case 109:n=16384}return n&&(r.transformFlags|=n),r}function ie(){return ne(109)}function ae(){return ne(111)}function oe(){return ne(96)}function se(e){return ne(e)}function ce(e){var t=[];return 1&e&&t.push(se(94)),2&e&&t.push(se(137)),1024&e&&t.push(se(89)),2048&e&&t.push(se(86)),4&e&&t.push(se(124)),8&e&&t.push(se(122)),16&e&&t.push(se(123)),256&e&&t.push(se(127)),32&e&&t.push(se(125)),16384&e&&t.push(se(162)),64&e&&t.push(se(147)),128&e&&t.push(se(128)),512&e&&t.push(se(133)),32768&e&&t.push(se(102)),65536&e&&t.push(se(146)),t.length?t:void 0}function le(e,t){var r=P(164);return r.left=e,r.right=Si(t),r.transformFlags|=u(r.left)|l(r.right),r}function ue(e){var t=P(165);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|u(t.expression),t}function de(e,t,r,n){var i=O(166,e,t);return i.constraint=r,i.default=n,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.constraint!==n||e.default!==i?f(de(t,r,n,i),e):e}function _e(t,r,n,i,a,o){var s=z(167,t,n,a,o&&g().parenthesizeExpressionForDisallowedComma(o));return s.dotDotDotToken=r,s.questionToken=i,e.isThisIdentifier(s.name)?s.transformFlags=1:(s.transformFlags|=u(s.dotDotDotToken)|u(s.questionToken),i&&(s.transformFlags|=1),16476&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8192),(o||r)&&(s.transformFlags|=1024)),s}function fe(e,t,r,n,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?f(_e(t,r,n,i,a,o),e):e}function ge(e){var t=P(168);return t.expression=g().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|u(t.expression),t}function me(e,t,r,n){var i=O(169,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i.initializer=void 0,i}function he(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?function(e,t){e!==t&&(e.initializer=t.initializer);return f(e,t)}(me(t,r,n,i),e):e}function ye(t,r,n,i,a){var o=z(170,t,r,i,a);return o.questionToken=n&&e.isQuestionToken(n)?n:void 0,o.exclamationToken=n&&e.isExclamationToken(n)?n:void 0,o.transformFlags|=u(o.questionToken)|u(o.exclamationToken)|16777216,(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer)&&(o.transformFlags|=8192),(n||2&e.modifiersToFlags(o.modifiers))&&(o.transformFlags|=1),o}function ve(t,r,n,i,a,o){return t.modifiers!==r||t.name!==n||t.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||t.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||t.type!==a||t.initializer!==o?f(ye(r,n,i,a,o),t):t}function be(e,t,r,n,i,a){var o=L(171,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function xe(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?R(be(t,r,n,i,a,o),e):e}function De(t,r,n,i,a,o,s,c){var l=B(172,t,n,a,o,s,c);return l.asteriskToken=r,l.questionToken=i,l.transformFlags|=u(l.asteriskToken)|u(l.questionToken)|1024,i&&(l.transformFlags|=1),512&e.modifiersToFlags(l.modifiers)?l.transformFlags|=r?128:256:r&&(l.transformFlags|=2048),l.exclamationToken=void 0,l}function Se(e,t,r,n,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return f(e,t)}(De(t,r,n,i,a,o,s,c),e):e}function Te(e){var t=M(173,void 0,void 0,void 0);return t.body=e,t.transformFlags=16777216|u(e),t.illegalDecorators=void 0,t.modifiers=void 0,t}function Ce(e,t,r){var n=B(174,e,void 0,void 0,t,void 0,r);return n.transformFlags|=1024,n.illegalDecorators=void 0,n.typeParameters=void 0,n.type=void 0,n}function Ee(e,t,r,n){return e.modifiers!==t||e.parameters!==r||e.body!==n?function(e,t){e!==t&&(e.illegalDecorators=t.illegalDecorators,e.typeParameters=t.typeParameters,e.type=t.type);return R(e,t)}(Ce(t,r,n),e):e}function ke(e,t,r,n,i){var a=B(175,e,t,void 0,r,n,i);return a.typeParameters=void 0,a}function Ae(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.type!==i||e.body!==a?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return R(e,t)}(ke(t,r,n,i,a),e):e}function Ne(e,t,r,n){var i=B(176,e,t,void 0,r,void 0,n);return i.typeParameters=void 0,i.type=void 0,i}function Fe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return R(e,t)}(Ne(t,r,n,i),e):e}function we(e,t,r){var n=L(177,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Pe(e,t,r){var n=L(178,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ie(e,t,r){var n=L(179,e,void 0,void 0,t,r);return n.transformFlags=1,n}function Oe(e,t,r,n){return e.parameters!==r||e.type!==n||e.modifiers!==t?R(Ie(t,r,n),e):e}function Me(e,t){var r=P(202);return r.type=e,r.literal=t,r.transformFlags=1,r}function Le(e,t,r){var n=P(180);return n.assertsModifier=e,n.parameterName=Si(t),n.type=r,n.transformFlags=1,n}function Re(e,t){var r=P(181);return r.typeName=Si(e),r.typeArguments=t&&g().parenthesizeTypeArguments(w(t)),r.transformFlags=1,r}function Be(e,t,r){var n=L(182,void 0,void 0,e,t,r);return n.transformFlags=1,n.modifiers=void 0,n}function je(){for(var t=[],r=0;r0;default:return!0}}function gi(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(li(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function mi(e,t,r){return gi(e,t,r,8192)}function hi(t,r,n,i){var a=ft(t,e.nodeIsSynthesized(r)?r:li(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function yi(){return e.startOnNewLine(dr($("use strict")))}function vi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n=180&&e<=203)return-2;switch(e){case 211:case 212:case 207:case 204:case 205:return-2147450880;case 267:return-1941676032;case 167:case 214:case 237:case 233:case 356:case 215:case 107:case 209:case 210:default:return-2147483648;case 217:return-2072174592;case 216:case 261:return-1937940480;case 260:return-2146893824;case 262:case 230:return-2147344384;case 174:return-1937948672;case 170:return-2013249536;case 172:case 175:case 176:return-2005057536;case 132:case 149:case 161:case 145:case 153:case 150:case 135:case 154:case 115:case 166:case 169:case 171:case 177:case 178:case 179:case 264:case 265:return-2;case 208:return-2147278848;case 298:return-2147418112}}e.getTransformFlagsSubtreeExclusions=_;var f=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var m,h={createBaseSourceFileNode:function(e){return g(f.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(f.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(f.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(f.createBaseTokenNode(e))},createBaseNode:function(e){return g(f.createBaseNode(e))}};function y(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine,p=t.snippetElement;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=-268435457&n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==l&&(r.constantValue=l);if(u)for(var _=0,f=u;_0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,r){return t(e).snippetElement=r,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e},e.setTypeNode=function(e,r){return t(e).typeNode=r,e},e.getTypeNode=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}}(d||(d={})),function(e){function t(e){for(var t=[],r=1;r=2)return r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n);return t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n)},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&!!(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(d||(d={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 94===e.kind},e.isAsyncModifier=function(e){return 133===e.kind},e.isAssertsKeyword=function(e){return 130===e.kind},e.isAwaitKeyword=function(e){return 134===e.kind},e.isReadonlyKeyword=function(e){return 147===e.kind},e.isStaticModifier=function(e){return 125===e.kind},e.isAbstractModifier=function(e){return 127===e.kind},e.isOverrideModifier=function(e){return 162===e.kind},e.isAccessorModifier=function(e){return 128===e.kind},e.isSuperKeyword=function(e){return 107===e.kind},e.isImportKeyword=function(e){return 101===e.kind},e.isQualifiedName=function(e){return 164===e.kind},e.isComputedPropertyName=function(e){return 165===e.kind},e.isTypeParameterDeclaration=function(e){return 166===e.kind},e.isParameter=function(e){return 167===e.kind},e.isDecorator=function(e){return 168===e.kind},e.isPropertySignature=function(e){return 169===e.kind},e.isPropertyDeclaration=function(e){return 170===e.kind},e.isMethodSignature=function(e){return 171===e.kind},e.isMethodDeclaration=function(e){return 172===e.kind},e.isClassStaticBlockDeclaration=function(e){return 173===e.kind},e.isConstructorDeclaration=function(e){return 174===e.kind},e.isGetAccessorDeclaration=function(e){return 175===e.kind},e.isSetAccessorDeclaration=function(e){return 176===e.kind},e.isCallSignatureDeclaration=function(e){return 177===e.kind},e.isConstructSignatureDeclaration=function(e){return 178===e.kind},e.isIndexSignatureDeclaration=function(e){return 179===e.kind},e.isTypePredicateNode=function(e){return 180===e.kind},e.isTypeReferenceNode=function(e){return 181===e.kind},e.isFunctionTypeNode=function(e){return 182===e.kind},e.isConstructorTypeNode=function(e){return 183===e.kind},e.isTypeQueryNode=function(e){return 184===e.kind},e.isTypeLiteralNode=function(e){return 185===e.kind},e.isArrayTypeNode=function(e){return 186===e.kind},e.isTupleTypeNode=function(e){return 187===e.kind},e.isNamedTupleMember=function(e){return 200===e.kind},e.isOptionalTypeNode=function(e){return 188===e.kind},e.isRestTypeNode=function(e){return 189===e.kind},e.isUnionTypeNode=function(e){return 190===e.kind},e.isIntersectionTypeNode=function(e){return 191===e.kind},e.isConditionalTypeNode=function(e){return 192===e.kind},e.isInferTypeNode=function(e){return 193===e.kind},e.isParenthesizedTypeNode=function(e){return 194===e.kind},e.isThisTypeNode=function(e){return 195===e.kind},e.isTypeOperatorNode=function(e){return 196===e.kind},e.isIndexedAccessTypeNode=function(e){return 197===e.kind},e.isMappedTypeNode=function(e){return 198===e.kind},e.isLiteralTypeNode=function(e){return 199===e.kind},e.isImportTypeNode=function(e){return 203===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 202===e.kind},e.isTemplateLiteralTypeNode=function(e){return 201===e.kind},e.isObjectBindingPattern=function(e){return 204===e.kind},e.isArrayBindingPattern=function(e){return 205===e.kind},e.isBindingElement=function(e){return 206===e.kind},e.isArrayLiteralExpression=function(e){return 207===e.kind},e.isObjectLiteralExpression=function(e){return 208===e.kind},e.isPropertyAccessExpression=function(e){return 209===e.kind},e.isElementAccessExpression=function(e){return 210===e.kind},e.isCallExpression=function(e){return 211===e.kind},e.isNewExpression=function(e){return 212===e.kind},e.isTaggedTemplateExpression=function(e){return 213===e.kind},e.isTypeAssertionExpression=function(e){return 214===e.kind},e.isParenthesizedExpression=function(e){return 215===e.kind},e.isFunctionExpression=function(e){return 216===e.kind},e.isEtsComponentExpression=function(e){return 218===e.kind},e.isArrowFunction=function(e){return 217===e.kind},e.isDeleteExpression=function(e){return 219===e.kind},e.isTypeOfExpression=function(e){return 220===e.kind},e.isVoidExpression=function(e){return 221===e.kind},e.isAwaitExpression=function(e){return 222===e.kind},e.isPrefixUnaryExpression=function(e){return 223===e.kind},e.isPostfixUnaryExpression=function(e){return 224===e.kind},e.isBinaryExpression=function(e){return 225===e.kind},e.isConditionalExpression=function(e){return 226===e.kind},e.isTemplateExpression=function(e){return 227===e.kind},e.isYieldExpression=function(e){return 228===e.kind},e.isSpreadElement=function(e){return 229===e.kind},e.isClassExpression=function(e){return 230===e.kind},e.isOmittedExpression=function(e){return 231===e.kind},e.isExpressionWithTypeArguments=function(e){return 232===e.kind},e.isAsExpression=function(e){return 233===e.kind},e.isSatisfiesExpression=function(e){return 237===e.kind},e.isNonNullExpression=function(e){return 234===e.kind},e.isMetaProperty=function(e){return 235===e.kind},e.isSyntheticExpression=function(e){return 236===e.kind},e.isPartiallyEmittedExpression=function(e){return 356===e.kind},e.isCommaListExpression=function(e){return 357===e.kind},e.isTemplateSpan=function(e){return 238===e.kind},e.isSemicolonClassElement=function(e){return 239===e.kind},e.isBlock=function(e){return 240===e.kind},e.isVariableStatement=function(e){return 242===e.kind},e.isEmptyStatement=function(e){return 241===e.kind},e.isExpressionStatement=function(e){return 243===e.kind},e.isIfStatement=function(e){return 244===e.kind},e.isDoStatement=function(e){return 245===e.kind},e.isWhileStatement=function(e){return 246===e.kind},e.isForStatement=function(e){return 247===e.kind},e.isForInStatement=function(e){return 248===e.kind},e.isForOfStatement=function(e){return 249===e.kind},e.isContinueStatement=function(e){return 250===e.kind},e.isBreakStatement=function(e){return 251===e.kind},e.isReturnStatement=function(e){return 252===e.kind},e.isWithStatement=function(e){return 253===e.kind},e.isSwitchStatement=function(e){return 254===e.kind},e.isLabeledStatement=function(e){return 255===e.kind},e.isThrowStatement=function(e){return 256===e.kind},e.isTryStatement=function(e){return 257===e.kind},e.isDebuggerStatement=function(e){return 258===e.kind},e.isVariableDeclaration=function(e){return 259===e.kind},e.isVariableDeclarationList=function(e){return 260===e.kind},e.isFunctionDeclaration=function(e){return 261===e.kind},e.isClassDeclaration=function(e){return 262===e.kind},e.isStructDeclaration=function(e){return 263===e.kind},e.isInterfaceDeclaration=function(e){return 264===e.kind},e.isTypeAliasDeclaration=function(e){return 265===e.kind},e.isEnumDeclaration=function(e){return 266===e.kind},e.isModuleDeclaration=function(e){return 267===e.kind},e.isModuleBlock=function(e){return 268===e.kind},e.isCaseBlock=function(e){return 269===e.kind},e.isNamespaceExportDeclaration=function(e){return 270===e.kind},e.isImportEqualsDeclaration=function(e){return 271===e.kind},e.isImportDeclaration=function(e){return 272===e.kind},e.isImportClause=function(e){return 273===e.kind},e.isImportTypeAssertionContainer=function(e){return 301===e.kind},e.isAssertClause=function(e){return 299===e.kind},e.isAssertEntry=function(e){return 300===e.kind},e.isNamespaceImport=function(e){return 274===e.kind},e.isNamespaceExport=function(e){return 280===e.kind},e.isNamedImports=function(e){return 275===e.kind},e.isImportSpecifier=function(e){return 276===e.kind},e.isExportAssignment=function(e){return 277===e.kind},e.isExportDeclaration=function(e){return 278===e.kind},e.isNamedExports=function(e){return 279===e.kind},e.isExportSpecifier=function(e){return 281===e.kind},e.isMissingDeclaration=function(e){return 282===e.kind},e.isNotEmittedStatement=function(e){return 355===e.kind},e.isSyntheticReference=function(e){return 360===e.kind},e.isMergeDeclarationMarker=function(e){return 358===e.kind},e.isEndOfDeclarationMarker=function(e){return 359===e.kind},e.isExternalModuleReference=function(e){return 283===e.kind},e.isJsxElement=function(e){return 284===e.kind},e.isJsxSelfClosingElement=function(e){return 285===e.kind},e.isJsxOpeningElement=function(e){return 286===e.kind},e.isJsxClosingElement=function(e){return 287===e.kind},e.isJsxFragment=function(e){return 288===e.kind},e.isJsxOpeningFragment=function(e){return 289===e.kind},e.isJsxClosingFragment=function(e){return 290===e.kind},e.isJsxAttribute=function(e){return 291===e.kind},e.isJsxAttributes=function(e){return 292===e.kind},e.isJsxSpreadAttribute=function(e){return 293===e.kind},e.isJsxExpression=function(e){return 294===e.kind},e.isCaseClause=function(e){return 295===e.kind},e.isDefaultClause=function(e){return 296===e.kind},e.isHeritageClause=function(e){return 297===e.kind},e.isCatchClause=function(e){return 298===e.kind},e.isPropertyAssignment=function(e){return 302===e.kind},e.isShorthandPropertyAssignment=function(e){return 303===e.kind},e.isSpreadAssignment=function(e){return 304===e.kind},e.isEnumMember=function(e){return 305===e.kind},e.isUnparsedPrepend=function(e){return 307===e.kind},e.isSourceFile=function(e){return 311===e.kind},e.isBundle=function(e){return 312===e.kind},e.isUnparsedSource=function(e){return 313===e.kind},e.isJSDocTypeExpression=function(e){return 315===e.kind},e.isJSDocNameReference=function(e){return 316===e.kind},e.isJSDocMemberName=function(e){return 317===e.kind},e.isJSDocLink=function(e){return 330===e.kind},e.isJSDocLinkCode=function(e){return 331===e.kind},e.isJSDocLinkPlain=function(e){return 332===e.kind},e.isJSDocAllType=function(e){return 318===e.kind},e.isJSDocUnknownType=function(e){return 319===e.kind},e.isJSDocNullableType=function(e){return 320===e.kind},e.isJSDocNonNullableType=function(e){return 321===e.kind},e.isJSDocOptionalType=function(e){return 322===e.kind},e.isJSDocFunctionType=function(e){return 323===e.kind},e.isJSDocVariadicType=function(e){return 324===e.kind},e.isJSDocNamepathType=function(e){return 325===e.kind},e.isJSDoc=function(e){return 326===e.kind},e.isJSDocTypeLiteral=function(e){return 328===e.kind},e.isJSDocSignature=function(e){return 329===e.kind},e.isJSDocAugmentsTag=function(e){return 334===e.kind},e.isJSDocAuthorTag=function(e){return 336===e.kind},e.isJSDocClassTag=function(e){return 338===e.kind},e.isJSDocCallbackTag=function(e){return 344===e.kind},e.isJSDocPublicTag=function(e){return 339===e.kind},e.isJSDocPrivateTag=function(e){return 340===e.kind},e.isJSDocProtectedTag=function(e){return 341===e.kind},e.isJSDocReadonlyTag=function(e){return 342===e.kind},e.isJSDocOverrideTag=function(e){return 343===e.kind},e.isJSDocDeprecatedTag=function(e){return 337===e.kind},e.isJSDocSeeTag=function(e){return 352===e.kind},e.isJSDocEnumTag=function(e){return 345===e.kind},e.isJSDocParameterTag=function(e){return 346===e.kind},e.isJSDocReturnTag=function(e){return 347===e.kind},e.isJSDocThisTag=function(e){return 348===e.kind},e.isJSDocTypeTag=function(e){return 349===e.kind},e.isJSDocTemplateTag=function(e){return 350===e.kind},e.isJSDocTypedefTag=function(e){return 351===e.kind},e.isJSDocUnknownTag=function(e){return 333===e.kind},e.isJSDocPropertyTag=function(e){return 353===e.kind},e.isJSDocImplementsTag=function(e){return 335===e.kind},e.isSyntaxList=function(e){return 354===e.kind}}(d||(d={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function l(e,t){switch(void 0===t&&(t=15),e.kind){case 215:return!(16&t&&c(e))&&!!(1&t);case 214:case 233:case 237:return!!(2&t);case 234:return!!(4&t);case 356:return!!(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);l(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function p(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=p(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c0)if(c.length>1)for(var _=0,f=c;_=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],p=0,f=u;p0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(u(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(u(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(v||(v={}));var b=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};function x(e,t){return"object"==typeof e?S(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function D(t,r){return"string"==typeof t?t:function(t,r){return e.isGeneratedPrivateIdentifier(t)?r(t).slice(1):e.isGeneratedIdentifier(t)?r(t):e.isPrivateIdentifier(t)?t.escapedText.slice(1):e.idText(t)}(t,e.Debug.checkDefined(r))}function S(e,t,r,n,i){return t=x(t,i),n=x(n,i),r=D(r,i),"".concat(e?"#":"").concat(t).concat(r).concat(n)}e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new b(t,r,n,i,a,o);return function(t,r){var n={value:void 0},i=[v.enter],a=[t],o=[void 0],c=0;for(;i[c]!==v.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}},e.elideNodes=function(t,r){if(void 0!==r)return 0===r.length?r:e.setTextRange(t.createNodeArray([],r.hasTrailingComma),r)},e.getNodeForGeneratedName=function(t){if(4&t.autoGenerateFlags){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isMemberName(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}return t},e.formatGeneratedNamePart=x,e.formatGeneratedName=S,e.createAccessorPropertyBackingField=function(e,t,r,n){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,n)},e.createAccessorPropertyGetRedirector=function(e,t,r,n){return e.createGetAccessorDeclaration(r,n,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))},e.createAccessorPropertySetRedirector=function(e,t,r,n){return e.createSetAccessorDeclaration(r,n,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}}(d||(d={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t},e.canHaveModifiers=function(e){var t=e.kind;return 166===t||167===t||169===t||170===t||171===t||172===t||174===t||175===t||176===t||179===t||183===t||216===t||217===t||230===t||263===t||242===t||261===t||262===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t},e.canHaveDecorators=function(e){var t=e.kind;return 167===t||170===t||172===t||175===t||176===t||230===t||262===t||263===t}}(d||(d={})),function(e){var t,r,n,o,s,c,l,u;function d(e,t){return t&&e(t)}function p(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}e.forEachChild=R,e.forEachChildRecursively=function(t,r,n){for(var i=B(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=164)for(var u=0,d=B(o);u=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(b,a,l,u>=0?u:void 0),nt((function(){var e=F;for(F|=32768,c.setTextPos(n.pos),He();1!==qe();){var r=c.getStartPos(),a=er(0,Pi);if(i.push(a),r===c.getStartPos()&&He(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=f(t.statements,o+1))}}F=e}),2),s=o>=0?_(t.statements,o):-1};-1!==s;)l();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=u.pos}));d>=0&&e.addRange(b,a,d)}return D=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function _(e,t){for(var r=t;r117}function st(){return 79===qe()||(126!==qe()||!Ee())&&((134!==qe()||!Fe())&&qe()>117)}function ct(t,r,n){return void 0===n&&(n=!0),qe()===t?(n&&He(),!0):!(qe()===t||!M||!je())||(r?we(r):we(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=te;var lt,ut,dt,pt=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function _t(t){var r;if(e.isTaggedTemplateExpression(t))Ue(e.skipTrivia(f,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,g)){var i=e.skipTrivia(f,t.pos);switch(n){case"const":case"let":case"var":return void Ue(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ft(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void Ue(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ft(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void ft(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,pt,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=pt;ri.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}return}(n);a?Ue(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==qe()&&Ue(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else we(e.Diagnostics._0_expected,e.tokenToString(26))}}function ft(e,t,r){qe()===r?we(t):we(e,c.getTokenValue())}function gt(t){return qe()===t?(Qe(),!0):(we(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function mt(t,r,n,i){if(qe()!==r){var a=we(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else He()}function ht(e){return qe()===e&&(He(),!0)}function yt(e){if(qe()===e)return xt()}function vt(e){if(qe()===e)return t=Ke(),r=qe(),Qe(),Et(R.createToken(r),t);var t,r}function bt(t,r,n){return yt(t)||kt(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function xt(){var e=Ke(),t=qe();return He(),Et(R.createToken(t),e)}function Dt(){return 26===qe()||(19===qe()||1===qe()||c.hasPrecedingLineBreak())}function St(){return!!Dt()&&(26===qe()&&He(),!0)}function Tt(){return St()||ct(26)}function Ct(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Et(t,r,n,i){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),F&&(t.flags|=F),K&&(K=!1,t.flags|=131072),i&&(t.virtual=!0),t}function kt(t,r,n,i){r?Je(c.getStartPos(),0,n,i):n&&we(n,i);var a=Ke();return Et(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):282===t?R.createMissingDeclaration():R.createToken(t),a)}function At(e){var t=C.get(e);return void 0===t&&C.set(e,t=e),t}function Nt(t,r,n){if(t){k++;var i=Ke(),a=qe(),o=At(c.getTokenValue()),s=c.hasExtendedUnicodeEscape();return $e(),Et(R.createIdentifier(o,void 0,a,s),i)}if(80===qe())return we(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Nt(!0);if(0===qe()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Nt(!0);if(M&&je()&&24===qe()){k++;i=Ke();return va(R.createIdentifier("".concat(M,"Instance"),void 0,79),i,i)}k++;var l=1===qe(),u=c.isReservedWord(),d=c.getTokenText(),p=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return kt(79,l,r||p,d)}function Ft(e){return Nt(ot(),void 0,e)}function wt(e,t){return Nt(st(),e,t)}function Pt(t){return Nt(e.tokenIsIdentifierOrKeyword(qe()),t)}function It(){return e.tokenIsIdentifierOrKeyword(qe())||10===qe()||8===qe()}function Ot(e){if(10===qe()||8===qe()){var t=mr();return t.text=At(t.text),t}return e&&22===qe()?function(){var e=Ke();ct(22);var t=ve(kn);return ct(23),Et(R.createComputedPropertyName(t),e)}():80===qe()?Lt():Pt()}function Mt(){return Ot(!0)}function Lt(){var e,t,r=Ke(),n=R.createPrivateIdentifier((e=c.getTokenValue(),void 0===(t=E.get(e))&&E.set(e,t=e),t));return He(),Et(n,r)}function Rt(e){return qe()===e&&at(jt)}function Bt(){return He(),!c.hasPrecedingLineBreak()&&zt()}function jt(){switch(qe()){case 86:return 93===He();case 94:return He(),89===qe()?it(Vt):155===qe()?it(Ut):Jt();case 89:return Vt();case 128:case 125:case 138:case 152:return He(),zt();default:return Bt()}}function Jt(){return 41!==qe()&&129!==qe()&&18!==qe()&&zt()}function Ut(){return He(),Jt()}function zt(){return 22===qe()||18===qe()||41===qe()||25===qe()||It()}function Vt(){return He(),84===qe()||Pe()&&85===qe()||99===qe()||119===qe()||127===qe()&&it(Ci)||133===qe()&&it(Ei)}function Kt(t,r){if(tr(t))return!0;switch(t){case 0:case 1:case 3:return!(26===qe()&&r)&&Fi();case 2:return 82===qe()||89===qe();case 4:return it(Ur);case 5:return it(ea)||26===qe()&&!r;case 6:return 22===qe()||It();case 12:switch(qe()){case 22:case 41:case 25:case 24:return!0;default:return It()}case 18:return It();case 9:return 22===qe()||25===qe()||It();case 24:return e.tokenIsIdentifierOrKeyword(qe())||10===qe();case 7:return 18===qe()?it(Wt):r?st()&&!Ht():Cn()&&!Ht();case 8:return Ui();case 10:return 27===qe()||25===qe()||Ui();case 19:return 102===qe()||st();case 15:switch(qe()){case 27:case 24:return!0}case 11:return 25===qe()||En();case 16:return Fr(!1);case 17:return Fr(!0);case 20:case 21:return 27===qe()||sn();case 22:return ya();case 23:return e.tokenIsIdentifierOrKeyword(qe());case 13:return e.tokenIsIdentifierOrKeyword(qe())||18===qe();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Wt(){if(e.Debug.assert(18===qe()),19===He()){var t=He();return 27===t||18===t||95===t||118===t}return!0}function qt(){return He(),st()}function $t(){return He(),e.tokenIsIdentifierOrKeyword(qe())}function Gt(){return He(),e.tokenIsIdentifierOrKeywordOrGreaterThan(qe())}function Ht(){return(118===qe()||95===qe())&&it(Qt)}function Qt(){return He(),En()}function Xt(){return He(),sn()}function Yt(e){if(1===qe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===qe();case 3:return 19===qe()||82===qe()||89===qe();case 7:return 18===qe()||95===qe()||118===qe();case 8:return function(){if(Dt())return!0;if(Ln(qe()))return!0;if(38===qe())return!0;return!1}();case 19:return 31===qe()||20===qe()||18===qe()||95===qe()||118===qe();case 11:return 21===qe()||26===qe();case 15:case 21:case 10:return 23===qe();case 17:case 16:case 18:return 21===qe()||23===qe();case 20:return 27!==qe();case 22:return 18===qe()||19===qe();case 13:return 31===qe()||43===qe();case 14:return 29===qe()&&it(Ea);default:return!1}}function Zt(e,t){var r=A;A|=1<=0)}function ar(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function or(){var e=Ct([],Ke());return e.isMissingList=!0,e}function sr(e,t,r,n){if(ct(r)){var i=ir(e,t);return ct(n),i}return or()}function cr(e,t){for(var r=Ke(),n=e?Pt(t):wt(t),i=Ke();ht(24);){if(29===qe()){n.jsdocDotPos=i;break}i=Ke(),n=Et(R.createQualifiedName(n,ur(e,!1)),r)}return n}function lr(e,t){return Et(R.createQualifiedName(e,t),e.pos)}function ur(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(qe())&&it(Ti))return kt(79,!0,e.Diagnostics.Identifier_expected);if(80===qe()){var n=Lt();return r?n:kt(79,!0,e.Diagnostics.Identifier_expected)}return t?Pt():wt()}function dr(e){var t=Ke();return Et(R.createTemplateExpression(hr(e),function(e){var t,r=Ke(),n=[];do{t=gr(e),n.push(t)}while(16===t.literal.kind);return Ct(n,r)}(e)),t)}function pr(){var e=Ke();return Et(R.createTemplateLiteralType(hr(!1),function(){var e,t=Ke(),r=[];do{e=_r(),r.push(e)}while(16===e.literal.kind);return Ct(r,t)}()),e)}function _r(){var e=Ke();return Et(R.createTemplateLiteralTypeSpan(xn(),fr(!1)),e)}function fr(t){return 19===qe()?(function(e){S=c.reScanTemplateToken(e)}(t),r=yr(qe()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):bt(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function gr(e){var t=Ke();return Et(R.createTemplateSpan(ve(kn),fr(e)),t)}function mr(){return yr(qe())}function hr(t){t&&Ye();var r=yr(qe());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function yr(t){var r=Ke(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?R.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?R.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),He(),Et(n,r)}function vr(){return cr(!0,e.Diagnostics.Type_expected)}function br(){if(!c.hasPrecedingLineBreak()&&29===Ze())return sr(20,xn,29,31)}function xr(){var e=Ke();return Et(R.createTypeReferenceNode(vr(),br()),e)}function Dr(t){switch(t.kind){case 181:return e.nodeIsMissing(t.typeName);case 182:case 183:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Dr(i);case 194:return Dr(t.type);default:return!1}}function Sr(){var e=Ke();return He(),Et(R.createThisTypeNode(),e)}function Tr(){var e,t=Ke();return 109!==qe()&&104!==qe()||(e=Pt(),ct(58)),Et(R.createParameterDeclaration(void 0,void 0,e,void 0,Cr(),void 0),t)}function Cr(){c.setInJSDocType(!0);var e=Ke();if(ht(143)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 19:case 1:case 27:case 5:break e;default:Qe()}return c.setInJSDocType(!1),Et(t,e)}var r=ht(25),n=vn();return c.setInJSDocType(!1),r&&(n=Et(R.createJSDocVariadicType(n),e)),63===qe()?(He(),Et(R.createJSDocOptionalType(n),e)):n}function Er(e){var t,r,n=Ke(),i=sa(),a=void 0!==e?function(e){k++;var t=At(I.type);return va(R.createIdentifier(t),e,e)}(e):wt();ht(95)&&(sn()||!En()?t=xn():r=zn());var o=ht(63)?xn():void 0,s=R.createTypeParameterDeclaration(i,a,t,o);return s.expression=r,void 0!==e?va(s,e,e):Et(s,n)}function kr(){if(29===qe())return sr(19,Er,29,31)}function Ar(e){return Ct([Er(e)],Ke())}function Nr(e,t){if(!(262144&F))return Ct([Dn(e,t)],Ke())}function Fr(t){return 25===qe()||Ui()||e.isModifierKind(qe())||59===qe()||sn(!t)}function wr(e){return Pr(e)}function Pr(t,r){void 0===r&&(r=!0);var n=Ke(),i=We(),a=t?De(ia):Se(ia);if(109===qe()){var o=R.createParameterDeclaration(a,void 0,Nt(!0),void 0,Tn(),void 0);return a&&ze(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),Y(Et(o,n),i)}var s=B;B=!1;var c=oa(a,sa()),l=yt(25);if(r||ot()||22===qe()||18===qe()){var u=Y(Et(R.createParameterDeclaration(c,l,function(t){var r=zi(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(qe())&&He(),r}(c),yt(57),Tn(),An()),n),i);return B=s,u}}function Ir(t,r){if(function(t,r){if(38===t)return ct(t),!0;if(ht(58))return!0;if(r&&38===qe())return we(e.Diagnostics._0_expected,e.tokenToString(58)),He(),!0;return!1}(t,r))return be(vn)}function Or(e,t){var r=Ee(),n=Fe();oe(!!(1&e)),ce(!!(2&e));var i=32&e?ir(17,Tr):ir(16,(function(){return t?wr(n):Pr(n,!1)}));return oe(r),ce(n),i}function Mr(e){if(!ct(20))return or();var t=Or(e,!0);return ct(21),t}function Lr(){ht(27)||Tt()}function Rr(e){var t=Ke(),r=We();178===e&&ct(104);var n=kr(),i=Mr(4),a=Ir(58,!0);return Lr(),Y(Et(177===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function Br(){return 22===qe()&&it(jr)}function jr(){if(He(),25===qe()||23===qe())return!0;if(e.isModifierKind(qe())){if(He(),st())return!0}else{if(!st())return!1;He()}return 58===qe()||27===qe()||57===qe()&&(He(),58===qe()||27===qe()||23===qe())}function Jr(e,t,r,n){var i=sr(16,(function(){return wr(!1)}),22,23),a=Tn();Lr();var o=R.createIndexSignature(n,i,a);return o.illegalDecorators=r,Y(Et(o,e),t)}function Ur(){if(20===qe()||29===qe()||138===qe()||152===qe())return!0;for(var t=!1;e.isModifierKind(qe());)t=!0,He();return 22===qe()||(It()&&(t=!0,He()),!!t&&(20===qe()||29===qe()||57===qe()||58===qe()||27===qe()||Dt()))}function zr(){if(20===qe()||29===qe())return Rr(177);if(104===qe()&&it(Vr))return Rr(178);var e=Ke(),t=We(),r=sa();return Rt(138)?Zi(e,t,void 0,r,175,4):Rt(152)?Zi(e,t,void 0,r,176,4):Br()?Jr(e,t,void 0,r):function(e,t,r){var n,i=Mt(),a=yt(57);if(20===qe()||29===qe()){var o=kr(),s=Mr(4),c=Ir(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=Tn(),n=R.createPropertySignature(r,i,a,c),63===qe()&&(n.initializer=An());return Lr(),Y(Et(n,e),t)}(e,t,r)}function Vr(){return He(),20===qe()||29===qe()}function Kr(){return 24===He()}function Wr(){switch(He()){case 20:case 29:case 24:return!0}return!1}function qr(){var e;return ct(18)?(e=Zt(4,zr),ct(19)):e=or(),e}function $r(){return He(),39===qe()||40===qe()?147===He():(147===qe()&&He(),22===qe()&&qt()&&102===He())}function Gr(){var e,t=Ke();ct(18),147!==qe()&&39!==qe()&&40!==qe()||147!==(e=xt()).kind&&ct(147),ct(22);var r,n=function(){var e=Ke(),t=Pt();ct(102);var r=xn();return Et(R.createTypeParameterDeclaration(void 0,t,r,void 0),e)}(),i=ht(129)?xn():void 0;ct(23),57!==qe()&&39!==qe()&&40!==qe()||57!==(r=xt()).kind&&ct(57);var a=Tn();Tt();var o=Zt(4,zr);return ct(19),Et(R.createMappedTypeNode(e,n,i,r,a,o),t)}function Hr(){var t=Ke();if(ht(25))return Et(R.createRestTypeNode(xn()),t);var r=xn();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function Qr(){return 58===He()||57===qe()&&58===He()}function Xr(){return 25===qe()?e.tokenIsIdentifierOrKeyword(He())&&Qr():e.tokenIsIdentifierOrKeyword(qe())&&Qr()}function Yr(){if(it(Xr)){var e=Ke(),t=We(),r=yt(25),n=Pt(),i=yt(57);ct(58);var a=Hr();return Y(Et(R.createNamedTupleMember(r,n,i,a),e),t)}return Hr()}function Zr(){var e=Ke(),t=We(),r=function(){var e;if(127===qe()){var t=Ke();He(),e=Ct([Et(R.createToken(127),t)],t)}return e}(),n=ht(104),i=kr(),a=Mr(4),o=Ir(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),Y(Et(s,e),t)}function en(){var e=xt();return 24===qe()?void 0:e}function tn(e){var t=Ke();e&&He();var r=111===qe()||96===qe()||105===qe()?xt():yr(qe());return e&&(r=Et(R.createPrefixUnaryExpression(40,r),t)),Et(R.createLiteralTypeNode(r),t)}function rn(){return He(),101===qe()}function nn(){p|=2097152;var t=Ke(),r=ht(113);ct(101),ct(20);var n,i=xn();ht(27)&&(n=function(){var t=Ke(),r=c.getTokenPos();ct(18);var n=c.hasPrecedingLineBreak();ct(131),ct(58);var i=Aa(!0);if(!ct(19)){var a=e.lastOrUndefined(b);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Et(R.createImportTypeAssertionContainer(i,n),t)}()),ct(21);var a=ht(24)?vr():void 0,o=br();return Et(R.createImportTypeNode(i,n,a,o,r),t)}function an(){return He(),8===qe()||9===qe()}function on(){switch(qe()){case 132:case 158:case 153:case 149:case 161:case 154:case 135:case 156:case 145:case 150:return at(en)||xr();case 66:c.reScanAsteriskEqualsToken();case 41:return r=Ke(),He(),Et(R.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=Ke();return He(),27===qe()||19===qe()||21===qe()||31===qe()||63===qe()||51===qe()?Et(R.createJSDocUnknownType(),e):Et(R.createJSDocNullableType(xn(),!1),e)}();case 99:return function(){var e=Ke(),t=We();if(it(Ta)){He();var r=Mr(36),n=Ir(58,!1);return Y(Et(R.createJSDocFunctionType(r,n),e),t)}return Et(R.createTypeReferenceNode(Pt(),void 0),e)}();case 53:return function(){var e=Ke();return He(),Et(R.createJSDocNonNullableType(on(),!1),e)}();case 14:case 10:case 8:case 9:case 111:case 96:case 105:return tn();case 40:return it(an)?tn(!0):xr();case 115:return xt();case 109:var e=Sr();return 141!==qe()||c.hasPrecedingLineBreak()?e:(t=e,He(),Et(R.createTypePredicateNode(void 0,t,xn()),t.pos));case 113:return it(rn)?nn():function(){var e=Ke();ct(113);var t=cr(!0),r=c.hasPrecedingLineBreak()?void 0:ha();return Et(R.createTypeQueryNode(t,r),e)}();case 18:return it($r)?Gr():function(){var e=Ke();return Et(R.createTypeLiteralNode(qr()),e)}();case 22:return function(){var e=Ke();return Et(R.createTupleTypeNode(sr(21,Yr,22,23)),e)}();case 20:return function(){var e=Ke();ct(20);var t=xn();return ct(21),Et(R.createParenthesizedType(t),e)}();case 101:return nn();case 130:return it(Ti)?function(){var e=Ke(),t=bt(130),r=109===qe()?Sr():wt(),n=ht(141)?xn():void 0;return Et(R.createTypePredicateNode(t,r,n),e)}():xr();case 15:return pr();default:return xr()}var t,r}function sn(e){switch(qe()){case 132:case 158:case 153:case 149:case 161:case 135:case 147:case 154:case 157:case 115:case 156:case 105:case 109:case 113:case 145:case 18:case 22:case 29:case 51:case 50:case 104:case 10:case 8:case 9:case 111:case 96:case 150:case 41:case 57:case 53:case 25:case 139:case 101:case 130:case 14:case 15:return!0;case 99:return!e;case 40:return!e&&it(an);case 20:return!e&&it(cn);default:return st()}}function cn(){return He(),21===qe()||Fr(!1)||sn()}function ln(){for(var e=Ke(),t=on();!c.hasPrecedingLineBreak();)switch(qe()){case 53:He(),t=Et(R.createJSDocNonNullableType(t,!0),e);break;case 57:if(it(Xt))return t;He(),t=Et(R.createJSDocNullableType(t,!0),e);break;case 22:if(ct(22),sn()){var r=xn();ct(23),t=Et(R.createIndexedAccessTypeNode(t,r),e)}else ct(23),t=Et(R.createArrayTypeNode(t),e);break;default:return t}return t}function un(){if(ht(95)){var e=xe(xn);if(Ae()||57!==qe())return e}}function dn(){var e=Ke();return ct(139),Et(R.createInferTypeNode(function(){var e=Ke(),t=wt(),r=at(un);return Et(R.createTypeParameterDeclaration(void 0,t,r),e)}()),e)}function pn(){var e=qe();switch(e){case 142:case 157:case 147:return function(e){var t=Ke();return ct(e),Et(R.createTypeOperatorNode(e,pn()),t)}(e);case 139:return dn()}return be(ln)}function _n(t){if(hn()){var r=Zr();return ze(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function fn(e,t,r){var n=Ke(),i=51===e,a=ht(e),o=a&&_n(i)||t();if(qe()===e||a){for(var s=[o];ht(e);)s.push(_n(i)||t());o=Et(r(Ct(s,n)),n)}return o}function gn(){return fn(50,pn,R.createIntersectionTypeNode)}function mn(){return He(),104===qe()}function hn(){return 29===qe()||(!(20!==qe()||!it(yn))||(104===qe()||127===qe()&&it(mn)))}function yn(){if(He(),21===qe()||25===qe())return!0;if(function(){if(e.isModifierKind(qe())&&sa(),st()||109===qe())return He(),!0;if(22===qe()||18===qe()){var t=b.length;return zi(),t===b.length}return!1}()){if(58===qe()||27===qe()||57===qe()||63===qe())return!0;if(21===qe()&&(He(),38===qe()))return!0}return!1}function vn(){var e=Ke(),t=st()&&at(bn),r=xn();return t?Et(R.createTypePredicateNode(void 0,t,r),e):r}function bn(){var e=wt();if(141===qe()&&!c.hasPrecedingLineBreak())return He(),e}function xn(){if(40960&F)return he(40960,xn);if(hn())return Zr();var e=Ke(),t=fn(51,gn,R.createUnionTypeNode);if(!Ae()&&!c.hasPrecedingLineBreak()&&ht(95)){var r=xe(xn);ct(57);var n=be(xn);ct(58);var i=be(xn);return Et(R.createConditionalTypeNode(t,r,n,i),e)}return t}function Dn(e,t){var r=40960&F;if(r){ne(!1,r);var n=Sn(e,t);return ne(!0,r),n}return Sn(e,t)}function Sn(e,t){return va(R.createTypeReferenceNode(va(R.createIdentifier(t),e,e)),e,e)}function Tn(){return ht(58)?xn():void 0}function Cn(){switch(qe()){case 109:case 107:case 105:case 111:case 96:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 99:case 84:case 104:case 43:case 68:case 79:return!0;case 85:return Pe();case 101:return it(Wr);default:return st()}}function En(){if(Cn())return!0;switch(qe()){case 39:case 40:case 54:case 53:case 90:case 113:case 115:case 45:case 46:case 29:case 134:case 126:case 80:return!0;case 24:return Me()&&!!P||Le()&&!!I;default:return!!Bn()||st()}}function kn(){var e=Ne();e&&se(!1);for(var t,r=Ke(),n=Nn(!0);t=yt(27);)n=jn(n,t,Nn(!0),r);return e&&se(!0),n}function An(){return ht(63)?Nn(!0):void 0}function Nn(t){if(function(){if(126===qe())return!!Ee()||it(ki);return!1}())return function(){var e=Ke();return He(),c.hasPrecedingLineBreak()||41!==qe()&&!En()?Et(R.createYieldExpression(void 0,void 0),e):Et(R.createYieldExpression(yt(41),Nn(!0)),e)}();var r=function(t){var r=function(){if(20===qe()||29===qe()||133===qe())return it(wn);if(38===qe())return 1;return 0}();if(0===r)return;return 1===r?In(!0,!0):at((function(){return function(t){var r=c.getTokenPos();if(null==N?void 0:N.has(r))return;var n=In(!1,t);n||(N||(N=new e.Set)).add(r);return n}(t)}))}(t)||function(e){if(133===qe()&&1===it(Pn)){var t=Ke(),r=ca();return Fn(t,Mn(0),e,r)}return}(t);if(r)return r;var n=Ke(),i=Mn(0);return 79===i.kind&&38===qe()?Fn(n,i,t,void 0):e.isLeftHandSideExpression(i)&&e.isAssignmentOperator(Xe())?jn(i,xt(),Nn(t),n):Pe()&&e.isCallExpression(i)&&18===qe()?function(e,t){var r=e.expression,n=yi(0);return Et(R.createEtsComponentExpression(r,e.arguments,n),t)}(i,n):function(t,r,n){var i,a=yt(57);if(!a)return t;return Et(R.createConditionalExpression(t,a,he(l,(function(){return Nn(!1)})),i=bt(58),e.nodeIsPresent(i)?Nn(n):kt(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(i,n,t)}function Fn(t,r,n,i){e.Debug.assert(38===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=R.createParameterDeclaration(void 0,void 0,r,void 0,void 0,void 0);Et(a,r.pos);var o=Ct([a],a.pos,a.end),s=bt(38),c=On(!!i,n);return ee(Et(R.createArrowFunction(i,void 0,o,void 0,s,c),t))}function wn(){if(133===qe()){if(He(),c.hasPrecedingLineBreak())return 0;if(20!==qe()&&29!==qe())return 0}var t=qe(),r=He();if(20===t){if(21===r)switch(He()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&133!==r&&it(qt))return 129===He()?0:1;if(!st()&&109!==r)return 0;switch(He()){case 58:return 1;case 57:return He(),58===qe()||27===qe()||63===qe()||21===qe()?1:0;case 27:case 63:case 21:return 2}return 0}if(e.Debug.assert(29===t),!st())return 0;if(1===y){var n=it((function(){var e=He();if(95===e)switch(He()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}));return n?1:0}return 2}function Pn(){if(133===qe()){if(He(),c.hasPrecedingLineBreak()||38===qe())return 0;var e=Mn(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===qe())return 1}return 0}function In(t,r){var n,i=Ke(),a=We(),o=ca(),s=e.some(o,e.isAsyncModifier)?2:0,c=kr();if(ct(20)){if(t)n=Or(s,t);else{var l=Or(s,t);if(!l)return;n=l}if(!ct(21)&&!t)return}else{if(!t)return;n=or()}var u=58===qe(),d=Ir(58,!1);if(!d||t||!Dr(d)){for(var p=d;194===(null==p?void 0:p.kind);)p=p.type;var _=p&&e.isJSDocFunctionType(p);if(t||38===qe()||!_&&18===qe()){var f=qe(),g=bt(38),m=38===f||18===f?On(e.some(o,e.isAsyncModifier),r):wt();if(r||!u||58===qe())return Y(Et(R.createArrowFunction(o,c,n,d,g,m),i),a)}}}function On(e,t){if(18===qe())return yi(e?2:0);if(26!==qe()&&99!==qe()&&84!==qe()&&(!Pe()||85!==qe())&&Fi()&&(18===qe()||99===qe()||84===qe()||Pe()&&85===qe()||59===qe()||!En()))return yi(16|(e?2:0));var r=B;B=!1;var n=e?De((function(){return Nn(t)})):Se((function(){return Nn(t)}));return B=r,n}function Mn(e){var t=Ke();return Rn(e,zn(),t)}function Ln(e){return 102===e||163===e}function Rn(t,r,n){for(;;){Xe();var i=e.getBinaryOperatorPrecedence(qe());if(!(42===qe()?i>=t:i>t))break;if(102===qe()&&ke())break;if(129===qe()||151===qe()){if(c.hasPrecedingLineBreak())break;var a=qe();He(),r=151===a?(o=r,s=xn(),Et(R.createSatisfiesExpression(o,s),o.pos)):Jn(r,xn())}else r=jn(r,xt(),Mn(i),n)}var o,s;return r}function Bn(){return(!ke()||102!==qe())&&e.getBinaryOperatorPrecedence(qe())>0}function jn(e,t,r,n){return Et(R.createBinaryExpression(e,t,r),n)}function Jn(e,t){return Et(R.createAsExpression(e,t),e.pos)}function Un(){var e=Ke();return Et(R.createPrefixUnaryExpression(qe(),Ge(Vn)),e)}function zn(){if(function(){switch(qe()){case 39:case 40:case 54:case 53:case 90:case 113:case 115:case 134:return!1;case 29:if(1!==y)return!1;default:return!0}}()){var t=Ke(),r=Kn();return 42===qe()?Rn(e.getBinaryOperatorPrecedence(qe()),r,t):r}var n=qe(),i=Vn();if(42===qe()){t=e.skipTrivia(f,i.pos);var a=i.end;214===i.kind?Ue(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Ue(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function Vn(){switch(qe()){case 39:case 40:case 54:case 53:return Un();case 90:return e=Ke(),Et(R.createDeleteExpression(Ge(Vn)),e);case 113:return function(){var e=Ke();return Et(R.createTypeOfExpression(Ge(Vn)),e)}();case 115:return function(){var e=Ke();return Et(R.createVoidExpression(Ge(Vn)),e)}();case 29:return function(){var e=Ke();ct(29);var t=xn();ct(31);var r=Vn();return Et(R.createTypeAssertion(t,r),e)}();case 134:if(134===qe()&&(Fe()||it(ki)))return function(){var e=Ke();return Et(R.createAwaitExpression(Ge(Vn)),e)}();default:return Kn()}var e}function Kn(){if(45===qe()||46===qe()){var t=Ke();return Et(R.createPrefixUnaryExpression(qe(),Ge(Wn)),t)}if(1===y&&29===qe()&&it(Gt))return $n(!0);var r=Wn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===qe()||46===qe())&&!c.hasPrecedingLineBreak()){var n=qe();return He(),Et(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function Wn(){var t,r=Ke();return 101===qe()?it(Vr)?(p|=2097152,t=xt()):it(Kr)?(He(),He(),t=Et(R.createMetaProperty(101,Pt()),r),p|=4194304):t=qn():t=107===qe()?function(){var t=Ke(),r=xt();if(29===qe()){var n=Ke(),i=at(ci);void 0!==i&&(Ue(n,Ke(),e.Diagnostics.super_may_not_use_type_arguments),ii()||(r=R.createExpressionWithTypeArguments(r,i)))}if(20===qe()||24===qe()||22===qe())return r;return bt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Et(R.createPropertyAccessExpression(r,ur(!0,!0)),t)}():qn(),oi(r,t)}function qn(){var e=Ke();return ni(e,Me()&&P&&24===qe()?va(R.createIdentifier(P.instance,void 0,79),e,e):Le()&&I&&24===qe()?va(R.createIdentifier(I.instance,void 0,79),e,e):je()&&M&&24===qe()?va(R.createIdentifier("".concat(M,"Instance"),void 0,79),e,e):li(),!0)}function $n(t,r,n){var a,o=Ke(),s=function(e){var t=Ke();if(ct(29),31===qe())return rt(),Et(R.createJsxOpeningFragment(),t);var r,n=Qn(),i=262144&F?void 0:ha(),a=function(){var e=Ke();return Et(R.createJsxAttributes(Zt(13,Yn)),e)}();31===qe()?(rt(),r=R.createJsxOpeningElement(n,i,a)):(ct(43),ct(31,void 0,!1)&&(e?He():rt()),r=R.createJsxSelfClosingElement(n,i,a));return Et(r,t)}(t);if(286===s.kind){var c=Hn(s),l=void 0,u=c[c.length-1];if(284===(null==u?void 0:u.kind)&&!Q(u.openingElement.tagName,u.closingElement.tagName)&&Q(s.tagName,u.closingElement.tagName)){var d=u.children.end,p=Et(R.createJsxElement(u.openingElement,u.children,Et(R.createJsxClosingElement(Et(R.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Ct(i(i([],c.slice(0,c.length-1),!0),[p],!1),c.pos,d),l=u.closingElement}else l=function(e,t){var r=Ke();ct(30);var n=Qn();ct(31,void 0,!1)&&(t||!Q(e.tagName,n)?He():rt());return Et(R.createJsxClosingElement(n),r)}(s,t),Q(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&Q(l.tagName,n.tagName)?ze(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,s.tagName)):ze(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(f,s.tagName)));a=Et(R.createJsxElement(s,c,l),o)}else 289===s.kind?a=Et(R.createJsxFragment(s,Hn(s),function(t){var r=Ke();ct(30),e.tokenIsIdentifierOrKeyword(qe())&&ze(Qn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);ct(31,void 0,!1)&&(t?He():rt());return Et(R.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(285===s.kind),a=s);if(t&&29===qe()){var _=void 0===r?a.pos:r,g=at((function(){return $n(!0,_)}));if(g){var m=kt(27,!1);return e.setTextRangePosWidth(m,g.pos,0),Ue(e.skipTrivia(f,_),g.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Et(R.createBinaryExpression(a,m,g),o)}}return a}function Gn(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))ze(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;Ue(e.skipTrivia(f,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(f,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=Ke(),a=R.createJsxText(c.getTokenValue(),12===S),S=c.scanJsxToken(),Et(a,i);case 18:return Xn(!1);case 29:return $n(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function Hn(t){var r=[],n=Ke(),i=A;for(A|=16384;;){var a=Gn(t,S=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&284===(null==a?void 0:a.kind)&&!Q(a.openingElement.tagName,a.closingElement.tagName)&&Q(t.tagName,a.closingElement.tagName))break}return A=i,Ct(r,n)}function Qn(){var e=Ke();tt();for(var t=109===qe()?xt():Pt();ht(24);)t=Et(R.createPropertyAccessExpression(t,ur(!0,!1)),e);return t}function Xn(e){var t,r,n=Ke();if(ct(18))return 19!==qe()&&(t=yt(25),r=kn()),e?ct(19):ct(19,void 0,!1)&&rt(),Et(R.createJsxExpression(t,r),n)}function Yn(){if(18===qe())return function(){var e=Ke();ct(18),ct(25);var t=kn();return ct(19),Et(R.createJsxSpreadAttribute(t),e)}();tt();var t=Ke();return Et(R.createJsxAttribute(Pt(),function(){if(63===qe()){if(10===(S=c.scanJsxAttributeValue()))return mr();if(18===qe())return Xn(!0);if(29===qe())return $n(!0);we(e.Diagnostics.or_JSX_element_expected)}return}()),t)}function Zn(){return He(),e.tokenIsIdentifierOrKeyword(qe())||22===qe()||ii()}function ei(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function ti(t,r,n){var i=ur(!0,!0),a=n||ei(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);(a&&e.isPrivateIdentifier(o.name)&&ze(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(r)&&r.typeArguments)&&Ue(r.typeArguments.pos-1,e.skipTrivia(f,r.typeArguments.end)+1,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access);return Et(o,t)}function ri(t,r,n){var i;if(23===qe())i=kt(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ve(kn);e.isStringOrNumericLiteralLike(a)&&(a.text=At(a.text)),i=a}return ct(23),Et(n||ei(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function ni(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===qe()&&it(Zn)?(i=bt(28),a=e.tokenIsIdentifierOrKeyword(qe())):a=ht(24),a)r=ti(t,r,i);else if(!i&&Ne()||!ht(22)){if(!ii()){if(!i){if(53===qe()&&!c.hasPrecedingLineBreak()){He(),r=Et(R.createNonNullExpression(r),t);continue}var o=at(ci);if(o){r=Et(R.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||232!==r.kind?ai(t,r,i,void 0):ai(t,r.expression,i,r.typeArguments)}else r=ri(t,r,i)}}function ii(){return 14===qe()||15===qe()}function ai(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===qe()?(Ye(),mr()):dr(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Et(i,e)}function oi(t,r){for(var n,i,a,o,s;;){r=ni(t,r,!0);var c=void 0,l=yt(28);if(l&&(c=at(ci),ii()))r=ai(t,r,l,c);else{if(!c&&20!==qe()){if(l){var u=kt(79,!1,e.Diagnostics.Identifier_expected);r=Et(R.createPropertyAccessChain(r,l,u),t)}break}if(l||232!==r.kind||(c=r.typeArguments,r=r.expression),((Re()||Be())&&Ie()||Be())&&e.isPropertyAccessExpression(r)){var d=e.getRootEtsComponent(r);if(d){var p=d.expression.escapedText.toString();(s=e.getTextOfPropertyName(r.name).toString())===(null===(i=null===(n=null==h?void 0:h.ets)||void 0===n?void 0:n.styles)||void 0===i?void 0:i.property)?(me(!0),M=p):(me(!1),M=void 0),c=Nr(t,"".concat(p,"Attribute"))}else je()&&M&&(c=Nr(t,"".concat(M,"Attribute")))}var _=si();r=Et(l||ei(r)?R.createCallChain(r,l,c,_):R.createCallExpression(r,c,_),t)}}return s===(null===(o=null===(a=null==h?void 0:h.ets)||void 0===a?void 0:a.styles)||void 0===o?void 0:o.property)&&(me(!1),M=void 0),r}function si(){ct(20);var e=ir(11,di);return ct(21),e}function ci(){if(!(262144&F)&&29===Ze()){He();var e=ir(20,xn);if(31===Xe())return He(),e&&function(){switch(qe()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||Bn()||!En()}()?e:void 0}}function li(){switch(qe()){case 8:case 9:case 10:case 14:return mr();case 109:case 107:case 105:case 111:case 96:return xt();case 20:return function(){var e=Ke(),t=We();ct(20);var r=ve(kn);return ct(21),Y(Et(R.createParenthesizedExpression(r),e),t)}();case 22:return pi();case 18:return fi();case 133:if(!it(Ei))break;return gi();case 84:return pa(Ke(),We(),void 0,void 0,230);case 99:return gi();case 104:return function(){de(Oe());var t=Ke();if(ct(104),ht(24)){var r=Pt();return Et(R.createMetaProperty(104,r),t)}var n,i=ni(Ke(),li(),!1);232===i.kind&&(n=i.typeArguments,i=i.expression);28===qe()&&we(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(f,i));var a=20===qe()?si():void 0;return de(!1),Et(R.createNewExpression(i,n,a),t)}();case 43:case 68:if(13===(S=c.reScanSlashToken()))return mr();break;case 15:return dr(!1);case 80:return Lt()}return!function(){var e,t;return!!Oe()&&(null!==(t=null===(e=h.ets)||void 0===e?void 0:e.components)&&void 0!==t?t:[]).includes(c.getTokenText())}()||Pe()&&Ce(256)?wt(e.Diagnostics.Expression_expected):(t=Ke(),r=Ft(),n=si(),i=18===qe()?yi(0):void 0,Et(R.createEtsComponentExpression(r,n,i),t));var t,r,n,i}function ui(){return 25===qe()?function(){var e=Ke();ct(25);var t=Nn(!0);return Et(R.createSpreadElement(t),e)}():27===qe()?Et(R.createOmittedExpression(),Ke()):Nn(!0)}function di(){return he(l,ui)}function pi(){var e=Ke(),t=c.getTokenPos(),r=ct(22),n=c.hasPrecedingLineBreak(),i=ir(15,ui);return mt(22,23,r,t),Et(R.createArrayLiteralExpression(i,n),e)}function _i(){var e=Ke(),t=We();if(yt(25)){var r=Nn(!0);return Y(Et(R.createSpreadAssignment(r),e),t)}var n=ia(),i=sa();if(Rt(138))return Zi(e,t,n,i,175,0);if(Rt(152))return Zi(e,t,n,i,176,0);var a,o=yt(41),s=st(),c=Mt(),l=yt(57),u=yt(53);if(o||20===qe()||29===qe())return Qi(e,t,n,i,o,c,l,u);if(s&&58!==qe()){var d=yt(63),p=d?ve((function(){return Nn(!0)})):void 0;(a=R.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{ct(58);var _=ve((function(){return Nn(!0)}));a=R.createPropertyAssignment(c,_)}return a.illegalDecorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,Y(Et(a,e),t)}function fi(){var e=Ke(),t=c.getTokenPos(),r=ct(18),n=c.hasPrecedingLineBreak(),i=ir(12,_i,!0);return mt(18,19,r,t),Et(R.createObjectLiteralExpression(i,n),e)}function gi(){var t=Ne();se(!1);var r=Ke(),n=We(),i=sa();ct(99);var a=yt(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ye(40960,mi):o?function(e){return ye(8192,e)}(mi):s?De(mi):mi(),l=kr(),u=Mr(o|s),d=Ir(58,!1),p=yi(o|s);return se(t),Y(Et(R.createFunctionExpression(i,a,c,l,u,d,p),r),n)}function mi(){return ot()?Ft():void 0}function hi(t,r){var n=Ke(),i=We(),a=c.getTokenPos(),o=ct(18,r);if(o||t){var s=c.hasPrecedingLineBreak(),l=Zt(1,Pi);mt(18,19,o,a);var u=Y(Et(R.createBlock(l,s),n),i);return 63===qe()&&(we(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),He()),u}l=or();return Y(Et(R.createBlock(l,void 0),n),i)}function yi(e,t){var r=Ee();oe(!!(1&e));var n=Fe();ce(!!(2&e));var i=B;B=!1;var a=Ne();a&&se(!1);var o=hi(!!(16&e),t);return a&&se(!0),B=i,oe(r),ce(n),o}function vi(){var e=Ke(),t=We();ct(98);var r,n,i=yt(134);if(ct(20),26!==qe()&&(r=114===qe()||120===qe()||86===qe()?Wi(!0):ye(4096,kn)),i?ct(163):ht(163)){var a=ve((function(){return Nn(!0)}));ct(21),n=R.createForOfStatement(i,r,a,Pi())}else if(ht(102)){a=ve(kn);ct(21),n=R.createForInStatement(r,a,Pi())}else{ct(26);var o=26!==qe()&&21!==qe()?ve(kn):void 0;ct(26);var s=21!==qe()?ve(kn):void 0;ct(21),n=R.createForStatement(r,o,s,Pi())}return Y(Et(n,e),t)}function bi(e){var t=Ke(),r=We();ct(251===e?81:87);var n=Dt()?void 0:wt();return Tt(),Y(Et(251===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function xi(){return 82===qe()?function(){var e=Ke(),t=We();ct(82);var r=ve(kn);ct(58);var n=Zt(3,Pi);return Y(Et(R.createCaseClause(r,n),e),t)}():function(){var e=Ke();ct(89),ct(58);var t=Zt(3,Pi);return Et(R.createDefaultClause(t),e)}()}function Di(){var e=Ke(),t=We();ct(108),ct(20);var r=ve(kn);ct(21);var n=function(){var e=Ke();ct(18);var t=Zt(2,xi);return ct(19),Et(R.createCaseBlock(t),e)}();return Y(Et(R.createSwitchStatement(r,n),e),t)}function Si(){var t=Ke(),r=We();ct(112);var n,i=hi(!1),a=83===qe()?function(){var e,t=Ke();ct(83),ht(20)?(e=Ki(),ct(21)):e=void 0;var r=hi(!1);return Et(R.createCatchClause(e,r),t)}():void 0;return a&&97!==qe()||(ct(97,e.Diagnostics.catch_or_finally_expected),n=hi(!1)),Y(Et(R.createTryStatement(i,a,n),t),r)}function Ti(){return He(),e.tokenIsIdentifierOrKeyword(qe())&&!c.hasPrecedingLineBreak()}function Ci(){return He(),84===qe()&&!c.hasPrecedingLineBreak()}function Ei(){return He(),99===qe()&&!c.hasPrecedingLineBreak()}function ki(){return He(),(e.tokenIsIdentifierOrKeyword(qe())||8===qe()||9===qe()||10===qe())&&!c.hasPrecedingLineBreak()}function Ai(){for(;;)switch(qe()){case 114:case 120:case 86:case 99:case 84:case 93:return!0;case 85:return Pe();case 119:case 155:return He(),!c.hasPrecedingLineBreak()&&st();case 143:case 144:return Ri();case 127:case 128:case 133:case 137:case 122:case 123:case 124:case 147:if(He(),c.hasPrecedingLineBreak())return!1;continue;case 160:return He(),18===qe()||79===qe()||94===qe();case 101:return He(),10===qe()||41===qe()||18===qe()||e.tokenIsIdentifierOrKeyword(qe());case 94:var t=He();if(155===t&&(t=it(He)),63===t||41===t||18===t||89===t||129===t)return!0;continue;case 125:He();continue;default:return!1}}function Ni(){return it(Ai)}function Fi(){switch(qe()){case 59:case 26:case 18:case 114:case 120:case 99:case 84:case 93:case 100:case 91:case 116:case 98:case 87:case 81:case 106:case 117:case 108:case 110:case 112:case 88:case 83:case 97:case 133:case 137:case 119:case 143:case 144:case 155:case 160:return!0;case 85:return Pe();case 101:return Ni()||it(Wr);case 86:case 94:return Ni();case 128:case 124:case 122:case 123:case 125:case 147:return Ni()||!it(Ti);default:return En()}}function wi(){return He(),ot()||18===qe()||22===qe()}function Pi(){switch(qe()){case 26:return t=Ke(),r=We(),ct(26),Y(Et(R.createEmptyStatement(),t),r);case 18:return hi(!1);case 114:return $i(Ke(),We(),void 0,void 0);case 120:if(it(wi))return $i(Ke(),We(),void 0,void 0);break;case 99:return Gi(Ke(),We(),void 0,void 0);case 85:if(Pe())return da(Ke(),We(),void 0,void 0);break;case 84:return ua(Ke(),We(),void 0,void 0);case 100:return function(){var e=Ke(),t=We();ct(100);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=Pi(),o=ht(92)?Pi():void 0;return Y(Et(R.createIfStatement(i,a,o),e),t)}();case 91:return function(){var e=Ke(),t=We();ct(91);var r=Pi();ct(116);var n=c.getTokenPos(),i=ct(20),a=ve(kn);return mt(20,21,i,n),ht(26),Y(Et(R.createDoStatement(r,a),e),t)}();case 116:return function(){var e=Ke(),t=We();ct(116);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=Pi();return Y(Et(R.createWhileStatement(i,a),e),t)}();case 98:return vi();case 87:return bi(250);case 81:return bi(251);case 106:return function(){var e=Ke(),t=We();ct(106);var r=Dt()?void 0:ve(kn);return Tt(),Y(Et(R.createReturnStatement(r),e),t)}();case 117:return function(){var e=Ke(),t=We();ct(117);var r=c.getTokenPos(),n=ct(20),i=ve(kn);mt(20,21,n,r);var a=ye(33554432,Pi);return Y(Et(R.createWithStatement(i,a),e),t)}();case 108:return Di();case 110:return function(){var e=Ke(),t=We();ct(110);var r=c.hasPrecedingLineBreak()?void 0:ve(kn);return void 0===r&&(k++,r=Et(R.createIdentifier(""),Ke())),St()||_t(r),Y(Et(R.createThrowStatement(r),e),t)}();case 112:case 83:case 97:return Si();case 88:return function(){var e=Ke(),t=We();return ct(88),Tt(),Y(Et(R.createDebuggerStatement(),e),t)}();case 59:return Oi();case 133:case 119:case 155:case 143:case 144:case 137:case 86:case 93:case 94:case 101:case 122:case 123:case 124:case 127:case 128:case 125:case 147:case 160:if(Ni())return Oi()}var t,r;return function(){var t,r=Ke(),n=We(),i=20===qe(),a=ve(kn);return e.isIdentifier(a)&&ht(58)?t=R.createLabeledStatement(a,Pi()):(St()||_t(a),t=R.createExpressionStatement(a),i&&(n=!1)),Y(Et(t,r),n)}()}function Ii(e){return 137===e.kind}function Oi(){var t,r,n=Ke(),i=We(),a=ia();if(99===qe()||94===qe())if(e.hasEtsExtendDecoratorNames(a,h)){var o=e.getEtsExtendDecoratorsComponentNames(a,h);o.length>0&&(null===(t=h.ets)||void 0===t||t.extend.components.forEach((function(t){var r=t.name,n=t.type,i=t.instance;r===e.last(o)&&(P={name:r,type:n,instance:i})}))),pe(!!P)}else if(e.hasEtsStylesDecoratorNames(a,h)){e.getEtsStylesDecoratorComponentNames(a,h).length>0&&(I=null===(r=h.ets)||void 0===r?void 0:r.styles.component),_e(!!I)}else ue(e.isTokenInsideBuilder(a,h));var s=sa();if(e.some(s,Ii)){var c=function(e){return ye(16777216,(function(){var t=tr(A,e);if(t)return rr(t)}))}(n);if(c)return c;for(var l=0,u=s;l0&&(I=null===(g=h.ets)||void 0===g?void 0:g.styles.component),_e(!!I));var b=Oe();ue(Ie()&&(function(e){var t,r,n,i,a=null!==(i=null===(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.render)||void 0===r?void 0:r.method)||void 0===n?void 0:n.find((function(e){return"build"===e})))&&void 0!==i?i:"build";return 79===e.kind&&e.escapedText===a}(o)||function(t){return e.isTokenInsideBuilder(t,h)}(n)||function(e){var t,r,n,i,a=null!==(i=null===(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.render)||void 0===r?void 0:r.method)||void 0===n?void 0:n.find((function(e){return"pageTransition"===e})))&&void 0!==i?i:"pageTransition";return 79===e.kind&&e.escapedText===a}(o)));var x=a?1:0,D=e.some(i,e.isAsyncModifier)?2:0,S=Le()&&I?Ar(t):kr(),T=Mr(x|D),C=c.getStartPos(),E=function(){var e=Ir(58,!1);!e&&I&&Le()&&(e=va(R.createTypeReferenceNode(va(R.createIdentifier(I.type),C,C)),C,C));return e}(),k=Bi(x|D,u),A=R.createMethodDeclaration(oa(n,i),a,o,s,S,T,E,k);return A.exclamationToken=l,fe(y),ge(v),_e(!1),I=void 0,ue(b),Y(Et(A,t),r)}function Xi(t,r,n,i,a,o){var s=o||c.hasPrecedingLineBreak()?void 0:yt(53),l=Tn(),u=he(45056,An);return function(t,r,n){if(59!==qe()||c.hasPrecedingLineBreak())return 20===qe()?(we(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void He()):void(!r||Dt()?St()||(n?we(e.Diagnostics._0_expected,e.tokenToString(26)):_t(t)):n?we(e.Diagnostics._0_expected,e.tokenToString(26)):we(e.Diagnostics.Expected_for_property_initializer));we(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(a,l,u),Y(Et(R.createPropertyDeclaration(oa(n,i),a,o||s,l,u),t),r)}function Yi(t,r,n,i){var a=yt(41),o=Mt(),s=yt(57);return a||20===qe()||29===qe()?Qi(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):Xi(t,r,n,i,o,s)}function Zi(t,r,n,i,a,o){var s=Mt(),c=kr(),l=Mr(0),u=Ir(58,!1),d=Bi(o),p=175===a?R.createGetAccessorDeclaration(oa(n,i),s,l,u,d):R.createSetAccessorDeclaration(oa(n,i),s,l,d);return p.typeParameters=c,e.isSetAccessorDeclaration(p)&&(p.type=u),Y(Et(p,t),r)}function ea(){var t;if(59===qe())return!0;for(;e.isModifierKind(qe());){if(t=qe(),e.isClassMemberModifier(t))return!0;He()}if(41===qe())return!0;if(It()&&(t=qe(),He()),22===qe())return!0;if(void 0!==t){if(!e.isKeyword(t)||152===t||138===t)return!0;switch(qe()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return Dt()}}return!1}function ta(e,t,r,n){bt(125);var i=function(){var e=Ee(),t=Fe();oe(!1),ce(!0);var r=hi(!1);return oe(e),ce(t),r}(),a=Y(Et(R.createClassStaticBlockDeclaration(i),e),t);return a.illegalDecorators=r,a.modifiers=n,a}function ra(){if(Fe()&&134===qe()){var t=Ke(),r=wt(e.Diagnostics.Expression_expected);return He(),oi(t,ni(t,r,!0))}return Wn()}function na(){var e=Ke();if(ht(59)){var t=function(e){var t,r,n,i,a,o,s=null!==(n=null===(r=null===(t=h.ets)||void 0===t?void 0:t.extend)||void 0===r?void 0:r.decorator)&&void 0!==n?n:"Extend";79===qe()&&c.getTokenText()===s&&ie(!0,4);var l=null!==(o=null===(a=null===(i=h.ets)||void 0===i?void 0:i.styles)||void 0===a?void 0:a.decorator)&&void 0!==o?o:"Styles";return 79===qe()&&c.getTokenText()===l&&ie(!0,8),ye(16384,e)}(ra);return Et(R.createDecorator(t),e)}}function ia(){for(var t,r,n=Ke();r=na();)t=e.append(t,r);return t&&Ct(t,n)}function aa(t,r,n){var i=Ke(),a=qe();if(86===qe()&&t){if(!at(Bt))return}else{if(r&&125===qe()&&it(Ca))return;if(n&&125===qe())return;if(!e.isModifierKind(qe())||!at(jt))return}return Et(R.createToken(a),i)}function oa(t,r){if(!t)return r;if(!r)return t;var n=R.createNodeArray(e.concatenate(t,r));return e.setTextRangePosEnd(n,t.pos,r.end),n}function sa(t,r){for(var n,i,a=Ke(),o=!1;i=aa(t,r,o);)125===i.kind&&(o=!0),n=e.append(n,i);return n&&Ct(n,a)}function ca(){var e;if(133===qe()){var t=Ke();He(),e=Ct([Et(R.createToken(133),t)],t)}return e}function la(){var t=Ke();if(26===qe())return He(),Et(R.createSemicolonClassElement(),t);var r=We(),n=ia(),i=sa(!0,!0);if(125===qe()&&it(Ca))return ta(t,r,n,i);if(Rt(138))return Zi(t,r,n,i,175,0);if(Rt(152))return Zi(t,r,n,i,176,0);if(136===qe()||10===qe()){var a=Hi(t,r,n,i);if(a)return a}if(Br())return Jr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(qe())||10===qe()||8===qe()||41===qe()||22===qe()){if(e.some(i,Ii)){for(var o=0,s=i;o=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),_(a,t)){var s,l,u,p,g,m=[],h=[];return c.scanRange(t+3,i-5,(function(){var r,n=1,i=t-(a.lastIndexOf("\n",t)+1)+4;function d(e){r||(r=i),m.push(e),i+=e.length}for(Qe();q(5););q(4)&&(n=0,i=0);e:for(;;){switch(qe()){case 59:0===n||1===n?(v(m),g||(g=Ke()),w(S(i)),n=0,r=void 0):d(c.getTokenText());break;case 4:m.push(c.getTokenText()),n=0,i=0;break;case 41:var _=c.getTokenText();1===n||2===n?(n=2,d(_)):(n=1,i+=_.length);break;case 5:var f=c.getTokenText();2===n?m.push(f):void 0!==r&&i+f.length>r&&m.push(f.slice(r-i)),i+=f.length;break;case 1:break e;case 18:n=2;var b=c.getStartPos(),x=A(c.getTextPos()-1);if(x){p||y(m),h.push(Et(R.createJSDocText(m.join("")),null!=p?p:t,b)),h.push(x),m=[],p=c.getTextPos();break}default:n=2,d(c.getTokenText())}Qe()}v(m),h.length&&m.length&&h.push(Et(R.createJSDocText(m.join("")),null!=p?p:t,g)),h.length&&s&&e.Debug.assertIsDefined(g,"having parsed tags implies that the end of the comment span should be set");var D=s&&Ct(s,l,u);return Et(R.createJSDocComment(h.length?Ct(h,t,g):m.length?m.join(""):void 0,D),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(Qe(),1===qe())return!0;if(5!==qe()&&4!==qe())return!1}}function x(){if(5!==qe()&&4!==qe()||!it(b))for(;5===qe()||4===qe();)Qe()}function D(){if((5===qe()||4===qe())&&it(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===qe()||5===qe()||4===qe();)r+=c.getTokenText(),4===qe()?(e=!0,t=!0,r=""):41===qe()&&(e=!1),Qe();return t?r:""}function S(t){e.Debug.assert(59===qe());var i=c.getTokenPos();Qe();var a,o=$(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=Ke(),o=function(){var e=[],t=!1,r=c.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=Qe()}return R.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?Ct(e.concatenate([Et(o,a,s)],l),a):o.text+l;return Et(R.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=B();return Et(R.createJSDocImplementsTag(t,i,T(e,Ke(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=B();return Et(R.createJSDocAugmentsTag(t,i,T(e,Ke(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=j(i,R.createJSDocClassTag,o,t,l);break;case"public":a=j(i,R.createJSDocPublicTag,o,t,l);break;case"private":a=j(i,R.createJSDocPrivateTag,o,t,l);break;case"protected":a=j(i,R.createJSDocProtectedTag,o,t,l);break;case"readonly":a=j(i,R.createJSDocReadonlyTag,o,t,l);break;case"override":a=j(i,R.createJSDocOverrideTag,o,t,l);break;case"deprecated":Z=!0,a=j(i,R.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),Et(R.createJSDocThisTag(t,a,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),Et(R.createJSDocEnumTag(t,a,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return M(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&Ue(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=P();return Et(R.createJSDocReturnTag(r,a,T(t,Ke(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===qe()?r():void 0,o=function(){var e=Ke(),t=[];do{x();var r=W();void 0!==r&&t.push(r),D()}while(q(27));return Ct(t,e)}();return Et(R.createJSDocTemplateTag(t,a,o,T(e,Ke(),n,i)),e)}(i,o,t,l);break;case"type":a=L(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=P();D();var s=J();x();var c,l=C(n);if(!o||O(o.type)){for(var u=void 0,p=void 0,_=void 0,f=!1;u=at((function(){return z(n)}));)if(f=!0,349===u.kind){if(p){var g=we(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=u}else _=e.append(_,u);if(f){var m=o&&186===o.type.kind,h=R.createJSDocTypeLiteral(_,m);c=(o=p&&p.typeExpression&&!O(p.typeExpression.type)?p.typeExpression:Et(h,t)).end}}c=c||void 0!==l?Ke():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i));var y=R.createJSDocTypedefTag(r,o,s,l);return Et(y,t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=J();x();var o=C(n),s=function(t){var r,n,i=Ke();for(;r=at((function(){return V(4,t)}));)n=e.append(n,r);return Ct(n||[],i)}(n),c=at((function(){if(q(59)){var e=S(n);if(e&&347===e.kind)return e}})),l=Et(R.createJSDocSignature(void 0,s,c),t);o||(o=T(t,Ke(),n,i));var u=void 0!==o?Ke():l.end;return Et(R.createJSDocCallbackTag(r,l,a,o),t,u)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=22===qe()||it((function(){return 59===Qe()&&e.tokenIsIdentifierOrKeyword(Qe())&&F(c.getTokenValue())}))?void 0:n(),s=void 0!==i&&void 0!==a?T(t,Ke(),i,a):void 0;return Et(R.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return Et(R.createJSDocUnknownTag(t,T(e,Ke(),r,n)),e)}(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),C(r,n.slice(r))}function C(e,t){var r,n,i=Ke(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var d=qe();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||it(E))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var p=c.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:s=2;var _=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(Et(R.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===qe(),d=Qe()}return y(a),v(a),o.length?(a.length&&o.push(Et(R.createJSDocText(a.join("")),null!=r?r:i)),Ct(o,i,c.getTextPos())):a.length?a.join(""):void 0}function E(){var e=Qe();return 5===e||4===e}function A(t){var r=at(N);if(r){Qe(),x();var n=Ke(),i=e.tokenIsIdentifierOrKeyword(qe())?cr(!0):void 0;if(i)for(;80===qe();)et(),Qe(),i=Et(R.createJSDocMemberName(i,wt()),n);for(var a=[];19!==qe()&&4!==qe()&&1!==qe();)a.push(c.getTokenText()),Qe();return Et(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(D(),18===qe()&&59===Qe()&&e.tokenIsIdentifierOrKeyword(Qe())){var t=c.getTokenValue();if(F(t))return t}}function F(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(e){e&&(s?s.push(e):(s=[e],l=e.pos),u=e.end)}function P(){return D(),18===qe()?r():void 0}function I(){var t=q(22);t&&x();var r,n=q(61),i=function(){var e=$();ht(22)&&ct(23);for(;ht(24);){var t=$();ht(22)&&ct(23),e=lr(e,t)}return e}();return n&&(vt(r=61)||kt(r,!1,e.Diagnostics._0_expected,e.tokenToString(r))),t&&(x(),yt(63)&&kn(),ct(23)),{name:i,isBracketed:t}}function O(t){switch(t.kind){case 150:return!0;case 186:return O(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function M(t,r,n,i){var a=P(),o=!a;D();var s=I(),c=s.name,l=s.isBracketed,u=D();o&&!it(N)&&(a=P());var d=T(t,Ke(),i,u),p=4!==n&&function(t,r,n,i){if(t&&O(t.type)){for(var a=Ke(),o=void 0,s=void 0;o=at((function(){return V(n,i,r)}));)346!==o.kind&&353!==o.kind||(s=e.append(s,o));if(s){var c=Et(R.createJSDocTypeLiteral(s,186===t.type.kind),a);return Et(R.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return p&&(a=p,o=!0),Et(1===n?R.createJSDocPropertyTag(r,c,l,a,o,d):R.createJSDocParameterTag(r,c,l,a,o,d),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&Ue(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,Ke(),i,a):void 0;return Et(R.createJSDocTypeTag(n,o,l),t)}function B(){var e=ht(18),t=Ke(),r=function(){var e=Ke(),t=$();for(;ht(24);){var r=$();t=Et(R.createPropertyAccessExpression(t,r),e)}return t}(),n=ha(),i=Et(R.createExpressionWithTypeArguments(r,n),t);return e&&ct(19),i}function j(e,t,r,n,i){return Et(t(r,T(e,Ke(),n,i)),e)}function J(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(qe())){var n=$();if(ht(24)){var i=J(!0);return Et(R.createModuleDeclaration(void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function U(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function z(e){return V(1,e)}function V(t,r,n){for(var i=!0,a=!1;;)switch(Qe()){case 59:if(i){var o=K(t,r);return!(o&&(346===o.kind||353===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!U(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function K(t,r){e.Debug.assert(59===qe());var n=c.getStartPos();Qe();var i,a=$();switch(x(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&M(n,a,t,r)}function W(){var t=Ke(),r=q(22);r&&x();var n,i=$(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),ct(63),n=ye(8388608,Cr),ct(23)),!e.nodeIsMissing(i))return Et(R.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function q(e){return qe()===e&&(Qe(),!0)}function $(t){if(!e.tokenIsIdentifierOrKeyword(qe()))return kt(79,!t,t||e.Diagnostics.Identifier_expected);k++;var r=c.getTokenPos(),n=c.getTextPos(),i=qe(),a=At(c.getTokenValue()),o=Et(R.createIdentifier(a,void 0,i),r,n);return Qe(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){G("file.js",t,99,void 0,1),c.setText(t,n,i),S=c.scan();var a=r(),o=re("file.js",99,1,!1,[],R.createToken(1),0,e.noop),s=e.attachFileToDiagnostics(b,o);return x&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(x,o)),H(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){G("",t,99,void 0,1);var i=ye(8388608,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(b,a);return H(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=S,a=b.length,s=K,c=ye(8388608,(function(){return o(r,n)}));return e.setParent(c,t),262144&F&&(x||(x=[]),x.push.apply(x,b)),S=i,b.length=a,K=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(dt=t.JSDocParser||(t.JSDocParser={}))}(y||(y={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),R(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var l=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-i);return e.createTextChangeRange(l,u)}(t,l);s(t,n,f,u),e.Debug.assert(f.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(f.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(f))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var g=e.textChangeRangeNewSpan(f).length-f.span.length;!function(t,n,o,s,c,l,u,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var f=t.end;if(f>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),R(t,p,_),e.hasJSDocNodes(t))for(var g=0,m=t.jsDoc;go)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_i){h();var m={range:{pos:f.pos+a,end:f.end+a},type:g};l=e.append(l,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return h(),l;function h(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,m.commentDirectives,f.span.start,e.textSpanEnd(f.span),g,p,n,u),m.impliedNodeFormat=t.impliedNodeFormat,m},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(v||(v={})),e.isDeclarationFileName=U,e.processCommentPragmas=z,e.processPragmasIntoFields=V;var K=new e.Map;function W(e){if(K.has(e))return K.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return K.set(e,t),t}var q=/^\/\/\/\s*<(\S+)\s.*?\/>/im,$=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function G(t,r,n){var i=2===r.kind&&q.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function v(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=me(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=me(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=me(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=me(i,t[r]||"",o),r++;break;case"list":var c=g(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return x(c,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function D(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=f,e.parseListTypeOption=g,e.parseCommandLineWorker=y,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return y(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function C(t,r){var n=E(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function E(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,m)}e.parseBuildCommand=function(t){var r=y(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(i([],c,!0),[p],!1).join(" -> "))),{raw:t||J(r,l)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=le(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return pe(R(),e,t,void 0,M,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=_e(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,n):n;o=se(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,s,l):function(t,r,n,i,a){var s,c,l,u,d,p=ce(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(i));break;case"typingOptions":o=c||(c=ue(i));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){if("extends"!==o);else{var d=i?te(i,n):n;u=se(c,r,d,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,s){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(o,(function(e){return e.name===r}))&&(d=e.append(d,n))}},f=j(t,a,!0,_);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(i));d&&f&&void 0===f.compilerOptions&&a.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0])));return{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(r,n,a,s,l);if((null===(d=_.options)||void 0===d?void 0:d.paths)&&(_.options.pathsBasePath=a),_.extendedConfigPath){c=c.concat([p]);var f=function(t,r,n,i,a,o){var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=C(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u}));t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles));if(l.parseDiagnostics.length)return void a.push.apply(a,l.parseDiagnostics);return u}(r,_.extendedConfigPath,n,c,l,u);if(f&&f.options){var g,m=f.raw,h=_.raw,y=function(t){!h[t]&&m[t]&&(h[t]=e.map(m[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(g||(g=e.convertToRelativePath(e.getDirectoryPath(_.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};y("include"),y("exclude"),y("files"),void 0===h.compileOnSave&&(h.compileOnSave=m.compileOnSave),_.options=e.assign({},f.options,_.options),_.watchOptions=_.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,_.watchOptions):_.watchOptions||f.watchOptions}}return _}function se(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return pe(L(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=ue(n),a=d(e);return pe(B(),a,t,i,N,r),i}function pe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=_e(c,r[s],n,o):o.push(h(s,a,e.createCompilerDiagnostic))}return i}}function _e(t,r,n,i){if(V(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return _e(t.element,e,n,i)})),(function(e){return!!t.listPreserveFalsyValues||!!e}))}(t,r,n,i);if(!e.isString(a))return he(t,r,i);var o=me(t,r,i);return ee(o)?o:ge(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return fe(i.element,r,e)})),(function(e){return!!i.listPreserveFalsyValues||!!e})):n}return e.isString(t.type)?ge(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function ge(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function me(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function he(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return me(e,i,r);r.push(p(e))}}e.convertToObject=J,e.convertToObjectWorker=U,e.convertToTSConfig=function(t,r,n){var i,o,s,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),d=t.watchOptions&&H(t.watchOptions,F());return a(a({compilerOptions:a(a({},K(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&K(d),references:e.map(t.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:W(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getNameOfCompilerOptionValue=$,e.getCompilerOptionsDiffValue=function(t,r){var n,i,a,s=Q(t);return n=[],a=2,i=Array(a+1).join(" "),o.forEach((function(t){if(s.has(t.name)){var r=s.get(t.name),a=Ae(t);r!==a?n.push("".concat(i).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(i).concat(t.name,": ").concat(a))}})),n.join(r)+r},e.generateTSConfig=function(t,r,n){var i=Q(t);return function(){var t=new e.Map;t.set(e.Diagnostics.Projects,[]),t.set(e.Diagnostics.Language_and_Environment,[]),t.set(e.Diagnostics.Modules,[]),t.set(e.Diagnostics.JavaScript_Support,[]),t.set(e.Diagnostics.Emit,[]),t.set(e.Diagnostics.Interop_Constraints,[]),t.set(e.Diagnostics.Type_Checking,[]),t.set(e.Diagnostics.Completeness,[]);for(var s=0,c=e.optionDeclarations;s0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^".concat(e,"$")}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(function(t,r,n,i,a){var o=e.forEach(i,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(!o)return!1;for(var s=0,c=o;s=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}}(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},x=0,D=i.readDirectory(r,e.flatten(g),_,p,void 0);xr}function De(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Te(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Te(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:xe(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function k(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return C(n,a,o,(function(){return A()}))},clear:function(){n.clear()},update:function(e){E(e,n)}}}function A(){var t=new e.Map,r=new e.Map,n={get:function(e,r){return t.get(i(e,r))},set:function(e,r,a){return t.set(i(e,r),a),n},delete:function(e,r){return t.delete(i(e,r)),n},has:function(e,r){return t.has(i(e,r))},forEach:function(e){return t.forEach((function(t,n){var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)}))},size:function(){return t.size}};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function N(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n)){return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),_e(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(s)<=e.ModuleResolutionKind.NodeNext&&t(l,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,n&d.EsmMode?"ESM":"CJS",b.map((function(e){return"'".concat(e,"'")})).join(", "));var T=e.forEach(p,(function(r){return function(r){var p=function(e,t,r,n){return j(e,t,r,n,!0)},_=e.isOhpm(s.packageManagerType),g=N(r,i,o,p,S);if(g)return ve({resolved:g,isExternalLibraryImport:_?e.pathContainsOHModules(g.path):J(g.path)});if(e.isExternalModuleNameRelative(i)){var m=R(o,i),y=m.path,v=m.parts,b=j(r,y,!1,S,!0);return b&&ve({resolved:b,isExternalLibraryImport:e.contains(v,e.getModuleByPMType(s.packageManagerType))})}var D;if(n&d.Imports&&e.startsWith(i,"#")&&(D=function(r,n,i,a,o,s){var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),ve(void 0);var u=e.getNormalizedAbsolutePath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c)),d=Z(u,a);if(!d)return a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),ve(void 0);if(!d.contents.packageJsonContent.imports)return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,d.packageDirectory),ve(void 0);var p=oe(r,a,o,s,n,d.contents.packageJsonContent.imports,d,!0);if(p)return p;a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,d.packageDirectory);return ve(void 0)}(r,i,o,S,u,f)),!D&&n&d.SelfName&&(D=function(t,r,n,i,a,o){var s,c,l=e.getNormalizedAbsolutePath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s)),u=Z(l,i);if(!u||!u.contents.packageJsonContent.exports)return;if("string"!=typeof u.contents.packageJsonContent.name)return;var d=e.getPathComponents(r),p=e.getPathComponents(u.contents.packageJsonContent.name);if(!e.every(p,(function(e,t){return d[t]===e})))return;var _=d.slice(p.length);return ie(u,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}(r,i,o,S,u,f)),!D){if(h){var T=_?e.Diagnostics.Loading_module_0_from_oh_modules_folder_target_file_type_1:e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1;t(l,T,i,c[r])}D=le(r,i,o,S,u,f)}if(!D)return;var C=D.value;if(!s.preserveSymlinks&&C&&!C.originalPath){var E=B(C.path,l,h),k=x(E,C.path,l),A=k?void 0:C.path;C=a(a({},C),{path:k?C.path:E,originalPath:A})}return{value:C&&{resolved:C,isExternalLibraryImport:!0}}}(r)}));return _(null===(g=null==T?void 0:T.value)||void 0===g?void 0:g.resolved,null===(m=null==T?void 0:T.value)||void 0===m?void 0:m.isExternalLibraryImport,y,v,D,S.resultFromCache)}function R(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function B(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function j(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=K(r,i,a,o);if(u){var p=s?U(u.path,o.compilerOptions.packageManagerType):void 0;return n(p?ee(p,!1,o):void 0,u)}}a||(e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0));if(!(o.features&d.EsmMode))return Q(r,i,a,o,s)}function J(t){return e.stringContains(t,e.nodeModulesPathPart)}function U(t,r){var n=e.getModulePathPartByPMType(r),i=e.normalizePath(t),a=i.lastIndexOf(n);if(-1!==a){var o=a+n.length,s=z(i,o);return 64===i.charCodeAt(o)&&(s=z(i,s)),i.slice(0,s)}}function z(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function V(e,t,r,n){return o(K(e,t,r,n))}function K(t,r,n,i){if(t===c.Json||t===c.TSConfig){var a=e.tryRemoveExtension(r,".json"),o=a?r.substring(a.length):"";return void 0===a&&t===c.Json?void 0:$(a||r,t,o,n,i)}if(!(i.features&d.EsmMode)){var s=$(r,t,"",n,i);if(s)return s}return W(t,r,n,i)}function W(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),$(o,r,s,i,a)}}function q(t,r,n,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?W(t,r,n,i):void 0!==G(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function $(t,r,n,i,a){if(!i){var o=e.getDirectoryPath(t);o&&(i=!e.directoryProbablyExists(o,a.host))}switch(r){case c.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return a.compilerOptions.ets&&l(".d.ets")||l(".d.ts")}case c.TypeScript:case c.TsOnly:var s=r===c.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(s?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(s?l(".d.cts"):void 0);case".json":return t+=".json",s?l(".d.ts"):void 0;default:return a.compilerOptions.ets?l(".ets")||l(".ts")||l(".tsx")||(s?l(".d.ets")||l(".d.ts"):void 0):l(".ts")||l(".tsx")||(s?l(".d.ts")||l(".ets")||l(".d.ets"):void 0)}case c.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case c.TSConfig:case c.Json:return l(".json")}function l(e){var r=G(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function G(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return H(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(function(e){return H(s+e+o,r,n)}))}function H(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function Q(e,t,r,i,a){void 0===a&&(a=!0);var o=a?ee(t,r,i):void 0;return n(o,te(e,t,r,i,o&&o.contents.packageJsonContent,o&&o.contents.versionPaths))}function X(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0||c.indexOf("oh_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,r),d=e.getNormalizedAbsolutePath(u,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=q(i,d,!1,n);if(p)return a=e.appendIfUnique(a,p,(function(e,t){return e.path===t.path})),!0}else if(Array.isArray(r))for(var _=0,f=r;_0;){var i=ee(e.getPathFromPathComponents(n),!1,r);if(i)return i;n.pop()}}function ee(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,d=e.combinePaths(r,e.getPackageJsonByPMType(i.compilerOptions.packageManagerType));if(n)i.failedLookupLocations.push(d);else{var p=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(d);if(void 0!==p)return"boolean"!=typeof p?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,d),i.affectingLocations.push(d),p.packageDirectory===r?p:{packageDirectory:r,contents:p.contents}):(p&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,d),void i.failedLookupLocations.push(d));var _=e.directoryProbablyExists(r,c);if(_&&c.fileExists(d)){var f=e.isOhpm(i.compilerOptions.packageManagerType),g=f?u.parse(c.readFile(d)):e.readJson(d,c);if(l)t(c,f?e.Diagnostics.Found_oh_package_json5_at_0:e.Diagnostics.Found_package_json_at_0,d);var m={packageDirectory:r,contents:{packageJsonContent:g,versionPaths:y(g,i),resolvedEntrypoints:void 0}};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(d,m),i.affectingLocations.push(d),m}_&&l&&t(c,e.Diagnostics.File_0_does_not_exist,d),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(d,_),i.failedLookupLocations.push(d)}}function te(r,n,i,a,l,u){var p;if(l)switch(r){case c.JavaScript:case c.Json:case c.TsOnly:p=h(l,n,a);break;case c.TypeScript:p=m(l,n,a)||h(l,n,a);break;case c.DtsOnly:p=m(l,n,a);break;case c.TSConfig:p=function(e,t,r){return g(e,"tsconfig",t,r)}(l,n,a);break;default:return e.Debug.assertNever(r)}var _=function(r,n,i,a){var s=G(n,i,a);if(s){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t||".ets"===t||".d.ets"===t;case c.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".ets"===t;case c.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t||".d.ets"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(u)return o(u);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var p=r===c.DtsOnly?c.TypeScript:r,_=a.features;"module"!==(null==l?void 0:l.type)&&(a.features&=~d.EsmMode);var f=j(p,n,i,a,!1);return a.features=_,f},f=p?!e.directoryProbablyExists(e.getDirectoryPath(p),a.host):void 0,y=i||!e.directoryProbablyExists(n,a.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(u&&(!p||e.containsPath(n,p))){var b=e.getRelativePathFromDirectory(n,p||v,!1);a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var x=_e(r,b,n,u.paths,void 0,_,f||y,a);if(x)return s(x.value)}var D=p&&s(_(r,p,f,a));return D||(a.features&d.EsmMode?void 0:K(r,v,y,a))}function re(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function ne(t){return e.every(e.getOwnKeys(t),(function(t){return e.startsWith(t,".")}))}function ie(r,n,i,a,o,s){if(r.contents.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.contents.packageJsonContent.exports||Array.isArray(r.contents.packageJsonContent.exports)||"object"==typeof r.contents.packageJsonContent.exports&&(u=r.contents.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(function(t){return e.startsWith(t,".")})))?c=r.contents.packageJsonContent.exports:e.hasProperty(r.contents.packageJsonContent.exports,".")&&(c=r.contents.packageJsonContent.exports["."]),c)return se(n,a,o,s,i,r,!1)(c,"",!1,".")}else if(ne(r.contents.packageJsonContent.exports)){if("object"!=typeof r.contents.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0);var l=oe(n,a,o,s,i,r.contents.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0)}}function ae(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function oe(t,r,n,i,a,o,s,c){var l=se(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(f=o[a],"",!1,a);for(var u=0,p=e.sort(e.filter(e.getOwnKeys(o),(function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")})),ae);u0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var m=f?p.replace(/\*/g,_):p+_;return be(i,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",g,m),be(i,e.Diagnostics.Resolving_module_0_from_1,m,l.packageDirectory+"/"),ve((A=L(i.features,m,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],o)).resolvedModule?{path:A.resolvedModule.resolvedFileName,extension:A.resolvedModule.extension,packageId:A.resolvedModule.packageId,originalPath:A.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0)}var h=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0||h.indexOf("oh_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);var y=e.combinePaths(l.packageDirectory,p),v=e.getPathComponents(_);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0||v.indexOf("oh_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);i.traceEnabled&&t(i.host,e.Diagnostics.Using_0_subpath_1_with_target_2,u?"imports":"exports",g,f?p.replace(/\*/g,_):p+_);var b=F(f?y.replace(/\*/g,_):y+_),x=function(t,a,o,s){var u,d,p,_;if((r===c.TypeScript||r===c.JavaScript||r===c.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&-1===t.indexOf("/oh_modules/")&&(!i.compilerOptions.configFile||e.containsPath(l.packageDirectory,F(i.compilerOptions.configFile.fileName),!P()))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:P}),g=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var m=F(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[]}),(null===(d=(u=i.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",f));g.push(m)}else if(i.requestContainingDirectory){var h=F(e.combinePaths(i.requestContainingDirectory,"index.ts"));m=F(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[h,F(o)]}),(null===(_=(p=i.host).getCurrentDirectory)||void 0===_?void 0:_.call(p))||"",f));g.push(m);for(var y=e.ensureTrailingDirectorySeparator(m);y&&y.length>1;){var v=e.getPathComponents(y);v.pop();var b=e.getPathFromPathComponents(v);g.unshift(b),y=e.ensureTrailingDirectorySeparator(b)}}g.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(s?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,o));for(var x=0,D=g;x=0||ce(i.conditions,T)){be(i,e.Diagnostics.Matched_0_condition_1,u?"imports":"exports",T);var C=p[T];if(A=d(C,_,f,g))return A}else be(i,e.Diagnostics.Saw_non_matching_condition_0,T)}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);for(var E=0,k=p;E=0}function o(t){return e.endsWith(t,"/oh_modules")}function s(t){return e.stringContains(t,e.ohModulesPathPart)}function c(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isCallExpression(o)&&e.isIdentifier(o.expression)&&(null===(a=null===(i=r.ets)||void 0===i?void 0:i.extend.decorator)||void 0===a?void 0:a.includes(o.expression.escapedText.toString()))&&n.push(o.expression.escapedText.toString())})),0!==n.length)}function l(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.styles)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function u(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.render)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function d(t,r){var n=[];return!(!t||!t.length)&&(t.forEach((function(t){var i,a,o=t.expression;e.isIdentifier(o)&&o.escapedText.toString()===(null===(a=null===(i=r.ets)||void 0===i?void 0:i.concurrent)||void 0===a?void 0:a.decorator)&&n.push(o.escapedText.toString())})),0!==n.length)}function p(t){var r=e.getAncestor(t,208);return void 0!==r&&void 0!==r.parent&&e.isPropertyAssignment(r.parent)}function _(t){var r,n,i=t.getEmitResolver();return function(r){if(r.isDeclarationFile)return r;return e.factory.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,a,t))};function a(s){switch(s.kind){case 272:return function(t){if(!t.importClause||t.importClause.isTypeOnly)return t;d();var n=[],i=e.visitNode(t.importClause,o,e.isImportClause);i&&n.push(e.factory.updateImportDeclaration(t,void 0,i,t.moduleSpecifier,void 0));for(var a=function(){var t,n=r.name;r.namespaceImport?t=r.namespaceImport:r.namedImports.length>0&&(t=e.factory.createNamedImports(r.namedImports));var i=[];void 0!==n&&i.push(e.factory.createImportClause(!0,n,void 0));void 0!==t&&i.push(e.factory.createImportClause(!0,void 0,t));return d(),i}(),s=0,c=a;s0?n:void 0}(s);case 271:return function(t){if(t.isTypeOnly)return t;if(e.isExternalModuleImportEqualsDeclaration(t)){return i.isReferencedAliasDeclaration(t)?t:i.isReferenced(t)?e.factory.updateImportEqualsDeclaration(t,t.modifiers,!0,t.name,t.moduleReference):void 0}return t}(s);case 278:return function(t){if(t.isTypeOnly||!t.exportClause||e.isNamespaceExport(t.exportClause))return t;p();var r=[],i=e.visitNode(t.exportClause,l,e.isNamedExportBindings);i&&r.push(e.factory.updateExportDeclaration(t,void 0,t.isTypeOnly,i,t.moduleSpecifier,void 0));var a=function(){var t;n.namedExports.length>0&&(t=e.factory.createNamedExports(n.namedExports));return p(),t}();a&&r.push(e.factory.createExportDeclaration(void 0,!0,a,t.moduleSpecifier));return r.length>0?r:void 0}(s);case 209:case 210:return function(r){var n=i.getConstantValue(r);if(void 0!==n){return"string"==typeof n?e.factory.createStringLiteral(n):e.factory.createNumericLiteral(n)}return e.visitEachChild(r,a,t)}(s);case 305:return function(r){var n=i.getConstantValue(r);if(void 0!==n){var o="string"==typeof n?e.factory.createStringLiteral(n):e.factory.createNumericLiteral(n);return e.factory.updateEnumMember(r,r.name,o)}return e.visitEachChild(r,a,t)}(s);default:return e.visitEachChild(s,a,t)}}function o(t){if(t.isTypeOnly)return t;var n;i.isReferencedAliasDeclaration(t)?n=t.name:i.isReferenced(t)&&function(e){r.name=e.name}(t);var a=e.visitNode(t.namedBindings,s,e.isNamedImportBindings);return n||a?e.factory.updateImportClause(t,!1,n,a):void 0}function s(t){if(274===t.kind)return i.isReferencedAliasDeclaration(t)?t:void(i.isReferenced(t)&&function(e){r.namespaceImport=e}(t));var n=e.visitNodes(t.elements,c,e.isImportSpecifier);return e.some(n)?e.factory.updateNamedImports(t,n):void 0}function c(e){return e.isTypeOnly||i.isReferencedAliasDeclaration(e)?e:void(i.isReferenced(e)&&function(e){r.namedImports.push(e)}(e))}function l(t){var r=e.visitNodes(t.elements,u,e.isExportSpecifier);return e.some(r)?e.factory.updateNamedExports(t,r):void 0}function u(e){return e.isTypeOnly||i.isValueAliasDeclaration(e)?e:void function(e){n.namedExports.push(e)}(e)}function d(){r={name:void 0,namespaceImport:void 0,namedImports:[]}}function p(){n={namedExports:[]}}}e.isInEtsFile=t,e.isInEtsFileWithOriginal=function(t){for(var r;t;)if(void 0!==(t=t.original)&&8===(null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.scriptKind))return!0;return!1},e.getReservedDecoratorsOfEtsFile=function(e,n){var i;return t(e)&&(i=r(e,n)),i},e.getReservedDecoratorsOfStructDeclaration=function(e,t){var n;return 263===e.parent.kind&&(n=r(e,t)),n},e.ensureEtsDecorators=r,e.concatenateDecoratorsAndModifiers=function(t,r){return t?r?e.concatenate(t,r):t:r},e.getEffectiveDecorators=n,e.inEtsStylesContext=function(t,r){var n;if(!(null===(n=r.getCompilerOptions().ets)||void 0===n?void 0:n.styles.component)||8!==e.getSourceFileOfNode(t).scriptKind)return!1;var i=e.getAllDecorators(t);if(0==i.length)return!1;for(var a=0,o=i;a1?(n=t.length-i.length+e.last(a),r=n-t.length==0):r=!1}function a(e){!function(e){e&&e.length&&(r&&(r=!1),t+=e,i(e))}(e)}function o(){t="",r=!0,n=0}return o(),{write:a,rawWrite:function(e){void 0!==e&&(t+=e,i(e))},writeLiteral:function(e){e&&e.length&&a(e)},writeLine:function(e){r&&!e||(n=(t+=" ").length)},increaseIndent:e.noop,decreaseIndent:e.noop,getIndent:function(){return 0},getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return r?0:t.length-n},getText:function(){return t},isAtStartOfLine:function(){return r},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:o,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:a,writeOperator:a,writeParameter:a,writeProperty:a,writePunctuation:a,writeSpace:a,writeStringLiteral:a,writeSymbol:function(e,t){return a(e)},writeTrailingSemicolon:a,writeComment:e.noop,getTextPosWithWriteLine:function(){return r?t.length:t.length+1}}}}(d||(d={})),function(e){var t;function r(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?n(t.body,r):1}function n(t,i){void 0===i&&(i=new e.Map);var a=e.getNodeId(t);if(i.has(a))return i.get(a)||0;i.set(a,void 0);var s=function(t,i){switch(t.kind){case 264:case 265:return 0;case 266:if(e.isEnumConst(t))return 2;break;case 272:case 271:if(!e.hasSyntacticModifier(t,1))return 0;break;case 278:var a=t;if(!a.moduleSpecifier&&a.exportClause&&279===a.exportClause.kind){for(var s=0,c=0,l=a.exportClause.elements;cs&&(s=u),1===s)return s}return s}break;case 268:var d=0;return e.forEachChild(t,(function(t){var r=n(t,i);switch(r){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(r)}})),d;case 267:return r(t,i);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,i);return i.set(a,s),s}function o(t,r){for(var i=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;so)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function s(t){return e.Debug.attachFlowNodeDebugInfo(t),t}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"}(t||(t={}));var c=function(){var t,n,o,c,p,_,f,g,m,h,y,v,b,x,D,S,T,C,E,k,A,N,F,w,P=!1,I=0,O={flags:1},M={flags:1},L=function(){return e.createBinaryExpressionTrampoline(t,r,n,i,a,void 0);function t(t,r){if(r){r.stackIndex++,e.setParent(t,c);var n=N;Ue(t);var i=c;c=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(ue(t)){var o=Z();ve(t,o,o),y=ce(o)}else ve(t,D,S);r.skip=!0}return r}function r(e,t,r){if(!t.skip){var n=o(e);return 27===r.operatorToken.kind&&me(e),n}}function n(e,t,r){t.skip||Be(e)}function i(e,t,r){if(!t.skip){var n=o(e);return 27===r.operatorToken.kind&&me(e),n}}function a(t,r){if(!r.skip){var n=t.operatorToken.kind;if(e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t))if(ye(t.left),63===n&&210===t.left.kind)Y(t.left.expression)&&(y=oe(256,y,t))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==a&&(c=a),r.skip=!1,r.stackIndex--}function o(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Be(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,i){t=r,n=i,o=e.getEmitScriptTarget(n),N=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),w=new e.Set,I=0,F=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Be(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=w,function(){if(m){for(var r=p,n=g,i=f,a=c,o=y,l=0,d=m;l=242&&t.kind<=258&&!n.allowUnreachableCode&&(t.flowNode=y),t.kind){case 246:!function(e){var t=fe(e,ee()),r=Z(),n=Z();ne(t,y),y=t,pe(e.expression,r,n),y=ce(r),_e(e.statement,n,t),ne(t,y),y=ce(n)}(t);break;case 245:!function(e){var t=ee(),r=fe(e,Z()),n=Z();ne(t,y),y=t,_e(e.statement,n,r),ne(r,y),y=ce(r),pe(e.expression,t,n),y=ce(n)}(t);break;case 247:!function(e){var t=fe(e,ee()),r=Z(),n=Z();Be(e.initializer),ne(t,y),y=t,pe(e.condition,r,n),y=ce(r),_e(e.statement,n,t),Be(e.incrementor),ne(t,y),y=ce(n)}(t);break;case 248:case 249:!function(e){var t=fe(e,ee()),r=Z();Be(e.expression),ne(t,y),y=t,249===e.kind&&Be(e.awaitModifier);ne(r,y),Be(e.initializer),260!==e.initializer.kind&&ye(e.initializer);_e(e.statement,r,t),ne(t,y),y=ce(r)}(t);break;case 244:!function(e){var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),y=ce(t),Be(e.thenStatement),ne(n,y),y=ce(r),Be(e.elseStatement),ne(n,y),y=ce(n)}(t);break;case 252:case 256:!function(e){Be(e.expression),252===e.kind&&(k=!0,x&&ne(x,y));y=O}(t);break;case 251:case 250:!function(e){if(Be(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,ge(e,t.breakTarget,t.continueTarget))}else ge(e,v,b)}(t);break;case 257:!function(t){var r=x,n=T,i=Z(),a=Z(),o=Z();t.finallyBlock&&(x=a);ne(o,y),T=o,Be(t.tryBlock),ne(i,y),t.catchClause&&(y=ce(o),ne(o=Z(),y),T=o,Be(t.catchClause),ne(i,y));if(x=r,T=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Be(t.finallyBlock),1&y.flags?y=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,y)),T&&o.antecedents&&ne(T,te(s,o.antecedents,y)),y=i.antecedents?te(s,i.antecedents,y):O)}else y=ce(i)}(t);break;case 254:!function(t){var r=Z();Be(t.expression);var n=v,i=C;v=r,C=y,Be(t.caseBlock),ne(r,y);var a=e.forEach(t.caseBlock.clauses,(function(e){return 296===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0));v=n,C=i,y=ce(r)}(t);break;case 269:!function(e){for(var t=e.clauses,r=G(e.parent.expression),i=O,a=0;a=118&&r.originalKeywordKind<=126?t.bindDiagnostics.push(R(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):134===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):126===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function Ie(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Oe(e){N&&Ie(e,e.name)}function Me(r){if(o<2&&311!==f.kind&&267!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Le(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Re(r,n,i,o){!function(r,n,i){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,a(a({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},o)}function Be(r){if(r){e.setParent(r,c),e.tracing&&(r.tracingPath=t.path);var n=N;if(Ue(r),r.kind>163){var i=c;c=r;var a=Ce(r);0===a?$(r):function(t,r){var n=p,i=_,a=f;if(1&r?(217!==t.kind&&(_=p),p=f=t,32&r&&(p.locals=e.createSymbolTable()),Ee(p)):2&r&&((f=t).locals=void 0),4&r){var o=y,c=v,l=b,u=x,d=T,g=E,m=k,D=16&r&&!e.hasSyntacticModifier(t,512)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||173===t.kind;D||(y=s({flags:2}),144&r&&(y.node=t)),x=D||174===t.kind||e.isInJSFile(t)&&(261===t.kind||216===t.kind)?Z():void 0,T=void 0,v=void 0,b=void 0,E=void 0,k=!1,$(t),t.flags&=-2817,!(1&y.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=y),311===t.kind&&(t.flags|=A,t.endFlowNode=y),x&&(ne(x,y),y=ce(x),(174===t.kind||173===t.kind||e.isInJSFile(t)&&(261===t.kind||216===t.kind))&&(t.returnFlowNode=y)),D||(y=o),v=c,b=l,x=u,T=d,E=g,k=m}else 64&r?(h=!1,$(t),t.flags=h?128|t.flags:-129&t.flags):$(t);p=n,_=i,f=a}(r,a),c=i}else{i=c;1===r.kind&&(c=r),je(r),c=i}N=n}}function je(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 195:return void(h=!0);case 180:break;case 166:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(193===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,526824)):Fe(t,262144,J(t))}else ke(t,262144,526824)}(r);case 167:return it(r);case 259:return nt(r);case 206:return r.flowNode=y,nt(r);case 170:case 169:return function(t){var r=e.isAutoAccessorPropertyDeclaration(t),n=r?13247:0;return at(t,(r?98304:4)|(t.questionToken?16777216:0),n)}(r);case 302:case 303:return at(r,4,0);case 305:return at(r,8,900095);case 177:case 178:case 179:return ke(r,131072,0);case 172:case 171:return at(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 261:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048);Oe(r),N?(Me(r),we(r,16,110991)):ke(r,16,110991)}(r);case 174:return ke(r,16384,0);case 175:return at(r,32768,46015);case 176:return at(r,65536,78783);case 182:case 323:case 329:case 183:return function(t){var r=B(131072,J(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 185:case 328:case 198:return function(e){return Fe(e,2048,"__type")}(r);case 338:return function(t){q(t);var r=e.getHostSignatureFromJSDoc(t);r&&172!==r.kind&&j(r.symbol,r,32)}(r);case 208:return function(e){return Fe(e,4096,"__object")}(r);case 216:case 217:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(A|=2048);y&&(r.flowNode=y);Oe(r);var n=r.name?r.name.escapedText:"__function";return Fe(r,16,n)}(r);case 211:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var t=tt(e.arguments[0]),r=311===e.parent.parent.kind;t=Xe(t,e.arguments[0],r,!1,!1),Ye(e,t,!1)}(r);case 8:return function(e){if(!Ve(e))return;var t=rt(e.arguments[0],void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(t){var r=1048580;z(t.exports,t,e,r,0)}}(r);case 9:return function(e){var t=tt(e.arguments[0].expression);t&&t.valueDeclaration&&j(t,t.valueDeclaration,32);Ye(e,t,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ve(r)}(r);break;case 230:case 262:case 263:return N=!0,function(r){if(262===r.kind||263===r.kind)we(r,32,899503);else{Fe(r,32,r.name?r.name.escapedText:"__class"),r.name&&w.add(r.name.escapedText)}var n=r.symbol,i=B(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(R(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));n.exports.set(i.escapedName,i),i.parent=n}(r);case 264:return we(r,64,788872);case 265:return we(r,524288,788968);case 266:return function(t){return e.isEnumConst(t)?we(t,128,899967):we(t,256,899327)}(r);case 267:return function(r){if(Ae(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Le(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ne(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Le(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ke(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ne(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(r);case 292:return function(e){return Fe(e,4096,"__jsxAttributes")}(r);case 291:return function(e,t,r){return ke(e,t,r)}(r,4,0);case 271:case 274:case 276:case 281:return ke(r,2097152,2097152);case 270:return function(r){e.some(r.modifiers)&&t.bindDiagnostics.push(R(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(R(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),z(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 273:return function(e){e.name&&ke(e,2097152,2097152)}(r);case 278:return function(t){p.symbol&&p.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),z(p.symbol.exports,p.symbol,t.exportClause,2097152,2097152)):z(p.symbol.exports,p.symbol,t,8388608,0):Fe(t,8388608,J(t))}(r);case 277:return function(t){if(p.symbol&&p.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=z(p.symbol.exports,p.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Fe(t,111551,J(t))}(r);case 311:return Je(r.statements),function(){if(Ae(t),e.isExternalModule(t))ze();else if(e.isJsonSourceFile(t)){ze();var r=t.symbol;z(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 240:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(r.parent))return;case 268:return Je(r.statements);case 346:if(329===r.parent.kind)return it(r);if(328!==r.parent.kind)break;case 353:var _=r;return ke(_,_.isBracketed||_.typeExpression&&322===_.typeExpression.type.kind?16777220:4,0);case 351:case 344:case 345:return(m||(m=[])).push(r)}}function ze(){Fe(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Ve(e){return(!t.externalModuleIndicator||!0===t.externalModuleIndicator)&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||ze()),!0)}function Ke(t){if(Ve(t)){var r=rt(t.left.expression,void 0,(function(e,t){return t&&j(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),z(r.exports,r,t.left,n,0)}}}function We(e){z(t.symbol.exports,t.symbol,e,69206016,0)}function qe(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 261:case 216:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=tt(i.expression.expression,_))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?$e(t,n,n.members):z(n.members,n,t,67108868,0),j(n,n.valueDeclaration,32));break;case 174:case 170:case 172:case 175:case 176:case 173:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?$e(t,a.symbol,o):z(o,a.symbol,t,67108868,0,!0);break;case 311:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?z(r.symbol.exports,r.symbol,t,1048580,0):ke(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function $e(e,t,r){z(r,t,e,4,0,!0,!0),Ge(e,t)}function Ge(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function He(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),et(i,t,!0,!0)}function Qe(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),et(t.expression,t,!1,!1)}function Xe(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=rt(n,r,(function(r,n,i){return n?(j(n,r,s),n):z(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&j(r,r.valueDeclaration,32),r}function Ye(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),z(i,r,t,67108864|a,-67108865&o)}}function Ze(t){return e.isBinaryExpression(t.parent)?311===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:311===t.parent.parent.kind}function et(e,t,r,n){var i=tt(e,p)||tt(e,f),a=Ze(t);Ye(t,i=Xe(i,t.expression,a,r,n),r)}function tt(t,r){if(void 0===r&&(r=p),e.isIdentifier(t))return d(r,t.escapedText);var n=tt(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function rt(r,n,i){if(u(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,tt(r),n);var a=rt(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function nt(t){if(N&&Ie(t,t.name),!e.isBindingPattern(t.name)){var r=259===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?we(t,2,111551):e.isParameterDeclaration(t)?ke(t,1,111551):ke(t,1,111550):ke(t,2097152,2097152)}}function it(t){if((346!==t.kind||329===p.kind)&&(!N||16777216&t.flags||Ie(t,t.name),e.isBindingPattern(t.name)?Fe(t,1,"__"+t.parent.parameters.indexOf(t)):ke(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;z(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function at(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(A|=2048),y&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=y),e.hasDynamicName(r)?Fe(r,n,"__computed"):ke(r,n,i)}}();function l(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 264:case 265:return!0;case 267:return 1!==r(t);case 266:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function u(t,r){var n=0,i=e.createQueue();for(i.enqueue(r);!i.isEmpty()&&n<100;){if(n++,r=i.dequeue(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=d(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.enqueue(o),e.isAssignmentExpression(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function d(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),c(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=u}(d||(d={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],_=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol:function(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&(!p[t.id]&&(p[t.id]=t,!h(t.symbol)))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){f(t.target),e.forEach(u(t),f)}(t),32&n&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&n&&(m(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&m(r)}var a;262144&t.flags&&function(e){f(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function g(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o1&&2097152&v.flags&&(t=e.createSymbolTable()).set("export=",v);return F(t),k(d);function b(e){return!!e&&79===e.kind}function x(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(t)],b)}function S(t){var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),a=-1!==n?t[n]:void 0;if(a&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(r.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(i(i([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return x(e)})),(function(t){return e.factory.createExportSpecifier(!1,void 0,t)}))),void 0)],!1)))),t=i(i(i([],t.slice(0,n),!0),[a],!1),t.slice(n+1),!0)),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){d=[];var l=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){W(e,l?1:0)})),t=i(i([],e.filter(t,(function(e){return e!==a&&e!==r})),!0),d,!0)}}return t}function T(t){var r=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(r)>1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=i(i([],n,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=i(i([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=o;c=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(r){return e.canHaveExportModifier(t[r])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=e.isIdentifierText(n,K)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ye(e,t){var n=w(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=he(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))},symbolToNode:function(t,r,i,a,o){return n(i,a,o,(function(n){return function(t,r,n){if(1073741824&r.flags){if(t.valueDeclaration){var i=e.getNameOfDeclaration(t.valueDeclaration);if(i&&e.isComputedPropertyName(i))return i}var a=_i(t).nameType;if(a&&9216&a.flags)return r.enclosingDeclaration=a.symbol.valueDeclaration,e.factory.createComputedPropertyName(O(a.symbol,r,n))}return O(t,r,n)}(t,n,r)}))}};function n(r,n,i,a){var o,c;e.Debug.assert(void 0===r||!(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=s(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(o=l.tracker)||void 0===o?void 0:o.reportTruncationError)||void 0===c||c.call(o)),l.encounteredError?void 0:u}function s(e,t){var r=t.trackSymbol;return a(a({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,n){var i=n.flags,a=function(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(132)):void(n.encounteredError=!0);536870912&n.flags||(t=yl(t));if(1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(k(t.aliasSymbol),f(t.aliasTypeArguments,n)):t===Je?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(132),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===ze?140:132));if(2&t.flags)return e.factory.createKeywordTypeNode(158);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(161);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(135);if(1024&t.flags&&!(1048576&t.flags)){var a=Ea(t.symbol),o=A(a,n,788968);if($s(a)===t)return o;var s=e.symbolName(t.symbol);return e.isIdentifierText(s,0)?G(o,e.factory.createTypeReferenceNode(s,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return A(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var d=t.value;return n.approximateLength+=(""+d).length,e.factory.createLiteralTypeNode(d<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-d)):e.factory.createNumericLiteral(d))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(Ha(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,A(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(157,e.factory.createKeywordTypeNode(154))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(115);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(156);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(145);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||Ga(t.aliasSymbol,n.enclosingDeclaration))){var y=f(t.aliasTypeArguments,n);return!ja(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===e.length(y)&&t.aliasSymbol===Ht.symbol?e.factory.createArrayTypeNode(y[0]):A(t.aliasSymbol,n,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?W(t,$):$(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,x=Zc(t);if(x){var D=hu(t,!0);D&&U_(x,D)||(n.approximateLength+=9,b=x&&l(x,n))}return e.factory.createInferTypeNode(h(t,n,b))}if(4&n.flags&&262144&t.flags&&!Ga(t.symbol,n.enclosingDeclaration)){var S=P(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return A(t.symbol,n,788968);var T=(t===jt||t===Jt)&&_&&_.symbol?(t===Jt?"sub-":"super-")+e.symbolName(_.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(T),void 0)}1048576&t.flags&&t.origin&&(t=t.origin);if(3145728&t.flags){var C=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),K(t);if(4194304&t.flags){var N=t.type;n.approximateLength+=6;var I=l(N,n);return e.factory.createTypeOperatorNode(142,I)}if(134217728&t.flags){var O=t.texts,M=t.types,L=e.factory.createTemplateHead(O[0]),R=e.factory.createNodeArray(e.map(M,(function(t,r){return e.factory.createTemplateLiteralTypeSpan(l(t,n),(r10)return u(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,g=r(t),m=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(g.truncating=!0),g.addedLength=m,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,g)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),g;function h(t){return e.nodeIsSynthesized(t)||e.getParseTreeNode(t)!==t?e.setTextRange(e.factory.cloneNode(e.visitEachChild(t,h,e.nullTransformationContext,y)),t):t}function y(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function q(t){if(qc(t)||t.containsError)return V(t);var r=$c(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return m(r.callSignatures[0],182,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return m(r.constructSignatures[0],183,n)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,lu);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=Va(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(r)),l(Ud(a),n)}var o=n.flags;n.flags|=4194304;var s=Q(r);n.flags=o;var c=e.factory.createTypeLiteralNode(s);return n.approximateLength+=2,e.setEmitFlags(c,1024&n.flags?0:1),c}function $(t){var r=Eu(t);if(t.target===Ht||t.target===Qt){if(2&n.flags){var i=l(r[0],n);return e.factory.createTypeReferenceNode(t.target===Ht?"Array":"ReadonlyArray",[i])}var a=l(r[0],n),o=e.factory.createArrayTypeNode(a);return t.target===Ht?o:e.factory.createTypeOperatorNode(147,o)}if(!(8&t.target.objectFlags)){if(2048&n.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ha(t.symbol,n.enclosingDeclaration))return K(t);var s=t.target.outerTypeParameters,c=(D=0,void 0);if(s)for(var u=s.length;D0){var y=(t.target.typeParameters||e.emptyArray).length;h=f(r.slice(D,y),n)}S=n.flags;n.flags|=16;var v=A(t.symbol,n,788968,h);return n.flags=S,c?G(c,v):v}if(r=e.sameMap(r,(function(e,r){return Ag(e,!!(2&t.target.elementFlags[r]))})),r.length>0){var b=ku(t),x=f(r.slice(0,b),n);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D2)return[l(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),l(t[t.length-1],r)]}for(var i=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,a=[],o=0,s=0,u=t;s0)),a}function S(t,r){var n;return 524384&eC(t).flags&&(n=e.factory.createNodeArray(e.map(ks(t),(function(e){return y(e,r)})))),n}function T(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?N(l,l.length-1,1):void 0,p=i||T(l,0,r),_=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),g=void 0,m=void 0;if(e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==_?void 0:_.impliedNodeFormat)&&(g=E(l[0],r,e.ModuleKind.ESNext),m=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),g||(g=E(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Classic&&(g.indexOf("/node_modules/")>=0||e.isOhpmAndOhModules(V.packageManagerType,g))){var h=g;if(e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeNext){var y=(null==_?void 0:_.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(g=E(l[0],r,y)).indexOf("/node_modules/")>=0||e.isOHModules(g)?g=h:(m=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(y===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}m||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(h))}var v=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(g));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=g.length+10,!d||e.isEntityName(d)){if(d)(k=e.isIdentifier(d)?d:d.right).typeArguments=void 0;return e.factory.createImportTypeNode(v,m,d,p,u)}var b=C(d),D=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(v,m,D,p,u),b.indexType)}var S=N(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var k,A=(k=e.isIdentifier(S)?S:S.right).typeArguments;return k.typeArguments=void 0,e.factory.createTypeReferenceNode(S,A);function N(t,n,a){var o,s=n===t.length-1?i:T(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=vo(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&ba(l)){var u=ba(l);e.forEachEntry(u,(function(t,r){if(Fa(t,c)&&!ac(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(d.expression)):p}o=vo(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&dc(l)&&dc(l).get(c.escapedName)&&Fa(dc(l).get(c.escapedName),c)){p=N(t,n-1,a);return e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(_.symbol=c,n>a){p=N(t,n-1,a);return e.isEntityName(p)?e.factory.createQualifiedName(p,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function N(e,t,r){var n=bi(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function P(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Ed(t));if(a)return a}var o=I(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||N(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Ed(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function I(t,r,n,i){var a=x(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=vo(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function O(t,r,n){var i=x(t,r,n);return function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=vo(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ro))return e.factory.createStringLiteral(E(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),K):e.isIdentifierStart(c,K);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(function(e){return e.substring(1)})),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function M(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function L(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function R(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,L),i=function(t,r,n){var i=_i(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(V))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(V)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(O(i.symbol,r,111551))}}(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,M);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(V),n,o)}function B(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function j(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=Vl(r.target.typeParameters)}function J(t,r,n,i,a,o){if(!No(r)&&i){var s=B(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(function(t,r,n){var i=o_(t);if(i===n)return!0;if(e.isParameter(r)&&r.questionToken)return $m(n,524288)===i;return!1}(c,s,r)&&j(c,r)){var u=z(t,c,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var p=l(r,t);return t.flags=d,p}function U(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=sa(s,67108863,!0,!0);if(c&&(0!==Ya(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=$s(c),u=262144&c.flags&&!Ga(l.symbol,r.enclosingDeclaration)?P(l,r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function z(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||325===i.kind)return e.factory.createKeywordTypeNode(132);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(158);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(156)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ko(o_(i),a.escapedText),s=o&&t.typeExpression&&o_(t.typeExpression.type)!==o?l(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(132))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(132),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);if(e.isJSDocFunctionType(i)){var u;return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(void 0,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,(function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(132)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,(function(t,n){return e.factory.createParameterDeclaration(void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(132))}if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!j(i,o_(i))||Uu(i)||Pe===Iu(i,788968,!0)))return e.setOriginalNode(l(o_(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=fi(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=Vl(ks(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=FE(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=ua(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.assertions,i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(o_(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=U(i,n,a),_=p.introducesError,f=p.node;if(s=s||_,f!==i)return f}c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1);return e.visitEachChild(i,r,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg".concat(r)}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),se=e.createSymbolTable(),ce=ii(4,"undefined");ce.declarations=[];var le=ii(1536,"globalThis",8);le.exports=se,le.declarations=[],se.set(le.escapedName,le);var ue,de=ii(4,"arguments"),pe=ii(4,"require"),_e={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+D},getTypeCount:function(){return x},getInstantiationCount:function(){return T},getRelationCacheSizes:function(){return{assignable:Rn.size,identity:jn.size,subtype:Mn.size,strictSubtype:Ln.size}},isUndefinedSymbol:function(e){return e===ce},isArgumentsSymbol:function(e){return e===de},isUnknownSymbol:function(e){return e===Pe},getMergedSymbol:Ta,getDiagnostics:OC,getGlobalDiagnostics:function(){return MC(),Pn.getGlobalDiagnostics()},getRecursionIdentity:zf,getUnmatchedProperties:am,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=RD(r);if(wa(fi(r).resolvedSymbol)===t)return n}if(e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&cs(r.parent))return ds(r.parent.symbol);return bs(t)}(t,n):je},getTypeOfSymbol:vs,getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=mi(n.locals,r,111551),o=mi(dc(i.symbol),r,111551);if(a&&o)return[a,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:$s,getPropertiesOfType:Xc,getPropertyOfType:function(t,r){return Sl(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Pv(e.escapeLeadingUnderscores(r),i);return a?Mv(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ko(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return wl(e,0===t?Xe:Ye)},getIndexInfosOfType:Fl,getIndexInfosOfIndexSymbol:fu,getSignaturesOfType:Cl,getIndexTypeOfType:function(e,t){return Pl(e,0===t?Xe:Ye)},getIndexType:function(e){return ep(e)},getBaseTypes:Ms,getBaseTypeOfLiteralType:cg,getWidenedType:jg,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?o_(r):je},getParameterType:Cx,getParameterIdentifierNameAtPosition:function(e,t){var r;if(323===(null===(r=e.declaration)||void 0===r?void 0:r.kind))return;var n=e.parameters.length-(L(e)?1:0);if(t>",0,Le),Jr=gc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Ur=gc(void 0,void 0,void 0,e.emptyArray,je,void 0,0,0),zr=gc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Vr=gc(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),Kr=pu(Ye,Xe,!0),Wr=new e.Map,qr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},$r=mT(Le,Le,Le),Gr=mT(Le,Le,Ve),Hr=mT(ct,Le,We),Qr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return xr||(xr=Qu("AsyncIterator",3,e))||wt},getGlobalIterableType:ad,getGlobalIterableIteratorType:function(e){return Dr||(Dr=Qu("AsyncIterableIterator",1,e))||wt},getGlobalGeneratorType:function(e){return Sr||(Sr=Qu("AsyncGenerator",3,e))||wt},resolveIterationType:xS,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Xr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return gr||(gr=Qu("Iterator",3,e))||wt},getGlobalIterableType:od,getGlobalIterableIteratorType:function(e){return mr||(mr=Qu("IterableIterator",1,e))||wt},getGlobalGeneratorType:function(e){return hr||(hr=Qu("Generator",3,e))||wt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Yr=new e.Map,Zr=!1,en=new e.Map,tn=0,rn=0,nn=0,an=!1,on=0,sn=Yp(""),cn=Zp(0),ln=e_({negative:!1,base10Value:"0"}),un=[],dn=[],pn=[],_n=0,fn=10,gn=[],mn=[],hn=[],yn=[],vn=[],bn=[],xn=[],Dn=[],Sn=[],Tn=[],Cn=[],En=[],kn=[],An=[],Nn=[],Fn=[],wn=[],Pn=e.createDiagnosticCollection(),In=e.createDiagnosticCollection(),On=Id(e.arrayFrom(b.keys(),Yp)),Mn=new e.Map,Ln=new e.Map,Rn=new e.Map,Bn=new e.Map,jn=new e.Map,Jn=new e.Map,Un=e.createSymbolTable();Un.set(ce.escapedName,ce);var zn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===V.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]],Vn={fileNeedCheck:!1,checkPayload:void 0,currentFileName:""};return function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c1)}function _i(e){if(33554432&e.flags)return e;var t=w(e);return mn[t]||(mn[t]=new A)}function fi(e){var t=F(e);return hn[t]||(hn[t]=new N)}function gi(t){return 311===t.kind&&!e.isExternalOrCommonJsModule(t)}function mi(r,n,i,a){if(i){var o=Ta(r.get(n));if(o){if(e.Debug.assert(!(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!function(r,n){if(!n||!r.declarations||!r.declarations.length)return!0;var i=e.getEtsLibs(t),a=e.getSourceFileOfNode(n).fileName.trim();if(!a)return!0;var o=null===e.sys||void 0===e.sys?void 0:e.sys.resolvePath(a);return!(!(null==o?void 0:o.endsWith(".ets"))&&!i.includes(o)&&!r.declarations.filter((function(t){if(!e.getSourceFileOfNode(t).fileName)return!0;var r=null===e.sys||void 0===e.sys?void 0:e.sys.resolvePath(e.getSourceFileOfNode(t).fileName);return-1===i.indexOf(r)})).length)}(o,a))return;if(o.flags&i)return o;if(2097152&o.flags)if(Zi(o)&i)return o}}}function hi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||Nm(n)||16777216&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(206===r.kind){var c=e.getAncestor(n,206);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!_f(Jh(l,r,Dg(r))))return!0}}return!1}(a,vs(Ca(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else{if(!(170===r.kind&&!e.isStatic(r))||e.getContainingClass(t)!==e.getContainingClass(r))return!0}return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 217:return!0;case 170:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 240:switch(r.parent.kind){case 175:case 172:case 176:return!0;default:return!1}default:return!1}}))}}function yi(t,r,n){var i=e.getEmitScriptTarget(V),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=fi(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 217:case 216:case 261:case 174:return!1;case 172:case 175:case 176:case 302:return s(t.name);case 170:return e.hasStaticModifier(t)?i<99||!q:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function vi(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function bi(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),xi(e,t,r,n,i,a,o,s,mi)}function xi(t,r,n,i,a,o,s,c,l){var u,d,p,_,f,g,h,y,v,b=t,x=!1,D=t,S=!1;e:for(;t;){if("const"===r&&vi(t))return;if(t.locals&&!gi(t)&&(_=l(t.locals,r,n))){var T=!0;if(e.isFunctionLike(t)&&f&&f!==t.body?(n&_.flags&788968&&326!==f.kind&&(T=!!(262144&_.flags)&&(f===t.type||167===f.kind||346===f.kind||347===f.kind||166===f.kind)),n&_.flags&3&&(yi(_,t,f)?T=!1:1&_.flags&&(T=167===f.kind||f===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):192===t.kind&&(T=f===t.trueType),T)break e;_=void 0}switch(x=x||Si(t,f),t.kind){case 311:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 267:var C=Ca(t)&&(null===(u=Ca(t))||void 0===u?void 0:u.exports)||U;if(311===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=C.get("default")){var E=e.getLocalSymbolForExportDefault(_);if(E&&_.flags&n&&E.escapedName===r)break e;_=void 0}var k=C.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,281)||e.getDeclarationOfKind(k,280)))break}if("default"!==r&&(_=l(C,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=_.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 266:if(_=l((null===(p=Ca(t))||void 0===p?void 0:p.exports)||U,r,8&n))break e;break;case 170:if(!e.isStatic(t)){var A=Ia(t.parent);A&&A.locals&&l(A.locals,r,111551&n)&&(e.Debug.assertNode(t,e.isPropertyDeclaration),h=t)}break;case 262:case 230:case 264:if(_=l(Ca(t).members||U,r,788968&n)){if(!Ei(_,t)){_=void 0;break}if(f&&e.isStatic(f))return void(i&&Xn(D,e.Diagnostics.Static_members_cannot_reference_class_type_parameters));break e}if(230===t.kind&&32&n){var N=t.name;if(N&&r===N.escapedText){_=t.symbol;break e}}break;case 232:if(f===t.expression&&95===t.parent.token){var F=t.parent.parent;if(e.isClassLike(F)&&(_=l(Ca(F).members,r,788968&n)))return void(i&&Xn(D,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 165:if(v=t.parent.parent,(e.isClassLike(v)||264===v.kind)&&(_=l(Ca(v).members,r,788968&n)))return void(i&&Xn(D,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 217:if(e.getEmitScriptTarget(V)>=2)break;case 172:case 174:case 175:case 176:case 261:if(3&n&&"arguments"===r){_=de;break e}break;case 216:if(3&n&&"arguments"===r){_=de;break e}if(16&n){var w=t.name;if(w&&r===w.escapedText){_=t.symbol;break e}}break;case 168:t.parent&&167===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||262===t.parent.kind)&&(t=t.parent);break;case 351:case 344:case 345:var P=e.getJSDocRoot(t);P&&(t=P.parent);break;case 167:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&(y||(y=t));break;case 206:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 193:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){_=t.typeParameter.symbol;break e}}}Ti(t)&&(g=t),f=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!_||g&&_===g.symbol||(_.isReferenced|=n),!_){if(f&&(e.Debug.assert(311===f.kind),f.commonJsModuleIndicator&&"exports"===r&&n&f.symbol.flags))return f.symbol;s||(_=l(se,r,n,b))}if(!_&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return pe;function O(){return!(!h||q&&e.getEmitScriptTarget(V)>=9)&&(Xn(D,D&&h.type&&e.textRangeContainsPositionInclusive(h.type,D.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(h.name),Ci(a)),!0)}if(_){if(!i||!O())return i&&m((function(){if(D&&(2&n||(32&n||384&n)&&!(111551&~n))){var t=wa(_);(2&t.flags||32&t.flags||384&t.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||266===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||hi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Xn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Xn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Xn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(V)&&(a=Xn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}(t,D)}if(_&&S&&!(111551&~n)&&!(8388608&b.flags)){var i=Ta(_);e.length(i.declarations)&&e.every(i.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Zn(!V.allowUmdGlobalAccess,D,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&y&&!x&&!(111551&~n)){var a=Ta(pc(_)),o=e.getRootDeclaration(y);a===Ca(y)?Xn(D,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):a.valueDeclaration&&a.valueDeclaration.pos>y.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Xn(D,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(D))}if(_&&D&&111551&n&&2097152&_.flags&&!(111551&_.flags)&&!e.isValidTypeOnlyAliasUseSite(D)){var s=ra(_,111551);if(s){var c=281===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(r);Di(Xn(D,c,u),s,u)}}})),_}else i&&m((function(){if(!(D&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||RC(t)||Nm(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=Ca(a.parent);if(!o)break;if(Sl(vs(o),r))return Xn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ci(n),ao(o)),!0;if(a===i&&!e.isStatic(a))if(Sl($s(o).thisType,r))return Xn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ci(n)),!0}a=a.parent}return!1}(D,r,a)||O()||ki(D)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Xi(bi(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Sl($s(a),s))return Xn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(D,r,n)||function(t,r){if(Ni(r)&&281===t.parent.kind)return Xn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(D,r)||function(t,r,n){if(111127&n){if(Xi(bi(t,r,1024,void 0,void 0,!1)))return Xn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(Xi(bi(t,r,1536,void 0,void 0,!1)))return Xn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)||function(t,r,n){if(111551&n){if(Ni(r))return!function(t){var r=t.parent.parent,n=r.parent;if(r&&n){var i=e.isHeritageClause(r)&&95===r.token,a=e.isInterfaceDeclaration(n);return i&&a}return!1}(t)?Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)):Xn(t,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(r)),!0;var i=Xi(bi(t,r,788544,void 0,void 0,!1)),a=i&&Zi(i);if(i&&void 0!==a&&!(111551&a)){var o=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=$s(r);return!!(1048576&i.flags)&&oD(i,384,!0)}return!1}(t,i)?Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,o):Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,o,"K"===o?"P":"K"):Xn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,o),!0}}return!1}(D,r,n)||function(t,r,n){if(788584&n){var i=Xi(bi(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Xn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n)))){var t=void 0,o=void 0;if(a&&(o=function(t){for(var r=Ci(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",p=t.exports.get("export=").valueDeclaration,_=Xn(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ao(t),d);p&&e.addRelatedInfo(_,e.createDiagnosticForNode(p,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,d))}else e.isImportClause(r)?function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Xn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ao(t),ao(r.symbol));else{var o=Xn(r.name,e.Diagnostics.Module_0_has_no_default_export,ao(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=la(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(t,r):Wi(t,t,r,e.isImportOrExportSpecifier(r)&&r.propertyName||r.name);return ea(r,a,void 0,!1),a}function Vi(t){switch(t.kind){case 273:return t.parent.moduleSpecifier;case 271:return e.isExternalModuleReference(t.moduleReference)?t.moduleReference.expression:void 0;case 274:case 281:return t.parent.parent.moduleSpecifier;case 276:return t.parent.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(t)}}function Ki(t,r,n){var i;void 0===n&&(n=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=la(t,a),s=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(s)){var c=fa(o,a,!1,"default"===s.escapedText&&!(!V.allowSyntheticDefaultImports&&!e.getESModuleInterop(V)));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?Sl(vs(c),s.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Xi(Sl(o_(r),t))}}(c,s.escapedText),l=Xi(l,n);var u=function(e,t,r,n){if(1536&e.flags){var i=ba(e).get(t.escapedText),a=Xi(i,n);return ea(r,i,a,!1),a}}(c,s,r,n);if(void 0===u&&"default"===s.escapedText){var d=null===(i=o.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Ji(a)||Ui(d,o,n,a))&&(u=_a(o,n)||Xi(o,n))}var p=u&&l&&u!==l?function(t,r){if(t===Pe&&r===Pe)return Pe;if(790504&t.flags)return t;var n=ii(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(l,u):u||l;return p||Wi(o,c,t,s),p}}}function Wi(t,r,n,a){var o,s=oa(t,n),c=e.declarationNameToString(a),l=Hv(a,r);if(void 0!==l){var u=ao(l),d=Xn(a,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,s,c,u);l.valueDeclaration&&e.addRelatedInfo(d,e.createDiagnosticForNode(l.valueDeclaration,e.Diagnostics._0_is_declared_here,u))}else(null===(o=t.exports)||void 0===o?void 0:o.has("default"))?Xn(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,s,c):function(t,r,n,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=a.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)Fa(d,l)?function(t,r,n,i){if(W>=e.ModuleKind.ES2015){Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{if(e.isInJSFile(t))Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n);else Xn(r,e.getESModuleInterop(V)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}}(t,r,n,o):Xn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n);else{var p=u?e.find(Rl(u),(function(e){return!!Fa(e,l)})):void 0,_=p?Xn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,n,ao(p)):Xn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,n);l.declarations&&e.addRelatedInfo.apply(void 0,i([_],e.map(l.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)})),!1))}}else Xn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n)}(n,a,c,t,s)}function qi(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function $i(t,r,n){if("default"===e.idText(t.propertyName||t.name)){var i=Vi(t),a=i&&la(t,i);if(a)return zi(a,t,!!n)}var o=t.parent.parent.moduleSpecifier?Ki(t.parent.parent,t,n):sa(t.propertyName||t.name,r,!1,n);return ea(t,void 0,o,!1),o}function Gi(t,r){if(e.isClassExpression(t))return bD(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=sa(t,901119,!0,r);return n||(bD(t),fi(t).resolvedSymbol)}}function Hi(t,r){switch(void 0===r&&(r=!1),t.kind){case 271:case 259:return Mi(t,r);case 273:return function(e,t){var r=la(e,e.parent.moduleSpecifier);if(r)return zi(r,e,t)}(t,r);case 274:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=la(e,r),i=fa(n,r,t,!1);return ea(e,n,i,!1),i}(t,r);case 280:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&la(e,r),i=r&&fa(n,r,t,!1);return ea(e,n,i,!1),i}(t,r);case 276:case 206:return function(t,r){if(e.isImportSpecifier(t)&&"default"===e.idText(t.propertyName||t.name)){var n=Vi(t),i=n&&la(t,n);if(i)return zi(i,t,r)}var a=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,o=qi(a),s=Ki(a,o||t,r),c=t.propertyName||t.name;return o&&s&&e.isIdentifier(c)?Xi(Sl(vs(s),c.escapedText),r):(ea(t,void 0,s,!1),s)}(t,r);case 281:return $i(t,901119,r);case 277:case 225:return function(t,r){var n=Gi(e.isExportAssignment(t)?t.expression:t.right,r);return ea(t,void 0,n,!1),n}(t,r);case 270:return function(e,t){var r=_a(e.parent.symbol,t);return ea(e,void 0,r,!1),r}(t,r);case 303:return sa(t.name,901119,!0,r);case 302:return Gi(t.initializer,r);case 210:case 209:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return Gi(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Qi(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Xi(e,t){return!t&&Qi(e)?Yi(e):e}function Yi(t){e.Debug.assert(!!(2097152&t.flags),"Should only get Alias here.");var r=_i(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=Pe);else{r.aliasTarget=Ie;var n=Pi(t);if(!n)return e.Debug.fail();var i=Hi(n);r.aliasTarget===Ie?r.aliasTarget=i||Pe:Xn(n,e.Diagnostics.Circular_definition_of_import_alias_0,ao(t))}return r.aliasTarget}function Zi(t){for(var r,n=t.flags;2097152&t.flags;){var i=Yi(t);if(i===Pe)return 67108863;if(i===t||(null==r?void 0:r.has(i)))break;2097152&i.flags&&(r?r.add(i):r=new e.Set([t,i])),n|=i.flags,t=i}return n}function ea(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Ca(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return _i(a).typeOnlyDeclaration=t,!0;var o=_i(a);return ta(o,r,i)||ta(o,n,i)}function ta(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:_i(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function ra(e,t){if(2097152&e.flags){var r=_i(e);return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Zi(Yi(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}}function na(e){var t=Ca(e),r=Yi(t);r&&((r===Pe||111551&Zi(r)&&!sE(r)&&!ra(t,111551))&&ia(t))}function ia(t){var r=_i(t);if(!r.referenced){r.referenced=!0;var n=Pi(t);if(!n)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(n)&&111551&Zi(Xi(t))&&bD(n.moduleReference)}}function aa(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||164===t.parent.kind?sa(t,1920,!1,r):(e.Debug.assert(271===t.parent.kind),sa(t,901119,!1,r))}function oa(e,t){return e.parent?oa(e.parent,t)+"."+ao(e):ao(e,t,void 0,36)}function sa(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:km(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(ju(t.parent)){var n=function(t){if(e.findAncestor(t,(function(t){return e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"})))return;var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isPrototypePropertyAssignment(r.expression)){if(i=Ca(r.expression.left))return ca(i)}if(r&&e.isFunctionExpression(r)&&e.isPrototypePropertyAssignment(r.parent)&&e.isExpressionStatement(r.parent.parent)){if(i=Ca(r.parent.left))return ca(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=Ca(r.parent.parent.left))return ca(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=Ca(n))&&i.valueDeclaration}}(t.parent);if(n)return bi(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Ta(bi(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return Ta(l)}else{if(164!==t.kind&&209!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=164===t.kind?t.left:t.expression,d=164===t.kind?t.right:t.name,p=sa(u,s,n,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Pe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&ux(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=la(_,_);if(f){var g=_a(f);g&&(p=g)}}if(!(o=Ta(mi(ba(p),d.escapedText,r)))){if(!n){var m=oa(p),h=e.declarationNameToString(d),y=Hv(d,p);if(y)return void Xn(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,h,ao(y));var v=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),b=Wt&&788968&r&&v&&!e.isTypeOfExpression(v.parent)&&function(t){var r=e.getFirstIdentifier(t),n=bi(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Sl(vs(n),r.parent.right.escapedText)))return;r=r.parent}return n}}(v);if(b)return void Xn(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&r&&e.isQualifiedName(t.parent)){var x=Ta(mi(ba(p),d.escapedText,788968));if(x)return void Xn(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ao(x),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Xn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,h)}return}}return e.Debug.assert(!(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||277===t.parent.kind)&&ea(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Yi(o)}}function ca(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function la(t,r,n){var i=e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ua(t,r,n?void 0:i)}function ua(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?da(t,r.text,n,r,i):void 0}function da(r,n,i,a,o){var s,c,l,u,d,p,_,f;(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&Xn(a,R=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var g=-1!==n.lastIndexOf(".so");if(!g||e.isInETSFile(r)&&V.needDoArkTsLinter&&!V.isCompatibleVersion){var m=jl(n,!0);if(m)return m;var h=e.getSourceFileOfNode(r),y=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),v=y&&e.isStringLiteralLike(y)?e.getModeForUsageLocation(h,y):h.impliedNodeFormat,b=e.getResolvedModule(h,n,v);if(V.needDoArkTsLinter&&h&&3===h.scriptKind&&b&&(".ets"===b.extension||".d.ets"===b.extension))Xn(a,V.isCompatibleVersion?e.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden:e.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden,n);var x=b&&e.getResolutionDiagnostic(V,b),D=b&&(!x||x===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(b.resolvedFileName);if(D){if(x&&Xn(a,x,n,b.resolvedFileName),D.symbol){if(b.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(b.extension)&&pa(!1,a,b,n),e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeNext){var S=h.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),T=e.findAncestor(r,(function(t){return e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t)})),C=T&&e.isImportTypeNode(T)?null===(_=T.assertions)||void 0===_?void 0:_.assertClause:null==T?void 0:T.assertClause;if(S&&D.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(C))if(e.findAncestor(r,e.isImportEqualsDeclaration))Xn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{var E=void 0,k=e.tryGetExtensionFromPath(h.fileName);if(".ts"===k||".js"===k||".tsx"===k||".jsx"===k){var A=h.packageJsonScope,N=".ts"===k?".mts":".js"===k?".mjs":void 0;E=A&&!A.contents.packageJsonContent.type?N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,N,e.combinePaths(A.packageDirectory,e.getPackageJsonByPMType(V.packageManagerType))):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(A.packageDirectory,e.getPackageJsonByPMType(V.packageManagerType))):N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,N):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Pn.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(E,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return Ta(D.symbol)}i&&Xn(a,e.Diagnostics.File_0_is_not_a_module,D.fileName)}else{if(Vt){var F=e.findBestPatternMatch(Vt,(function(e){return e.pattern}),n);if(F){var w=Kt&&Kt.get(n);return Ta(w?w:F.symbol)}}if(b&&!e.resolutionExtensionIsTSOrJson(b.extension)&&void 0===x||x===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Xn(a,R=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,b.resolvedFileName):pa(Y&&!!i,a,b,n);else if(i){if(b){var P=t.getProjectReferenceRedirect(b.resolvedFileName);if(P)return void Xn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,P,b.resolvedFileName)}if(x)Xn(a,x,n,b.resolvedFileName);else{var I=e.tryExtractTSExtension(n),O=e.pathIsRelative(n)&&!e.hasExtension(n),M=e.getEmitModuleResolutionKind(V),L=M===e.ModuleResolutionKind.Node16||M===e.ModuleResolutionKind.NodeNext;if(I){var R=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,B=e.removeExtension(n,I);W>=e.ModuleKind.ES2015&&(B+=".mts"===I?".mjs":".cts"===I?".cjs":".js"),Xn(a,R,I,B)}else if(!V.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(V)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(V))Xn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(v===e.ModuleKind.ESNext&&L&&O){var j=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(h.path)),J=null===(f=zn.find((function(e){var r=e[0];e[1];return t.fileExists(j+r)})))||void 0===f?void 0:f[1];J?Xn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+J):Xn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(g){U=e.createDiagnosticForNode(a,e.Diagnostics.Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared,n);Pn.add(U)}else Xn(a,i,n)}}}}else{var U=e.createDiagnosticForNode(a,e.Diagnostics.Currently_module_for_0_is_not_verified_If_you_re_importing_napi_its_verification_will_be_enabled_in_later_SDK_version_Please_make_sure_the_corresponding_d_ts_file_is_provided_and_the_napis_are_correctly_declared,n);Pn.add(U)}}function pa(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!f().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Zn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function _a(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===Pe||t===r||1===r.exports.size||2097152&t.flags)return t;var n=_i(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:si(t);i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable());return r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?ci(i.exports.get(t),e):e)})),_i(i).cjsExportMerged=i,n.cjsExportMerged=i}(Ta(Xi(t.exports.get("export="),r)),Ta(t));return Ta(n)||t}}function fa(t,r,n,i){var a,o=_a(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,311))){var s=W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Xn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=vs(o),d=cx(u,o,t,l);if(d)return ga(o,d,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),_=p&&ji(Bi(l),p.impliedNodeFormat);if(e.getESModuleInterop(V)||_){var f=Tl(u,0);if(f&&f.length||(f=Tl(u,1)),f&&f.length||Sl(u,"default",!0)||_)return ga(o,lx(u,o,t,l),c)}}}return o}function ga(t,r,n){var i=ii(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=$c(r);return i.type=Va(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function ma(e){return void 0!==e.exports.get("export=")}function ha(e){return Rl(xa(e))}function ya(e,t){var r=xa(t);if(r)return r.get(e)}function va(t){return!(131068&t.flags||1&e.getObjectFlags(t)||$f(t)||_g(t))}function ba(e){return 6256&e.flags?uc(e,"resolvedExports"):1536&e.flags?xa(e):e.exports||U}function xa(e){var t=_i(e);return t.resolvedExports||(t.resolvedExports=Sa(e))}function Da(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Xi(o)!==Xi(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Sa(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c=d?u.substr(0,d-3)+"...":u}function co(e,t){var r=uo(e.symbol)?so(e,e.symbol.valueDeclaration):so(e),n=uo(t.symbol)?so(t,t.symbol.valueDeclaration):so(t);return r===n&&(r=lo(e),n=lo(t)),[r,n]}function lo(e){return so(e,void 0,64)}function uo(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!R_(t.valueDeclaration)}function po(e){return void 0===e&&(e=0),848330091&e}function _o(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Bs(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function fo(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(130):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&oe.typeToTypeNode(t.type,r,70222336|po(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function go(e){return 8===e?"private":16===e?"protected":"public"}function mo(t){return t&&t.parent&&268===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function ho(t){return 311===t.kind||e.isAmbientModule(t)}function yo(t,r){var n=_i(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(V))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(vo(n.symbol,r),"]")}}function vo(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],ho)!==e.findAncestor(r.enclosingDeclaration,ho)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=_i(t).nameType;if(a&&384&a.flags){var o=yo(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&259===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 230:case 216:case 217:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),230===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=yo(t,r);return void 0!==s?s:e.symbolName(t)}function bo(t){if(t){var r=fi(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 344:case 351:case 345:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 206:return bo(t.parent.parent);case 259:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 267:case 262:case 263:case 264:case 265:case 261:case 266:case 271:if(e.isExternalModuleAugmentation(t))return!0;var r=Eo(t);return 1&e.getCombinedModifierFlags(t)||271!==t.kind&&311!==r.kind&&16777216&r.flags?bo(r):gi(r);case 170:case 169:case 175:case 176:case 172:case 171:if(e.hasEffectiveModifier(t,24))return!1;case 174:case 178:case 177:case 179:case 167:case 268:case 182:case 183:case 185:case 181:case 186:case 187:case 190:case 191:case 194:case 200:return bo(t.parent);case 273:case 274:case 276:return!1;case 166:case 311:case 270:return!0;default:return!1}}()),r.isVisible}return!1}function xo(t,r){var n,i,a;return t.parent&&277===t.parent.kind?n=bi(t,t.escapedText,2998271,void 0,t,!1):281===t.parent.kind&&(n=$i(t.parent,2998271)),n&&((a=new e.Set).add(w(n)),function t(n){e.forEach(n,(function(n){var o=wi(n)||n;if(r?fi(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=bi(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,w(c))&&t(c.declarations)}}))}(n.declarations)),i}function Do(e,t){var r=So(e,t);if(r>=0){for(var n=un.length,i=r;i=0;r--){if(To(un[r],pn[r]))return-1;if(un[r]===e&&pn[r]===t)return r}return-1}function To(e,t){switch(t){case 0:return!!_i(e).type;case 5:return!!fi(e).resolvedEnumType;case 2:return!!_i(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!_i(e).writeType}}function Co(){return un.pop(),pn.pop(),dn.pop()}function Eo(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 259:case 260:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function ko(e,t){var r=Sl(e,t);return r?vs(r):void 0}function Ao(e){return e&&!!(1&e.flags)}function No(e){return e===je||!!(1&e.flags&&e.aliasSymbol)}function Fo(e,t){if(0!==t)return zo(e,!1,t);var r=Ca(e);return r&&_i(r).type||zo(e,!1,t)}function wo(t,r,n){if(131072&(t=gh(t,(function(e){return!(98304&e.flags)}))).flags)return Ct;if(1048576&t.flags)return yh(t,(function(e){return wo(e,r,n)}));for(var a=Id(e.map(r,Gd)),o=[],s=[],c=0,l=Xc(t);c=2?(i=Le,ld(od(!0),[i])):rr;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Le:Zo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||By(t))}),a.length-1)+1,u=yd(c,e.map(a,(function(e,t){return e===s?4:t>=l?2:1})));return r&&((u=Tu(u)).pattern=t,u.objectFlags|=131072),u}function ts(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),204===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=131200;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=pu(Xe,Le,!1);else{var s=Gd(t);if(nc(s)){var c=cc(s),l=ii(4|(e.initializer?16777216:0),c);l.type=Zo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=Va(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=131072),s}(t,r,n):es(t,r,n)}function rs(e,t){return is(zo(e,!0,0),e,t)}function ns(e){var t,r=Ca(e),n=(t=!1,sr||(sr=$u("SymbolConstructor",t)));return n&&r&&r===n}function is(t,r,n){return t?(4096&t.flags&&ns(r.parent)&&(t=r_(r)),n&&Vg(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Ca(r)&&(t=ot),jg(t)):(t=e.isParameter(r)&&r.dotDotDotToken?rr:Le,n&&(as(r)||zg(r,t)),t)}function as(t){var r=e.getRootDeclaration(t);return lS(167===r.kind?r.parent:r)}function os(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return o_(r)}function ss(t){var r=_i(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=$s(Ea(t))).typeParameters?Su(r,e.map(r.typeParameters,(function(e){return Le}))):r;var r;if(t===pe)return Le;if(134217728&t.flags&&t.valueDeclaration){var n=Ca(e.getSourceFileOfNode(t.valueDeclaration)),i=ii(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Va(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return ee?Ve:Le;var l=KC(c);return Ao(l)||l===Ve?l:je}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?jg(lg(JD(s.statements[0].expression))):Ct;if(e.isAccessor(s))return us(t);if(!Do(t,0))return 512&t.flags&&!(67108864&t.flags)?_s(t):ms(t);if(277===s.kind)o=is(os(s)||bD(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Go(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return _s(t);o=e.isBinaryExpression(s.parent)?Go(t):os(s)||Le}else if(e.isPropertyAssignment(s))o=os(s)||kD(s);else if(e.isJsxAttribute(s))o=os(s)||Qy(s);else if(e.isShorthandPropertyAssignment(s))o=os(s)||ED(s.name,0);else if(e.isObjectLiteralMethod(s))o=os(s)||AD(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=rs(s,!0);else if(e.isEnumDeclaration(s))o=_s(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=fs(t)}if(!Co())return 512&t.flags&&!(67108864&t.flags)?_s(t):ms(t);return o}(t);r.type||(r.type=n)}return r.type}function cs(t){if(t)switch(t.kind){case 175:return e.getEffectiveReturnTypeNode(t);case 176:return e.getEffectiveSetAccessorTypeAnnotationNode(t);case 170:return e.Debug.assert(e.hasAccessorModifier(t)),e.getEffectiveTypeAnnotationNode(t)}}function ls(e){var t=cs(e);return t&&o_(t)}function us(t){var r=_i(t);if(!r.type){if(!Do(t,0))return je;var n=e.getDeclarationOfKind(t,175),i=e.getDeclarationOfKind(t,176),a=e.tryCast(e.getDeclarationOfKind(t,170),e.isAutoAccessorPropertyDeclaration),o=n&&e.isInJSFile(n)&&jo(n)||ls(n)||ls(i)||ls(a)||n&&n.body&&Jx(n)||a&&a.initializer&&rs(a,!0);o||(i&&!lS(i)?Zn(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ao(t)):n&&!lS(n)?Zn(Y,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ao(t)):a&&!lS(a)&&Zn(Y,a,e.Diagnostics.Member_0_implicitly_has_an_1_type,ao(t),"any"),o=Le),Co()||(cs(n)?Xn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)):cs(i)||cs(a)?Xn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)):n&&Y&&Xn(n,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ao(t)),o=Le),r.type=o}return r.type}function ds(t){var r,n=_i(t);if(!n.writeType){if(!Do(t,8))return je;var i=null!==(r=e.getDeclarationOfKind(t,176))&&void 0!==r?r:e.tryCast(e.getDeclarationOfKind(t,170),e.isAutoAccessorPropertyDeclaration),a=ls(i);Co()||(cs(i)&&Xn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)),a=Le),n.writeType=a||us(t)}return n.writeType}function ps(t){var r=Is(Bs(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function _s(t){var r=_i(t),n=r;if(!r.type){var i=t.valueDeclaration&&Xb(t.valueDeclaration,!1);if(i){var a=Qb(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Le;if(r&&(225===r.kind||e.isAccessExpression(r)&&225===r.parent.kind))return Go(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=_a(t);if(n!==t){if(!Do(t,0))return je;var i=Ta(t.exports.get("export=")),a=Go(i,i===n?void 0:n);return Co()?a:ms(t)}}var o=Ra(16,t);if(32&t.flags){var s=ps(t);return s?Ud([o,s]):o}return G&&16777216&t.flags?Dg(o):o}(t)}return r.type}function fs(e){var t=_i(e);return t.type||(t.type=Ws(e))}function gs(t){var r=_i(t);if(!r.type){var n=Yi(t),i=t.declarations&&Hi(Pi(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(function(t){return e.isExportAssignment(t)?os(t):void 0}));r.type=(null==i?void 0:i.declarations)&&CC(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,Jh(a,Re,We)}(i):CC(t.declarations)?Re:a||(111551&Zi(n)?vs(n):je)}return r.type}function ms(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Xn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ao(t)),je):(Y&&(167!==r.kind||r.initializer)&&Xn(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ao(t)),Le)}function hs(t){var r=_i(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Id(r.deferralConstituents):Ud(r.deferralConstituents)),r.type}function ys(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?function(t){var r=_i(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?Id(r.deferralWriteConstituents):Ud(r.deferralWriteConstituents)),r.writeType}(t)||hs(t):t.writeType||t.type:vs(t):98304&t.flags?1&r?function(e){var t=_i(e);return t.writeType||(t.writeType=P_(ys(t.target),t.mapper))}(t):ds(t):vs(t)}function vs(t){var r=e.getCheckFlags(t);return 65536&r?hs(t):1&r?function(e){var t=_i(e);return t.type||(t.type=P_(vs(t.target),t.mapper))}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!Do(t,0))return r.containsError=!0,je;var n=P_(jc(r.target||r),x_(r.mapper,Lc(r),t.keyType)),i=G&&16777216&t.flags&&!iD(n,49152)?Dg(n,!0):524288&t.checkFlags?Fg(n):n;Co()||(Xn(u,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ao(t),so(r)),i=je),t.type=i}return t.type}(t):8192&r?function(e){var t=_i(e);t.type||(t.type=im(e.propertyType,e.mappedType,e.constraintType));return t.type}(t):7&t.flags?ss(t):9136&t.flags?_s(t):8&t.flags?fs(t):98304&t.flags?us(t):2097152&t.flags?gs(t):je}function bs(e){return Ag(vs(e),!!(16777216&e.flags))}function xs(t,r){return void 0!==t&&void 0!==r&&!!(4&e.getObjectFlags(t))&&t.target===r}function Ds(t){return 4&e.getObjectFlags(t)?t.target:t}function Ss(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Ds(n);return i===r||e.some(Ms(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function Ts(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=il(e);return!!t&&As(t)}return!1}function Fs(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function ws(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Cl(t,1),(function(t){return(a||i>=Vl(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Ps(t,r,n){var i=ws(t,r,n),a=e.map(r,o_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?nu(t,a,e.isInJSFile(n)):t}))}function Is(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=Fs(t);if(!i)return t.resolvedBaseConstructorType=We;if(!Do(t,1))return je;var a=JD(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),JD(n.expression)),2621440&a.flags&&$c(a),!Co())return Xn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ao(t.symbol)),t.resolvedBaseConstructorType=je;if(!(1&a.flags||a===Qe||Ns(a))){var o=Xn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,so(a));if(262144&a.flags){var s=yu(a),c=Ve;if(s){var l=Cl(s,1);l[0]&&(c=Zl(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ao(a.symbol),so(c)))}return t.resolvedBaseConstructorType=je}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Os(t,r){Xn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,so(r,void 0,2))}function Ms(t){if(!t.baseTypesResolved){if(Do(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Ls(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=_l(Is(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Fs(t),a=r.symbol?$s(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=Eu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Au(i,r.symbol);else if(1&r.flags)n=r;else{var o=Ps(r,i.typeArguments,i);if(!o.length)return Xn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Zl(o[0])}if(No(n))return t.resolvedBaseTypes=e.emptyArray;var s=yl(n);if(!Rs(s)){var c=Dl(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,so(s));return Pn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Ss(s,t))return Xn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,so(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)u=Pg(d,Ud(e.mapDefined(c,(function(e){return e.thisParameter&&vs(e.thisParameter)}))));(l=hc(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=function(t){if(t!==p){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=r.typeParameters&&e.some(_,(function(e){return!!e.typeParameters&&!Sc(r.typeParameters,e.typeParameters)}))?void 0:e.map(_,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=p_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Ax(e),i=Ax(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Fx(e)||Fx(t),l=c&&!Fx(a),u=new Array(s+(l?1:0)),d=0;d=Nx(a)&&d>=Nx(o),h=d>=n?void 0:xx(e,d),y=d>=i?void 0:xx(t,d),v=ii(1|(m&&!g?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=g?dd(f):f,u[d]=v}if(l){var b=ii(1,"args");b.type=dd(Cx(o,s)),o===t&&(b.type=P_(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Ud([vs(e),P_(vs(t),r)]);return Pg(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),l=gc(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));l.compositeKind=1048576,l.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(l.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?v_(t.mapper,n):n);return l}(t,r)})),!_)return"break"}},g=0,m=t;g0})),n=e.map(t,As);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function kc(t){for(var r,n,i,a=t.types,o=Ec(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=t.types[c];if(!o[c]){var u=Cl(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var t=mc(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=_&&c<=f){var g=f?au(p,Kl(s,p.typeParameters,_,o)):mc(p);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,l.push(g)}}return l}(p)),t.constructSignatures=a}}}function wc(e,t,r){return P_(e,p_([t.indexType,t.objectType],[Zp(0),yd([r])]))}function Pc(t){if(4194304&t.flags){var r=_l(t.type);return fg(r)?Sd(r):ep(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Pc(n);if(i!==n)return w_(t,b_(t.root.checkType,i,t.mapper))}return t}if(1048576&t.flags)return yh(t,Pc);if(2097152&t.flags){var a=t.types;return 2===a.length&&76&a[0].flags&&a[1]===At?t:Ud(e.sameMap(t.types,Pc))}return t}function Ic(t){return 4096&e.getCheckFlags(t)}function Oc(e,t,r,n){for(var i=0,a=Xc(e);i2?(I.checkFlags|=65536,I.deferralParent=t,I.deferralConstituents=C,I.deferralWriteConstituents=S):(I.type=u?Id(C):Ud(C),S&&(I.writeType=u?Id(S):Ud(S))),I}}function ml(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;o||(o=gl(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o);return o}function hl(t,r,n){var i=ml(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function yl(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,yl);if(r===t.types)return t;var n=Id(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(Qc(t),vl)?33554432:0)),33554432&t.objectFlags?ct:t):t}function vl(e){return bl(e)||xl(e)}function bl(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&vs(t).flags))}function xl(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Dl(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(Qc(r),bl);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,so(r,void 0,536870912),ao(n));var i=e.find(Qc(r),xl);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,so(r,void 0,536870912),ao(i))}return t}function Sl(e,t,r,n){if(524288&(e=fl(e)).flags){var i=$c(e),a=i.members.get(t);if(a&&Pa(a,n))return a;if(r)return;var o=i===Pt?qt:i.callSignatures.length?$t:i.constructSignatures.length?Gt:void 0;if(o){var s=Hc(o,t);if(s)return s}return Hc(Wt,t)}if(3145728&e.flags)return hl(e,t,r)}function Tl(t,r){if(3670016&t.flags){var n=$c(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Cl(e,t){return Tl(fl(e),t)}function El(t,r){return e.find(t,(function(e){return e.keyType===r}))}function kl(t,r){for(var n,i,a,o=0,s=t;o=0),n>=Nx(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Ul(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&322===n.type.kind}function zl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Vl(e){var t=0;if(e)for(var r=0;r=n&&o<=a){for(var s=t?t.slice():[],c=o;cl.arguments.length&&!f||Bl(p)||(o=i.length)}if((175===t.kind||176===t.kind)&&sc(t)&&(!c||!s)){var g=175===t.kind?176:175,m=e.getDeclarationOfKind(Ca(t),g);m&&(s=(r=GE(m))&&r.symbol)}var h=174===t.kind?Bs(Ta(t.parent.symbol)):void 0,y=h?h.localTypeParameters:Ll(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!$l(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0})),o=ii(3,"args",32768);a?o.type=dd(o_(a.type)):(o.checkFlags|=65536,o.deferralParent=ct,o.deferralConstituents=[rr],o.deferralWriteConstituents=[rr]);a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,256)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,256))&&(a|=4),n.resolvedSignature=gc(t,y,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function ql(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&fb(o_(r.typeExpression))}}function $l(t){var r=fi(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===de.escapedName&&TE(r)===de;case 170:case 172:case 175:case 176:return 165===r.name.kind&&t(r.name);case 209:case 210:return t(r.expression);case 302:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Gl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(!e.isFunctionExpressionOrArrowFunction(i)&&!e.isObjectLiteralMethod(i)&&ql(i)||Wl(i))}}return r}function Hl(e){var t=la(e,e);if(t){var r=_a(t);if(r)return vs(r)}return Le}function Ql(e){if(e.thisParameter)return vs(e.thisParameter)}function Xl(t){if(!t.resolvedTypePredicate){if(t.target){var r=Xl(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,zl(o.kind,o.parameterName,o.parameterIndex,P_(o.type,s))):jr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function ru(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]),r=_g(t)?mg(t):t;return r&&Pl(r,Ye)}}function nu(e,t,r,n){var i=iu(e,Kl(t,e.typeParameters,Vl(e.typeParameters),r));if(n){var a=gb(Zl(i));if(a){var o=mc(a);o.typeParameters=n;var s=mc(i);return s.resolvedReturnType=lu(o),s}}return i}function iu(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=bu(r),a=n.get(i);return a||n.set(i,a=au(t,r)),a}function au(e,t){return S_(e,function(e,t){return p_(e.typeParameters,t)}(e,t),!0)}function ou(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return S_(e,y_(e.typeParameters),!0)}(e)):e}function su(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return nu(t,e.map(t.typeParameters,(function(e){return e.target&&!Zc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function cu(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=y_(r),i=p_(r,e.map(r,(function(e){return Zc(e)||Ve}))),a=e.map(r,(function(e){return P_(e,i)||Ve})),o=0;o1&&(t+=":"+a),n+=a}return t}function xu(e,t){return e?"@".concat(w(e))+(t?":".concat(bu(t)):""):""}function Du(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Xn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,so(n,void 0,2),o,i.length),!s)return je}return 181===t.kind&&gd(t,e.length(t.typeArguments)!==i.length)?Cu(n,t,void 0):Su(n,e.concatenate(n.outerTypeParameters,Kl(Vu(t),i,o,s)))}return Ju(t,r)?n:je}function Nu(t,r,n,i){var a=$s(t);if(a===ze&&k.has(t.escapedName)&&r&&1===r.length)return ip(t,r[0]);var o=_i(t),s=o.typeParameters,c=bu(r)+xu(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=I_(a,p_(s,Kl(r,s,Vl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function Fu(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function wu(e){return e.parent?"".concat(wu(e.parent),".").concat(e.escapedName):e.escapedName}function Pu(e){var t=(164===e.kind?e.right:209===e.kind?e.name:e).escapedText;if(t){var r=164===e.kind?Pu(e.left):209===e.kind?Pu(e.expression):void 0,n=r?"".concat(wu(r),".").concat(t):t,i=Oe.get(n);return i||(Oe.set(n,i=ii(524288,t,1048576)),i.parent=r,i.declaredType=Je),i}return Pe}function Iu(t,r,n){var i=function(t){switch(t.kind){case 181:return t.typeName;case 232:var r=t.expression;if(e.isEntityNameExpression(r))return r}}(t);if(!i)return Pe;var a=sa(i,r,n);return a&&a!==Pe?a:n?Pe:Pu(i)}function Ou(t,r){if(r===Pe)return je;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Ca(n);if(i)return Qb(i,t)}}}(r)||r).flags)return Au(t,r);if(524288&r.flags)return function(t,r){if(1048576&e.getCheckFlags(r)){var n=Vu(t),i=xu(r,n),a=Me.get(i);return a||((a=La(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Me.set(i,a)),a}var o=$s(r),s=_i(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=Vl(s);if(cs.length)return Xn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ao(r),l,s.length),je;var u=Jp(t),d=!u||!Fu(r)&&Fu(u)?void 0:u;return Nu(r,Vu(t),d,Up(d))}return Ju(t,r)?o:je}(t,r);var n=Gs(r);if(n)return Ju(t,r)?Qp(n):je;if(111551&r.flags&&ju(t)){var i=function(e,t){var r=fi(e);if(!r.resolvedJSDocType){var n=vs(t),i=n;if(t.valueDeclaration){var a=203===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=Ou(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(Iu(t,788968),vs(r))}return je}function Mu(e,t){if(3&t.flags||t===e||!fp(e)&&!fp(t))return e;var r="".concat(Ed(e),">").concat(Ed(t)),n=Ee.get(r);if(n)return n;var i=Oa(33554432);return i.baseType=e,i.constraint=t,Ee.set(r,i),i}function Lu(e){return Ud([e.constraint,e.baseType])}function Ru(e){return 187===e.kind&&1===e.elements.length}function Bu(e,t,r){return Ru(t)&&Ru(r)?Bu(e,t.elements[0],r.elements[0]):kp(o_(t))===kp(e)?o_(r):void 0}function ju(e){return!!(8388608&e.flags)&&(181===e.kind||203===e.kind)}function Ju(t,r){return!t.typeArguments||(Xn(t,e.Diagnostics.Type_0_is_not_generic,r?ao(r):t.typeName?e.declarationNameToString(t.typeName):c),!1)}function Uu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Ju(t),Xe;case"Number":return Ju(t),Ye;case"Boolean":return Ju(t),at;case"Void":return Ju(t),st;case"Undefined":return Ju(t),We;case"Null":return Ju(t),He;case"Function":case"function":return Ju(t),qt;case"array":return r&&r.length||Y?void 0:rr;case"promise":return r&&r.length||Y?void 0:Rx(Le);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=o_(r[0]),i=o_(r[1]),a=n===Xe||n===Ye?[pu(n,i,!1)]:e.emptyArray;return Va(void 0,U,e.emptyArray,e.emptyArray,a)}return Le}return Ju(t),Y?void 0:Le}}}function zu(t){var r=fi(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Pe,r.resolvedType=bD(t.parent.expression);var n=void 0,i=void 0,a=788968;ju(t)&&((i=Uu(t))||((n=Iu(t,a,!0))===Pe?n=Iu(t,900095):Iu(t,a),i=Ou(t,n))),i||(i=Ou(t,n=Iu(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Vu(t){return e.map(t.typeArguments,o_)}function Ku(e){var t=fi(e);if(!t.resolvedType){var r=gx(e);t.resolvedType=Qp(jg(r))}return t.resolvedType}function Wu(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return Vd(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ve})))?yh(r[o],(function(n){return xd(t,e.replaceElement(r,o,n))})):je}for(var s=[],c=[],l=[],d=-1,p=-1,_=-1,f=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||qc(c))y(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(_g(c)){var d=Eu(c);if(d.length+s.length>=1e4)return Xn(u,e.isPartOfTypeNode(u)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:je};e.forEach(d,(function(e,t){var r;return y(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else y(Yf(c)&&Pl(c,Ye)||je,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g=0&&p<_&&(s[p]=Id(e.sameMap(s.slice(p,_+1),(function(e,t){return 8&c[p+t]?Dp(e,Ye):e}))),s.splice(p+1,_-p),c.splice(p+1,_-p),null==l||l.splice(p+1,_-p));var h=vd(c,t.readonly,l);return h===wt?Ct:c.length?Su(h,s):h;function y(e,t,r){1&t&&(d=c.length),4&t&&p<0&&(p=c.length),6&t&&(_=c.length),s.push(2&t?Uo(e,!0):e),c.push(t),l&&r?l.push(r):l=void 0}}function Dd(t,r,n){void 0===n&&(n=0);var i=t.target,a=ku(t)-n;return r>i.fixedLength?function(e){var t=mg(e);return t&&dd(t)}(t)||yd(e.emptyArray):yd(Eu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Sd(t){return Id(e.append(e.arrayOf(t.target.fixedLength,(function(e){return Yp(""+e)})),ep(t.target.readonly?Qt:Ht)))}function Td(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Cd(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Ed(e){return e.id}function kd(t,r){return e.binarySearch(t,r,Ed,e.compareValues)>=0}function Ad(t,r){var n=e.binarySearch(t,r,Ed,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Nd(t,r,n){var i=n.flags;if(1048576&i)return Fd(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===Be&&(r|=8388608),!G&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Ed,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Fd(e,t,r){for(var n=0,i=r;n=0&&kd(o,We)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||Xp(a)&&kd(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,_p);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return fm(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){if(t.length<2)return t;var n=bu(t),i=ke.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!qc(e)&&uf($c(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var d=61603840&l.flags?e.find(Xc(l),(function(e){return ag(vs(e))})):void 0,p=d&&Qp(vs(d)),_=0,f=t;_1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Xn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,d&&61603840&g.flags){var m=ko(g,d.escapedName);if(m&&ag(m)&&Qp(m)!==p)continue}if(hf(l,g,Ln)&&(!(1&e.getObjectFlags(Ds(l)))||!(1&e.getObjectFlags(Ds(g)))||$_(l,g))){e.orderedRemoveItemAt(t,s);break}}}}return ke.set(n,t),t}(o,!!(524288&s)),!o))return je;if(0===o.length)return 65536&s?4194304&s?He:Qe:32768&s?4194304&s?We:qe:ct}if(!a&&1048576&s){var l=[];wd(l,t);for(var d=[],p=function(t){e.some(l,(function(e){return kd(e.types,t)}))||d.push(t)},_=0,f=o;_0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r||16384&i.flags&&32768&r||pf(i)&&470302716&r)&&e.orderedRemoveItemAt(t,n)}}(s,o)),262144&o&&(s[s.indexOf(We)]=Ge),0===s.length)return Ve;if(1===s.length)return s[0];var c=bu(s)+xu(r,n),l=ye.get(c);if(!l){if(1048576&o)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(32768&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Ud(i);131072&l.flags||r.push(l)}return r}(s);l=Id(d,1,r,n,e.some(d,(function(e){return!!(2097152&e.flags)}))&&Wd(d)>Wd(s)?Pd(2097152,s):void 0)}else l=function(e,t,r){var n=Oa(2097152);return n.objectFlags=Du(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(s,r,n);ye.set(c,l)}return l}function zd(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function Vd(t){var r=zd(t);return!(r>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Xn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Kd(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Kd(e.origin):Wd(e.types):1}function Wd(t){return e.reduceLeft(t,(function(e,t){return e+Kd(t)}),0)}function qd(e,t){var r=Oa(4194304);return r.type=e,r.stringsOnly=t,r}function $d(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=qd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=qd(e,!1))}function Gd(t){return e.isPrivateIdentifier(t)?ct:e.isIdentifier(t)?Yp(e.unescapeLeadingUnderscores(t.escapedText)):Qp(e.isComputedPropertyName(t)?zy(t):JD(t))}function Hd(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=_i(pc(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?Yp("default"):a&&Gd(a)||(e.isKnownSymbol(t)?void 0:Yp(e.symbolName(t)))}if(i&&i.flags&r)return i}return ct}function Qd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(function(e){return Qd(e,r)})))}function Xd(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=Ma(4194304);return t.type=e,t}(t):void 0,a=e.map(Xc(t),(function(e){return Hd(e,r)})),o=e.map(Fl(t),(function(e){return e!==Kr&&Qd(e.keyType,r)?e.keyType===Xe&&8&r?_t:e.keyType:ct}));return Id(e.concatenate(a,o),1,void 0,void 0,i)}function Yd(e){var t=function(e){return 262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=P_(e,Dt))}(e);return yl(t)!==t}function Zd(t){return!!(58982400&t.flags||fg(t)||qc(t)&&(r=t,n=Lc(r),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===n:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.baseType)&&t(r.constraint):!!(268435456&r.flags)&&t(r.type))}(Bc(r)||n))||1048576&t.flags&&e.some(t.types,Yd)||2097152&t.flags&&iD(t,465829888)&&e.some(t.types,pf));var r,n}function ep(t,r,n){return void 0===r&&(r=te),Zd(t=yl(t))?$d(t,r):1048576&t.flags?Ud(e.map(t.types,(function(e){return ep(e,r,n)}))):2097152&t.flags?Id(e.map(t.types,(function(e){return ep(e,r,n)}))):32&e.getObjectFlags(t)?function(e,t,r){var n=Lc(e),i=Rc(e),a=Bc(e.target||e);if(!a&&!r)return i;var o=[];if(Uc(e)){if(mp(i))return $d(e,t);Oc(_l(zc(e)),8576,t,c)}else ph(Pc(i),c);mp(i)&&ph(i,c);var s=r?gh(Id(o),(function(e){return!(5&e.flags)})):Id(o);return 1048576&s.flags&&1048576&i.flags&&bu(s.types)===bu(i.types)?i:s;function c(t){var r=a?P_(a,x_(e.mapper,n,t)):t;o.push(r===Xe?_t:r)}}(t,r,n):t===Be?Be:2&t.flags?ct:131073&t.flags?gt:Xd(t,(n?128:402653316)|(r?0:12584),r===te&&!n)}function tp(e){if(te)return e;var t=(Ar||(Ar=Gu("Extract",2,!0)||Pe),Ar===Pe?void 0:Ar);return t?Nu(t,[e,Xe]):Xe}function rp(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return Vd(r)?yh(r[n],(function(i){return rp(t,e.replaceElement(r,n,i))})):je;if(e.contains(r,Be))return Be;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c=0)return x(wl(r,Ye)),yh(r,(function(e){var t=mg(e)||We;return 1&o?Id([t,We]):t}))}}if(!(98304&n.flags)&&aD(n,402665900)){if(131073&r.flags)return r;var f=Ol(r,n)||wl(r,Xe);if(f)return 2&o&&f.keyType!==Ye?void(c&&Xn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,so(n),so(t))):a&&f.keyType===Xe&&!aD(n,12)?(Xn(_=dp(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,so(n)),1&o?Id([f.type,We]):f.type):(x(f),1&o&&!(r.symbol&&384&r.symbol.flags&&n.symbol&&1024&n.flags&&Ea(n.symbol)===r.symbol)?Id([f.type,We]):f.type);if(131072&n.flags)return ct;if(sp(r))return Le;if(c&&!sD(r)){if(bm(r)){if(Y&&384&n.flags)return Pn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,so(r))),We;if(12&n.flags){var g=e.map(r.properties,(function(e){return vs(e)}));return Id(e.append(g,We))}}if(r.symbol===le&&void 0!==l&&le.exports.has(l)&&418&le.exports.get(l).flags)Xn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),so(r));else if(Y&&!V.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Vv(l,r)){var m=so(r);Xn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,m,m+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Pl(r,Ye))Xn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var h=void 0;if(void 0!==l&&(h=$v(l,r)))void 0!==h&&Xn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,so(r),h);else{var y=function(t,r,n){function i(e){var r=Hc(t,e);if(r){var i=fb(vs(r));return!!i&&Nx(i)>=1&&q_(n,Cx(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,c,n);if(void 0!==y)Xn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,so(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+so(n)+"]",so(r));else if(8192&n.flags){var b=oa(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+b+"]",so(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,so(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,so(n),so(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,so(i),so(r)),Pn.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}if(sp(r))return Le;if(a){_=dp(a);384&n.flags?Xn(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,so(r)):12&n.flags?Xn(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,so(r),so(n)):Xn(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,so(n))}return Ao(n)?n:void 0;function x(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Xn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,so(r))}}function dp(e){return 210===e.kind?e.argumentExpression:197===e.kind?e.indexType:165===e.kind?e.expression:e}function pp(e){return!!(77&e.flags)||_p(e)}function _p(t){return!!(134217728&t.flags)&&e.every(t.types,pp)||!!(268435456&t.flags)&&pp(t.type)}function fp(e){return!!hp(e)}function gp(e){return!!(4194304&hp(e))}function mp(e){return!!(8388608&hp(e))}function hp(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,(function(e,t){return e|hp(t)}),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|hp(t.baseType)|hp(t.constraint)),12582912&t.objectFlags):(58982400&t.flags||qc(t)||fg(t)?4194304:0)|(465829888&t.flags&&!_p(t)?8388608:0)}function yp(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===Ot?t:t[n];t[n]=Ot;var i=yp(t.objectType,r),a=yp(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return yp(Dp(t,e),n)}));return n?Ud(i):Id(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=vp(i,a,r);if(s)return t[n]=s}if(fg(i)&&296&a.flags){var c=hg(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(qc(i)){var l=Bc(i);if(!l||q_(l,Lc(i)))return t[n]=yh(xp(i,t.indexType),(function(e){return yp(e,r)}))}return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Ip(e),a=Op(e);if(131072&a.flags&&kp(i)===kp(r)){if(1&r.flags||q_(M_(r),M_(n)))return yp(i,t);if(bp(r,n))return ct}else if(131072&i.flags&&kp(a)===kp(r)){if(!(1&r.flags)&&q_(M_(r),M_(n)))return ct;if(1&r.flags||bp(r,n))return yp(a,t)}return e}(t,r):t}function vp(t,r,n){if(1048576&t.flags||2097152&t.flags&&!Zd(t)){var i=e.map(t.types,(function(e){return yp(Dp(e,r),n)}));return 2097152&t.flags||n?Ud(i):Id(i)}}function bp(e,t){return!!(131072&Id([Cc(e,t),ct]).flags)}function xp(e,t){var r=p_([Lc(e)],[t]),n=v_(e.mapper,r);return P_(jc(e.target||e),n)}function Dp(e,t,r,n,i,a){return void 0===r&&(r=0),Tp(e,t,r,n,i,a)||(n?je:Ve)}function Sp(t,r){return fh(t,(function(t){if(384&t.flags){var n=cc(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:j,instantiationCount:B}),Xn(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),je;T++,B++,j++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return __(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=l_(s,r);return c!==s?bd(t.target,c):t}return 1024&o?function(t,r){var n=P_(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=P_(t.constraintType,r);if(!(4194304&i.flags))return t;var a=rm(P_(t.source,r),n,i);if(a)return a;return t}(t,r):function(t,r,n,i){var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=fi(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=Cs(a,!0);if(Hb(a)){var u=Ll(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(d,(function(e){return C_(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var p=v_(t.mapper,r),_=e.map(c,(function(e){return __(e,p)})),f=n||t.aliasSymbol,g=n?i:l_(t.aliasTypeArguments,r),m=bu(_)+xu(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(bu(c)+xu(s.aliasSymbol,s.aliasTypeArguments),s));var h=s.instantiations.get(m);if(!h){var y=p_(c,_);h=4&s.objectFlags?Cu(t.target,t.node,y,f,g):32&s.objectFlags?k_(s,y,f,g):F_(s,y,f,g),s.instantiations.set(m,h)}return h}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=l_(u,r);if(d===u&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:l_(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?Ud(d,p,_):Id(d,1,p,_)}if(4194304&a)return ep(P_(t.type,r));if(134217728&a)return rp(t.texts,l_(t.types,r));if(268435456&a)return ip(t.symbol,P_(t.type,r));if(8388608&a){p=n||t.aliasSymbol,_=n?i:l_(t.aliasTypeArguments,r);return Dp(P_(t.objectType,r),P_(t.indexType,r),t.accessFlags,void 0,p,_)}if(16777216&a)return w_(t,v_(t.mapper,r),n,i);if(33554432&a){var f=P_(t.baseType,r),g=P_(t.constraint,r);return 8650752&f.flags&&fp(g)?Mu(f,g):3&g.flags||q_(M_(f),M_(g))?f:8650752&f.flags?Mu(f,g):Ud([g,f])}return t}(t,r,n,i);return j--,a}function O_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=P_(e,bt))}function M_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=P_(e,vt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function L_(e,t){return pu(e.keyType,P_(e.type,t),e.isReadonly,e.declaration)}function R_(t){switch(e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 216:case 217:case 172:case 261:return B_(t);case 208:return e.some(t.properties,R_);case 207:return e.some(t.elements,R_);case 226:return R_(t.whenTrue)||R_(t.whenFalse);case 225:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(R_(t.left)||R_(t.right));case 302:return R_(t.initializer);case 215:return R_(t.expression);case 292:return e.some(t.properties,R_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,R_);case 291:var r=t.initializer;return!!r&&R_(r);case 294:var n=t.expression;return!!n&&R_(n)}return!1}function B_(t){return e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&240!==t.body.kind&&R_(t.body)}(t)}function j_(t){return(e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&B_(t)}function J_(t){if(524288&t.flags){var r=$c(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Ra(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Ud(e.map(t.types,J_));return t}function U_(e,t){return hf(e,t,jn)}function z_(e,t){return hf(e,t,jn)?-1:0}function V_(e,t){return hf(e,t,Rn)?-1:0}function K_(e,t){return hf(e,t,Mn)?-1:0}function W_(e,t){return hf(e,t,Mn)}function q_(e,t){return hf(e,t,Rn)}function $_(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return $_(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return $_(t,e)})):58982400&t.flags?$_(il(t)||Ve,r):r===Wt?!!(67633152&t.flags):r===qt?!!(524288&t.flags)&&Wm(t):Ss(t,Ds(r))||$f(r)&&!Gf(r)&&$_(t,Qt)}function G_(e,t){return hf(e,t,Bn)}function H_(e,t){return G_(e,t)||G_(t,e)}function Q_(e,t,r,n,i,a){return xf(e,t,Rn,r,n,i,a)}function X_(e,t,r,n,i,a){return Y_(e,t,Rn,r,n,i,a,void 0)}function Y_(e,t,r,n,i,a,o,s){return!!hf(e,t,r)||(!n||!ef(i,e,t,r,a,o,s))&&xf(e,t,r,n,a,o,s)}function Z_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Z_))}function ef(t,r,n,i,o,c,l){if(!t||Z_(n))return!1;if(!xf(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=Cl(r,0),l=Cl(r,1),u=0,d=[l,c];u1,y=gh(g,ng),v=gh(g,(function(e){return!ng(e)}));if(h){if(y!==ct){var b=yd(Xy(d,0)),x=function(t,r){var n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return iu:Nx(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=hb(t,r=su(r),void 0,s));var d=Ax(t),p=Px(t),_=Px(r);(p||_)&&P_(p||_,c);var f=r.declaration?r.declaration.kind:0,g=!(3&n)&&H&&172!==f&&171!==f&&174!==f,m=-1,h=Ql(t);if(h&&h!==st){var y=Ql(r);if(y){if(!(T=!g&&s(h,y,!1)||s(y,h,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=T}}for(var v=p||_?Math.min(d,u):Math.max(d,u),b=p||_?v-1:-1,x=0;x=Nx(t)&&x=3&&32768&r[0].flags&&65536&r[1].flags&&e.some(r,pf)?67108864:0)}return!!(67108864&t.objectFlags)}return!1}(r))return!0}return!1}function hf(e,t,r){if(Xp(e)&&(e=e.regularType),Xp(t)&&(t=t.regularType),e===t)return!0;if(r!==jn){if(r===Bn&&!(131072&t.flags)&&mf(t,e,r)||mf(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(Lf(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&xf(e,t,r,void 0)}function yf(t,r){return 2048&e.getObjectFlags(t)&&Gy(r.escapedName)}function vf(t,r){for(;;){var n=Xp(t)?t.regularType:4&e.getObjectFlags(t)?t.node?Su(t.target,Eu(t)):Zf(t)||t:3145728&t.flags?bf(t,r):33554432&t.flags?r?t.baseType:Lu(t):25165824&t.flags?yp(t,r):t;if(n===t)return n;t=n}}function bf(t,r){var n=yl(t);if(n!==t)return n;if(2097152&t.flags&&e.some(t.types,pf)){var i=e.sameMap(t.types,(function(e){return vf(e,r)}));if(i!==t.types)return Ud(i)}return t}function xf(t,r,n,a,o,s,l){var d,p,_,f,g,m,h,y=0,v=0,b=0,x=0,D=!1,S=0,T=!1;e.Debug.assert(n!==jn||!a,"no error reporting in identity checking");var C=U(t,r,3,!!a,o);if(h&&M(),D){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:v,targetDepth:b});var k=Xn(a||u,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,so(t),so(r));l&&(l.errors||(l.errors=[])).push(k)}else if(d){if(s){var A=s();A&&(e.concatenateDiagnosticMessageChains(A,d),d=A)}var N=void 0;if(o&&a&&!C&&t.symbol){var F=_i(t.symbol);if(F.originatingImport&&!e.isImportCall(F.originatingImport))if(xf(vs(F.target),r,n,void 0)){var w=e.createDiagnosticForNode(F.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);N=e.append(N,w)}}k=e.createDiagnosticForNodeFromMessageChain(a,d,N);p&&e.addRelatedInfo.apply(void 0,i([k],p,!1)),l&&(l.errors||(l.errors=[])).push(k),l&&l.skipLogging||Pn.add(k)}return a&&l&&l.skipLogging&&0===C&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==C;function P(e){d=e.errorInfo,m=e.lastSkippedInfo,h=e.incompatibleStack,S=e.overrideNextErrorInfo,p=e.relatedInfo}function I(){return{errorInfo:d,lastSkippedInfo:m,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:S,relatedInfo:null==p?void 0:p.slice()}}function O(e,t,r,n,i){S++,m=void 0,(h||(h=[])).push([e,t,r,n,i])}function M(){var t=h||[];h=void 0;var r=m;if(m=void 0,1===t.length)return L.apply(void 0,t[0]),void(r&&B.apply(void 0,i([void 0],r,!1)));for(var n="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var l=""+c[0];n=0===n.length?"".concat(l):e.isIdentifierText(l,e.getEmitScriptTarget(V))?"".concat(n,".").concat(l):"["===l[0]&&"]"===l[l.length-1]?"".concat(n).concat(l):"".concat(n,"[").concat(l,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else{var d=s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",p=s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(d).concat(n,"(").concat(p,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(s.code))}}n?L(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):a.shift();for(var _=0,f=a;_0||QC(l)),f=!!(2048&e.getObjectFlags(l));if(_&&!function(e,t,r){for(var n=0,i=Xc(e);n0&&U(Zl(h[0]),u,1,!1)||y.length>0&&U(Zl(y[0]),u,1,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,m):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,m)}return 0}K(l,u);var v=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?W(l,u,o,c):Q(l,u,o,c,i);if(v)return v}return o&&z(t,r,l,u,s),0}function z(t,r,n,i,o){var s,c,l=!!Zf(t),u=!!Zf(r);n=t.aliasSymbol||l?t:n,i=r.aliasSymbol||u?r:i;var p=S>0;if(p&&S--,524288&n.flags&&524288&i.flags){var _=d;j(n,i,!0),d!==_&&(p=!!d)}if(524288&n.flags&&131068&i.flags)!function(t,r){var n=uo(t.symbol)?so(t,t.symbol.valueDeclaration):so(t),i=uo(r.symbol)?so(r,r.symbol.valueDeclaration):so(r);(Xt===t&&Xe===r||Yt===t&&Ye===r||Zt===t&&at===r||td()===t&&ot===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,i);else if(n.symbol&&524288&n.flags&&Wt===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&i.flags){var f=i.types,g=ev(E.IntrinsicAttributes,a),h=ev(E.IntrinsicClassAttributes,a);if(!No(g)&&!No(h)&&(e.contains(f,g)||e.contains(f,h)))return}else d=Dl(d,r);if(o||!p){if(B(o,n,i),262144&n.flags&&(null===(c=null===(s=n.symbol)||void 0===s?void 0:s.declarations)||void 0===c?void 0:c[0])&&!Yc(n)){var y=D_(n);if(y.constraint=P_(i,f_(n,y)),ol(y)){var v=so(i,n.symbol.declarations[0]);R(e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,v))}}}else m=[n,i]}function K(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&32768)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function W(t,r,i,a){if(1048576&t.flags)return n===Bn?H(t,r,i&&!(131068&t.flags),a):function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return bh(t,-32769);return t}(e,t),s=0;s=o.types.length&&a.length%o.types.length==0){var l=U(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=U(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return $(Ig(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=t.types,o=0,s=a;o25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:o}),0}for(var l=new Array(a.length),u=new e.Set,d=0;d=_-x)?t.target.elementFlags[C]:4,k=r.target.elementFlags[T];if(8&k&&!(8&E))return a&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&E&&!(12&k))return a&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&k&&!(1&E))return a&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(D&&((12&E||12&k)&&(D=!1),D&&(null==s?void 0:s.has(""+T))))){var A=_g(t)?T=_-x?Ag(y[C],!!(E&k&2)):hg(t,b,x)||ct:y[0],N=v[T];if(!(q=U(A,8&E&&4&k?dd(N):Ag(N,!!(2&k)),3,a,void 0,l)))return a&&(_>1||p>1)&&(T=_-x||p-b-x==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,b,p-x-1,T)),0;u&=q}}return u}if(12&r.target.combinedFlags)return 0}var F=!(n!==Mn&&n!==Ln||bm(t)||tg(t)||_g(t)),w=om(t,r,F,!1);if(w)return a&&function(e,t){var r=Tl(e,0),n=Tl(e,1),i=Gc(e);if((r.length||n.length)&&!i.length)return!!(Cl(t,0).length&&r.length||Cl(t,1).length&&n.length);return!0}(t,r)&&function(t,r,n,a){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var l=n.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,l);if(u&&Sl(t,u)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),_=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void L(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Ci(l),Ci(""===p.escapedText?c:p),Ci(""===_.escapedText?c:_))}}var f=e.arrayFrom(am(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===f.length){var g=ao(n,void 0,0,20);L.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,g],co(t,r),!1)),e.length(n.declarations)&&R(e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,g)),s&&d&&S++}else j(t,r,!1)&&(f.length>5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,so(t),so(r),e.map(f.slice(0,4),(function(e){return ao(e)})).join(", "),f.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,so(t),so(r),e.map(f,(function(e){return ao(e)})).join(", ")),s&&d&&S++)}(t,r,w,F),0;if(bm(r))for(var P=0,I=X(Xc(t),s);P0||Cl(t,n=1).length>0;if(i)return e.find(r.types,(function(e){return Cl(e,n).length>0}))}(t,r)||function(t,r){var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a=i&&(n=s,i=l)}}}return n}(t,r)}function Ef(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,kf)}function Af(e){return e===Ht||e===Qt||8&e.objectFlags?z:Ff(e.symbol,e.typeParameters)}function Nf(e){return Ff(e,_i(e).typeParameters)}function Ff(t,r){void 0===r&&(r=e.emptyArray);var n=_i(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:Ed($s(t))}),n.variances=e.emptyArray;for(var i=[],a=function(e){var r=If(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=it;it=function(e){return e?o=!0:a=!0};var c=wf(t,e,Lt),l=wf(t,e,Rt);3===(n=(q_(l,c)?1:0)|(q_(c,l)?2:0))&&q_(wf(t,e,Bt),c)&&(n=4),it=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;ot.id){var a=e;e=t,t=a}var o=r?":"+r:"";return Mf(e)&&Mf(t)?function(e,t,r,n){var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=Eu(e);o";continue}r+="-"+l.id}return r}}(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Rf(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=n)for(var i=zf(e),a=0,o=0,s=0;s=o&&++a>=n)return!0;o=c.id}}return!1}function zf(t){if(524288&t.flags&&!xm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(_g(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function Vf(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(eC(t)!==eC(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Xx(t)!==Xx(r)?0:n(vs(t),vs(r))}function Kf(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Ax(e),i=Ax(t),a=Nx(e),o=Nx(t),s=Fx(e),c=Fx(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=p_(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=_c(a,e.last(Eu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function eg(e){return G?e===ut:e===qe}function tg(e){var t=Xf(e);return!!t&&eg(t)}function rg(e){return _g(e)||!!Sl(e,"0")}function ng(e){return Yf(e)||rg(e)}function ig(e){return!(240512&e.flags)}function ag(e){return!!(109440&e.flags)}function og(t){var r=al(t);return 2097152&r.flags?e.some(r.types,ag):ag(r)}function sg(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,ag):ag(t))}function cg(e){return 1024&e.flags?Vs(e):402653312&e.flags?Xe:256&e.flags?Ye:2048&e.flags?Ze:512&e.flags?at:1048576&e.flags?function(e){var t,r="B".concat(Ed(e));return null!==(t=Kn(r))&&void 0!==t?t:Wn(r,yh(e,cg))}(e):e}function lg(e){return 1024&e.flags&&Xp(e)?Vs(e):128&e.flags&&Xp(e)?Xe:256&e.flags&&Xp(e)?Ye:2048&e.flags&&Xp(e)?Ze:512&e.flags&&Xp(e)?at:1048576&e.flags?yh(e,lg):e}function ug(e){return 8192&e.flags?ot:1048576&e.flags?yh(e,ug):e}function dg(e,t){return TD(e,t)||(e=ug(lg(e))),Qp(e)}function pg(e,t,r,n){e&&ag(e)&&(e=dg(e,t?LT(r,t,n):void 0));return e}function _g(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function fg(e){return _g(e)&&!!(8&e.target.combinedFlags)}function gg(e){return fg(e)&&1===e.target.elementFlags.length}function mg(e){return hg(e,e.target.fixedLength)}function hg(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=ku(e)-r;if(t-1&&(bi(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Zn(Y,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Y?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Y?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 206:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 323:return void Xn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 261:case 172:case 171:case 175:case 176:case 216:case 217:if(Y&&!t.name)return void Xn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Y?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 198:return void(Y&&Xn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Y?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Zn(Y,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Vg(t,r,n){m((function(){!(Y&&65536&e.getObjectFlags(r))||n&&Ly(t)||Ug(r)||zg(t,r,n)}))}function Kg(e,t,r){var n=Ax(e),i=Ax(t),a=wx(e),o=wx(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Ql(e);if(l){var u=Ql(t);u&&r(l,u)}for(var d=0;d0){for(var h=_,y=f;!((y=v(h).indexOf(m,y))>=0);){if(++h===e.length)return;y=0}b(h,y),f+=m.length}else if(f0)for(var D=0,S=r;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,xm);if(r.length){var n=Id(r,2);return e.concatenate(e.filter(t,(function(e){return!xm(e)})),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=Zc(n))&&iD(16777216&i.flags?tl(i):i,406978556)),s=!o&&t.topLevel&&(t.isFixed||!tm(Zl(r),t.typeParameter)),c=o?e.sameMap(a,Qp):s?e.sameMap(a,lg):a;return jg(416&t.priority?Id(c,2):qf(c))}function Tm(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?Sm(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(function(e){return W_(c,e)}))?Dm(a):c;else if(c)o=c;else if(1&t.flags)o=lt;else{var l=ll(a.typeParameter);l&&(o=P_(l,(n=function(t,r){var n=t.inferences.slice(r);return p_(e.map(n,(function(e){return e.typeParameter})),e.map(n,(function(){return Ve})))}(t,r),i=t.nonFixingMapper,n?h_(5,n,i):i)))}}else o=sm(a);a.inferredType=o||Cm(!!(2&t.flags));var u=Zc(a.typeParameter);if(u){var d=P_(u,t.nonFixingMapper);o&&t.compareTypes(o,_c(d,o))||(a.inferredType=o=d)}}return a.inferredType}function Cm(e){return e?Le:Ve}function Em(e){for(var t=[],r=0;r=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function jm(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Ed(Qp(t)));return n!==Ve?n:void 0}function Jm(e,t){var r=Bm(e),n=r&&ko(t,r);return n&&jm(e,n)}function Um(e,t){return wm(e,t)||Om(e,t)}function zm(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&o=2||!(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||298===r.valueDeclaration.parent.kind)return;var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=Xh(n);if(a){if(i){var o=!0;if(e.isForStatement(n))if((u=e.getAncestor(r.valueDeclaration,260))&&u.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=fi(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(fi(a).flags|=65536)}var u;if(e.isForStatement(n))(u=e.getAncestor(r.valueDeclaration,260))&&u.parent===n&&function(t,r){var n=t;for(;215===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(223===n.parent.kind||224===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}if(!i)return!1;return!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(fi(r.valueDeclaration).flags|=4194304);fi(r.valueDeclaration).flags|=524288}i&&(fi(r.valueDeclaration).flags|=262144)}(t,n);var c=function(t,r){var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(259===i.kind&&2&e.getCombinedNodeFlags(n)||167===i.kind){var a=fi(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=Fo(i,0),s=o&&yh(o,al);if(a.flags&=-268435457,s&&1048576&s.flags&&(167!==i.kind||!zh(t)))return 131072&(u=Jh(n.parent,s,s,void 0,r.flowNode)).flags?ct:Bo(n,u)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var c=n.parent;if(c.parameters.length>=2&&j_(c)){var l=Ry(c);if(l&&1===l.parameters.length&&L(l)){var u,d=fl(vs(l.parameters[0]));if(1048576&d.flags&&fh(d,_g)&&!zh(t))return Dp(u=Jh(c,d,d,void 0,r.flowNode),Zp(c.parameters.indexOf(n)-(e.getThisParameter(c)?1:0)))}}}}return vs(t)}(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Xn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ao(n)),je;if(Xx(a))return 3&a.flags?Xn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ao(n)):Xn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ao(n)),je}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=Pi(n)}if(!s)return c;c=$h(c,t,r);for(var d=167===e.getRootDeclaration(s).kind,p=Uh(s),_=Uh(t),f=_!==p,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&th(t.parent.parent),m=134217728&n.flags;_!==p&&(216===_.kind||217===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(Kh(a)&&c!==nr||d&&!zh(a));)_=Uh(_);var h=d||u||f||g||m||function(t,r){if(e.isBindingElement(r)){var n=e.findAncestor(t,e.isBindingElement);return n&&e.getRootDeclaration(n)===e.getRootDeclaration(r)}}(t,s)||c!==Re&&c!==nr&&(!G||!!(16387&c.flags)||Nm(t)||281===t.parent.kind)||234===t.parent.kind||259===s.kind&&s.exclamationToken||16777216&s.flags,y=h?d?function(e,t){if(Do(t.symbol,2)){var r=G&&167===t.kind&&t.initializer&&16777216&qm(e)&&!(16777216&qm(JD(t.initializer)));return Co(),r?$m(e,524288):e}return ms(t.symbol),e}(c,s):c:c===Re||c===nr?We:Dg(c),v=Jh(t,c,y,_);if(Fh(t)||c!==Re&&c!==nr){if(!h&&!_f(c)&&_f(v))return Xn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ao(n)),c}else if(v===Re||v===nr)return Y&&(Xn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ao(n),so(v)),Xn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ao(n),so(v))),eT(v);return l?cg(v):v}function Xh(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function Yh(e,t){(fi(e).flags|=2,170===t.kind||174===t.kind)?fi(t.parent).flags|=4:fi(t).flags|=4}function Zh(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Zh)}function ey(e){return Is($s(Ca(e)))===Qe}function ty(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!ey(i)&&t.flowNode&&!Bh(t.flowNode,!1)&&Xn(t,n)}function ry(t){var r=Nm(t),n=e.getThisContainer(t,!0),i=!1;switch(174===n.kind&&ty(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),217===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.hasDecorators(r.parent)&&Xn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 267:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 174:iy(t,n)&&Xn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 165:Xn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&K<2&&Yh(t,n);var a=ny(t,!0,n);if(Z){var o=vs(le);if(a===o&&i)Xn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Xn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=ny(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Le}function ny(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!dy(t)||e.getThisParameter(n))){var a=Ql(Wl(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&323===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return o_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return o_(i.typeExpression)}(n);if(!a){var o=function(t){if(216===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(172===t.kind&&208===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(216===t.kind&&302===t.parent.kind&&208===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.left.expression;if(216===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=JD(o).symbol;s&&s.members&&16&s.flags&&(a=$s(s).thisType)}else Hb(n)&&(a=$s(Ta(n.symbol)).thisType);a||(a=cy(n))}if(a)return Jh(t,a)}if(e.isClassLike(n.parent)){var c=Ca(n.parent);return Jh(t,e.isStatic(n)?vs(c):$s(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=Ca(n);return l&&vs(l)}if(n.externalModuleIndicator)return We;if(r)return vs(le)}}function iy(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":167===t.kind&&t.parent===r}))}function ay(t){var r=211===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1,o=!1;if(!r){for(;i&&217===i.kind;)e.hasSyntacticModifier(i,512)&&(o=!0),i=e.getSuperContainer(i,!0),a=K<2;i&&e.hasSyntacticModifier(i,512)&&(o=!0)}var s=function(t){if(!t)return!1;if(r)return 174===t.kind;if(e.isClassLike(t.parent)||208===t.parent.kind)return e.isStatic(t)?172===t.kind||171===t.kind||175===t.kind||176===t.kind||170===t.kind||173===t.kind:172===t.kind||171===t.kind||175===t.kind||176===t.kind||170===t.kind||169===t.kind||174===t.kind;return!1}(i),c=0;if(!s){var l=e.findAncestor(t,(function(e){return e===i?"quit":165===e.kind}));return l&&165===l.kind?Xn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Xn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||208===i.parent.kind)?Xn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Xn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),je}if(r||174!==n.kind||ty(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(c=512,!r&&K>=2&&K<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(fi(t).flags|=134217728)}))):c=256,fi(t).flags|=c,172===i.kind&&o&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?fi(i).flags|=4096:fi(i).flags|=2048),a&&Yh(t.parent,i),208===i.parent.kind)return K<2?(Xn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),je):Le;var u=i.parent;if(!e.getClassExtendsHeritageElement(u))return Xn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),je;var d=$s(Ca(u)),p=d&&Ms(d)[0];return p?174===i.kind&&iy(t,i)?(Xn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),je):512===c?Is(d):_c(p,d.thisType):je}function oy(t){return 4&e.getObjectFlags(t)&&t.target===tr?Eu(t)[0]:void 0}function sy(t){return yh(t,(function(t){return 2097152&t.flags?e.forEach(t.types,oy):oy(t)}))}function cy(t){if(217!==t.kind){if(j_(t)){var r=Ry(t);if(r){var n=r.thisParameter;if(n)return vs(n)}}var i=e.isInJSFile(t);if(Z||i){var a=function(e){return 172!==e.kind&&175!==e.kind&&176!==e.kind||208!==e.parent.kind?216===e.kind&&302===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ky(a,void 0),s=a,c=o;c;){var l=sy(c);if(l)return P_(l,Yg(wy(a)));if(302!==s.parent.kind)break;c=ky(s=s.parent.parent,void 0)}return jg(o?Sg(o):bD(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(225===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(u);if(_.commonJsModuleIndicator&&Am(p)===_.symbol)return}return jg(bD(p))}}}}}function ly(t){var r=t.parent;if(j_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=kb(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return xb(i,a,i.length,Le,void 0,0);var o=fi(n),s=o.resolvedSignature;o.resolvedSignature=Jr;var c=a=i?Dp(vs(n.parameters[i]),Zp(r-i),256):Cx(n,r)}function my(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return Am(t);if(e.isPropertyAccessExpression(t)){var r=RD(t.expression);return e.isPrivateIdentifier(t.name)?i(r,t.name):Sl(r,t.name.escapedText)}if(e.isElementAccessExpression(t)){var n=bD(t.argumentExpression);if(!nc(n))return;return Sl(r=RD(t.expression),cc(n))}return;function i(e,t){var r=Pv(t.escapedText,t);return r&&Mv(e,r)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&P_(o_(c),_i(a).mapper)||(e.isPropertyDeclaration(o)?o.initializer&&RD(t.left):void 0):0===i?RD(t.left):yy(t);case 5:if(hy(t,i))return yy(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return o_(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=bi(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return vy(o_(p),_)}return}}return e.isInJSFile(s)?void 0:RD(t.left)}return RD(t.left);case 1:case 6:case 3:case 2:var f=void 0;2!==i&&(f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration),f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var g=f&&e.getEffectiveTypeAnnotationNode(f);return g?o_(g):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=Fy(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?RD(i):s;case 55:case 27:return t===o?Fy(n,r):void 0;default:return}}function hy(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=bi(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function yy(t){if(!t.symbol)return RD(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=o_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=ry(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&vy(a,o)||void 0}}function vy(t,r,n){return yh(t,(function(t){var i,a;if(qc(t)&&!t.declaration.nameType){var o=Rc(t),s=il(o)||o,c=n||Yp(e.unescapeLeadingUnderscores(r));if(q_(c,s))return xp(t,c)}else if(3670016&t.flags){var l=Sl(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&So(a,0)>=0?void 0:vs(l);if(_g(t)){var u=mg(t);if(u&&e.isNumericLiteralName(r)&&+r>=0)return u}return null===(i=kl(Nl(t),n||Yp(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function by(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return xy(t,r)}function xy(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&uy(t,r);if(i)return i;var a=ky(n,r);if(a){if(sc(t)){var o=Ca(t);return vy(a,o.escapedName,_i(o).nameType)}if(t.name){var s=Gd(t.name);return yh(a,(function(e){var t;return null===(t=kl(Nl(e),s))||void 0===t?void 0:t.type}),!0)}}}function Dy(e,t){return e&&(vy(e,""+t)||yh(e,(function(e){return fT(1,e,We,void 0,!1)}),!0))}function Sy(t,r){var n=t.parent;return e.isJsxAttributeLike(n)?Fy(t,r):e.isJsxElement(n)?function(t,r,n){var i=ky(t.openingElement.tagName,n),a=av(nv(t));if(i&&!Ao(i)&&a&&""!==a){var o=e.getSemanticJsxChildren(t.children),s=o.indexOf(r),c=vy(i,a);return c&&(1===o.length?c:yh(c,(function(e){return Yf(e)?Dp(e,Zp(s)):e}),!0))}}(n,t,r):void 0}function Ty(t,r){if(e.isJsxAttribute(t)){var n=ky(t.parent,r);if(!n||Ao(n))return;return vy(n,t.name.escapedText)}return Fy(t.parent,r)}function Cy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 111:case 96:case 105:case 79:case 156:return!0;case 209:case 215:return Cy(e.expression);case 294:return!e.expression||Cy(e.expression)}return!1}function Ey(t,r){return function(t,r){var n=Bm(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&302===e.kind&&e.symbol.escapedName===n&&Cy(e.initializer)})),a=i&&jD(i.initializer);return a&&jm(t,a)}(r,t)||Ef(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&302===e.kind&&Cy(e.initializer)&&Lm(r,e.symbol.escapedName)})),(function(e){return[function(){return jD(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Xc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Lm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),q_,r)}function ky(t,r){var n=Ay(e.isObjectLiteralMethod(t)?by(t,r):Fy(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=yh(n,_l,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?Ey(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return Ef(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&291===e.kind&&Lm(r,e.symbol.escapedName)&&(!e.initializer||Cy(e.initializer))})),(function(e){return[e.initializer?function(){return jD(e.initializer)}:function(){return rt},e.symbol.escapedName]})),e.map(e.filter(Xc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Lm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),q_,r)}(t,i):i}}function Ay(t,r,n){if(t&&iD(t,465829888)){var i=wy(r);if(i&&1&n&&e.some(i.inferences,PD))return Ny(t,i.nonFixingMapper);if(null==i?void 0:i.returnMapper){var a=Ny(t,i.returnMapper);return 1048576&a.flags&&kd(a.types,tt)&&kd(a.types,nt)?gh(a,(function(e){return e!==tt&&e!==nt})):a}}return t}function Ny(t,r){return 465829888&t.flags?P_(t,r):1048576&t.flags?Id(e.map(t.types,(function(e){return Ny(e,r)})),0):2097152&t.flags?Ud(e.map(t.types,(function(e){return Ny(e,r)}))):t}function Fy(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 259:case 167:case 170:case 169:case 206:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=uy(n,r);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name)&&n.name.elements.length>0)return ts(n.name,!0,!1)}}(t,r);case 217:case 252:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=_y(n,r);if(i){var a=e.getFunctionFlags(n);if(1&a){var o=!!(2&a);1048576&i.flags&&(i=gh(i,(function(e){return!!LT(1,e,o)})));var s=LT(1,i,!!(2&a));if(!s)return;i=s}if(2&a){var c=yh(i,DS);return c&&Id([c,Bx(c)])}return i}}}(t,r);case 228:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=e.getFunctionFlags(n),a=_y(n,r);if(a){var o=!!(2&i);return!t.asteriskToken&&1048576&a.flags&&(a=gh(a,(function(e){return!!LT(1,e,o)}))),t.asteriskToken?a:LT(0,a,o)}}}(n,r);case 222:return function(e,t){var r=Fy(e,t);if(r){var n=DS(r);return n&&Id([n,Bx(n)])}}(n,r);case 211:case 218:if(e.isInEtsFile(n)&&101===n.expression.kind)return Xe;case 212:return fy(n,t);case 214:case 233:return e.isConstTypeReference(n.type)?o(n):o_(n.type);case 225:return my(t,r);case 302:case 303:return xy(n,r);case 304:return Fy(n.parent,r);case 207:var i=n;return Dy(ky(i,r),e.indexOfNode(i.elements,t));case 226:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Fy(r,t):void 0}(t,r);case 238:return e.Debug.assert(227===n.parent.kind),function(e,t){if(213===e.parent.kind)return fy(e.parent,t)}(n.parent,t);case 215:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):o_(a.typeExpression.type):Fy(n,r);case 234:return Fy(n,r);case 237:return o_(n.type);case 277:return os(n);case 294:return Sy(n,r);case 291:case 293:return Ty(n,r);case 286:case 285:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return gy(t,0)}(n,r)}}function o(e){return Fy(e,r)}}function wy(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Py(t,r){return 0!==Sb(r)?function(e,t){var r=Ox(e,Ve);r=Iy(t,nv(t),r);var n=ev(E.IntrinsicAttributes,t);No(n)||(r=Cc(n,r));return r}(t,r):function(t,r){var n=nv(r),i=(o=n,iv(E.ElementAttributesPropertyNameContainer,o)),a=void 0===i?Ox(t,Ve):""===i?Zl(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return Nu(a,Kl([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Su(o,Kl([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function Oy(t){return e.getStrictOptionValue(V,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?Sc(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=p_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Ax(e),i=Ax(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Fx(e)||Fx(t),l=c&&!Fx(a),u=new Array(s+(l?1:0)),d=0;d=Nx(a)&&d>=Nx(o),h=d>=n?void 0:xx(e,d),y=d>=i?void 0:xx(t,d),v=ii(1|(m&&!g?16777216:0),(h===y?h:h?y?void 0:h:y)||"arg".concat(d));v.type=g?dd(f):f,u[d]=v}if(l){var b=ii(1,"args");b.type=dd(Cx(o,s)),o===t&&(b.type=P_(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Id([vs(e),P_(vs(t),r)]);return Pg(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),l=gc(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));l.compositeKind=2097152,l.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(l.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?v_(t.mapper,n):n);return l}(t,r):void 0:t})):void 0}function My(t,r){var n=Cl(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n0&&(s=Wp(s,j(),t.symbol,g,u),o=[],a=e.createSymbolTable(),h=!1,y=!1,v=!1),$y(N=yl(JD(E.expression)))){var M=Kp(N,u);if(i&&Yy(M,i,E),S=o.length,No(s))continue;s=Wp(s,M,t.symbol,g,u)}else Xn(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=je;continue}e.Debug.assert(175===E.kind||176===E.kind),NC(E)}!A||8576&A.flags?a.set(k.escapedName,k):q_(A,ft)&&(q_(A,Ye)?y=!0:q_(A,ot)?v=!0:h=!0,n&&(m=!0)),o.push(k)}if(l){var L=e.findAncestor(c.pattern.parent,(function(e){return 259===e.kind||225===e.kind||167===e.kind}));if(304!==e.findAncestor(t,(function(e){return e===L||304===e.kind})).kind)for(var R=0,B=Xc(c);R0&&(s=Wp(s,j(),t.symbol,g,u),o=[],a=e.createSymbolTable(),h=!1,y=!1),yh(s,(function(e){return e===Ct?j():e}))):j();function j(){var r=[];h&&r.push(Ky(t,S,o,Xe)),y&&r.push(Ky(t,S,o,Ye)),v&&r.push(Ky(t,S,o,ot));var i=Va(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|g,f&&(i.objectFlags|=4096),m&&(i.objectFlags|=512),n&&(i.pattern=t),i}}function $y(t){var r=vg(yh(t,al));return!!(126615553&r.flags||3145728&r.flags&&e.every(r.types,$y))}function Gy(t){return e.stringContains(t,"-")}function Hy(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Qy(e,t){return e.initializer?ED(e.initializer,t):rt}function Xy(e,t){for(var r=[],n=0,i=e.children;n0&&(c=Wp(c,E(),i.symbol,d,!1),s=e.createSymbolTable()),Ao(h=yl(bD(g.expression,r)))&&(l=!0),$y(h)?(c=Wp(c,h,i.symbol,d,!1),o&&Yy(h,o,g)):(Xn(g.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?Ud([n,h]):h)}l||s.size>0&&(c=Wp(c,E(),i.symbol,d,!1));var b=284===t.parent.kind?t.parent:void 0;if(b&&b.openingElement===t&&b.children.length>0){var x=Xy(b,r);if(!l&&p&&""!==p){u&&Xn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(p));var D=ky(t.attributes,void 0),S=D&&vy(D,p),T=ii(4,p);T.type=1===x.length?x[0]:S&&_h(S,rg)?yd(x):dd(Id(x)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(p),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var C=e.createSymbolTable();C.set(p,T),c=Wp(c,Va(i.symbol,C,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,d,!1)}}return l?Le:n&&c!==Et?Ud([n,c]):n||(c===Et?E():c);function E(){d|=re;var t=Va(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|d,t}}(t.parent,r)}function ev(e,t){var r=nv(t),n=r&&ba(r),i=n&&mi(n,e,788968);return i?$s(i):je}function tv(t){var r=fi(t);if(!r.resolvedSymbol){var n=ev(E.IntrinsicElements,t);if(No(n))return Y&&Xn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(E.IntrinsicElements)),r.resolvedSymbol=Pe;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Sl(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Pl(n,Xe)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Xn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+E.IntrinsicElements),r.resolvedSymbol=Pe)}return r.resolvedSymbol}function rv(t){var r=t&&e.getSourceFileOfNode(t),n=r&&fi(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(V,r),V);if(i){var a=da(t,i,e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Pe?Ta(Xi(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function nv(e){var t=e&&fi(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=rv(e);if(!r||r===Pe){var n=qn(e);r=bi(e,n,1920,void 0,n,!1)}if(r){var i=Xi(mi(ba(Xi(r)),E.JSX,1920));if(i&&i!==Pe)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Xi(Hu(E.JSX,1920,void 0));return a!==Pe?a:void 0}function iv(t,r){var n=r&&mi(r.exports,t,788968),i=n&&$s(n),a=i&&Xc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Xn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function av(e){return iv(E.ElementChildrenAttributeNameContainer,e)}function ov(t,r){if(4&t.flags)return[Jr];if(128&t.flags){var n=sv(t,r);return n?[Wb(r,n)]:(Xn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+E.IntrinsicElements),e.emptyArray)}var i=_l(t),a=Cl(i,1);return 0===a.length&&(a=Cl(i,0)),0===a.length&&1048576&i.flags&&(a=Dc(e.map(i.types,(function(e){return ov(e,r)})))),a}function sv(t,r){var n=ev(E.IntrinsicElements,r);if(!No(n)){var i=t.value,a=Sl(n,e.escapeLeadingUnderscores(i));if(a)return vs(a);var o=Pl(n,Xe);return o||void 0}return Le}function cv(t){e.Debug.assert(Hy(t.tagName));var r=fi(t);if(!r.resolvedJsxElementAttributesType){var n=tv(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=vs(n)||je:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Pl(ev(E.IntrinsicElements,t),Xe)||je:r.resolvedJsxElementAttributesType=je}return r.resolvedJsxElementAttributesType}function lv(e){var t=ev(E.ElementClass,e);if(!No(t))return t}function uv(e){return ev(E.Element,e)}function dv(e){var t=uv(e);if(t)return Id([t,He])}function pv(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return ok(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),JE(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=2){var c=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfAccessExpression(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.tryGetResolvedSignatureWithoutCheck(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(_e,r);c&&ex(c,r.name,i,s.checkConfig)}else null===(n=null==a?void 0:a.declarations)||void 0===n||n.forEach((function(t){e.isIdentifier(r.name)&&ex(t,r.name,i,s.checkConfig)}))}(r),32&r.flags?function(e,t){var r=JD(e.expression),n=kg(r,e.expression);return Eg(Rv(e,e.expression,kv(n,e.expression),e.name,t),e,n!==r)}(r,n):Rv(r,r.expression,xv(r.expression),r.name,n)}function Fv(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?kv(ry(t.left),t.left):xv(t.left);return Rv(t,t.left,n,t.right,r)}function wv(t){for(;215===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Pv(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Iv(t){!function(t){if(!e.getContainingClass(t))return ok(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return ok(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&102===t.parent.operatorToken.kind;if(!Ov(t)&&!r)return ok(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}}(t);var r=Ov(t);return r&&Xv(r,void 0,!1),Le}function Ov(t){if(e.isExpressionNode(t)){var r=fi(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=Pv(t.escapedText,t)),r.resolvedSymbol}}function Mv(e,t){return Sl(e,t.escapedName)}function Lv(t,r){return(Vo(r)||e.isThisProperty(t)&&Ko(r))&&e.getThisContainer(t,!0)===Wo(r)}function Rv(r,n,i,a,o){var s,l,u,d=fi(n).resolvedSymbol,p=e.getAssignmentTargetKind(r),_=_l(0!==p||wv(r)?jg(i):i),f=Ao(_)||_===lt;if(e.isPrivateIdentifier(a)){K<99&&(0!==p&&wE(r,1048576),1!==p&&wE(r,524288));var g=Pv(a.escapedText,a);if(p&&g&&g.valueDeclaration&&e.isMethodDeclaration(g.valueDeclaration)&&ok(a,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(a)),f){if(g)return No(_)?je:_;if(!e.getContainingClass(a))return ok(a,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Le}if(!(l=g?Mv(i,g):void 0)&&function(t,r,n){var i,a=Xc(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var o=Ci(r);if(i){var s=e.Debug.checkDefined(i.valueDeclaration),l=e.Debug.checkDefined(e.getContainingClass(s));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return l===e}))){var p=Xn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,so(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return Xn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,Ci(l.name||c)),!0}return!1}(i,a,g))return je;l&&65536&l.flags&&!(32768&l.flags)&&1!==p&&Xn(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(f)return e.isIdentifier(n)&&d&&Hh(d,r),No(_)?je:_;if(!(l=Sl(_,a.escapedText,!1,164===r.kind))){var m=e.getEtsComponentExpressionInnerCallExpressionNode(r)||e.getRootEtsComponentInnerCallExpressionNode(r),h=e.getSourceFileOfNode(r).locals;if(m&&(null==h?void 0:h.has(a.escapedText))){var y=null==h?void 0:h.get(a.escapedText),v=e.getAllDecorators(null==y?void 0:y.valueDeclaration),b=79===m.expression.kind?m.expression.escapedText:void 0;e.getEtsExtendDecoratorsComponentNames(v,V).find((function(e){return e===b}))&&(l=y),e.hasEtsStylesDecoratorNames(v,V)&&(l=y)}var x=null===(s=e.getContainingStruct(r))||void 0===s?void 0:s.symbol.members;if(m&&(null==x?void 0:x.has(a.escapedText))){var D=null==x?void 0:x.get(a.escapedText);v=e.getAllDecorators(null==D?void 0:D.valueDeclaration);e.hasEtsStylesDecoratorNames(v,V)&&(l=D)}}}if(e.isIdentifier(n)&&d&&(V.isolatedModules||!l||!(sE(l)||8&l.flags&&305===r.parent.kind)||e.shouldPreserveConstEnums(V)&&Gh(r))&&Hh(d,r),l){ri(l)&&lp(r,l)&&l.declarations&&ni(a,l.declarations,a.escapedText),function(r,n,i){var a,o,s=r.valueDeclaration;if(!s||e.getSourceFileOfNode(n).isDeclarationFile)return;var c=e.idText(i);if(!Jv(n)||function(t){return e.isPropertyDeclaration(t)&&!e.hasAccessorModifier(t)&&t.questionToken}(s)||e.isAccessExpression(n)&&e.isAccessExpression(n.expression)||hi(s,i)||e.isMethodDeclaration(s)&&32&e.getCombinedModifierFlags(s)||!V.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;var t=vs(e.parent);for(;;){if(!(t=t.symbol&&Uv(t)))return!1;var r=Sl(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(r))262!==s.kind||181===n.parent.kind||16777216&s.flags||hi(s,i)||(o=Xn(i,e.Diagnostics.Class_0_used_before_its_declaration,c));else{var l=!1,u=e.getAllDecorators(null==r?void 0:r.valueDeclaration);u&&(l=null===(a=t.getCompilerOptions().ets)||void 0===a?void 0:a.propertyDecorators.some((function(t){return null==u?void 0:u.some((function(r){return!(!e.isIdentifier(r.expression)||t.name!==r.expression.escapedText.toString()||t.needInitialization)}))}))),l||(o=Xn(i,e.Diagnostics.Property_0_is_used_before_its_initialization,c))}o&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_here,c))}(l,r,a),Xv(l,r,Yv(n,d)),fi(r).resolvedSymbol=l;var S=e.isWriteAccess(r);if(yv(r,107===n.kind,S,_,l),Yx(r,l,p))return Xn(a,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(a)),je;u=Lv(r,l)?Re:S?ys(l):vs(l)}else{var T=e.isPrivateIdentifier(a)||0!==p&&gp(i)&&!e.isThisTypeParameter(i)?void 0:Ml(_,a.escapedText);if(!T||!T.type){var C=Bv(r,i.symbol,!0);return!C&&sp(i)?Le:i.symbol===le?(le.exports.has(a.escapedText)&&418&le.exports.get(a.escapedText).flags?Xn(a,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(a.escapedText),so(i)):Y&&Xn(a,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,so(i)),Le):(a.escapedText&&!ki(r)&&zv(a,e.isThisTypeParameter(i)?_:i,C),je)}T.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Xn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,so(_)),u=V.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?Id([T.type,We]):T.type,V.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Xn(a,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(a.escapedText)),T.declaration&&268435456&e.getCombinedNodeFlags(T.declaration)&&ni(a,[T.declaration],a.escapedText)}return jv(r,l,u,a,o)}function Bv(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===V.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&gi(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&109===t.expression.kind)}return!1}function jv(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return Ag(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!CC(r.declarations))return n;if(n===Re)return $o(t,r);n=$h(n,t,a);var s=!1;if(G&&X&&e.isAccessExpression(t)&&109===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&rC(c)&&!e.isStatic(c)){var l=Uh(t);174!==l.kind||l.parent!==c.parent||16777216&c.flags||(s=!0)}}else G&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Uh(t)===Uh(r.valueDeclaration)&&(s=!0);var u=Jh(t,n,s?Dg(n):n);return s&&!_f(n)&&_f(u)?(Xn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,ao(r)),n):o?cg(u):u}function Jv(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 170:return!0;case 302:case 172:case 175:case 176:case 304:case 165:case 238:case 294:case 291:case 292:case 293:case 286:case 232:case 297:return!1;case 217:case 243:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function Uv(e){var t=Ms(e);if(0!==t.length)return Ud(t)}function zv(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o=0)return d>=Nx(n)&&(Fx(n)||ds)return!1;if(o||a>=c)return!0;for(var p=a;p=a&&r.length<=i}function fb(e){return mb(e,0,!1)}function gb(e){return mb(e,0,!1)||mb(e,1,!1)}function mb(e,t,r){if(524288&e.flags){var n=$c(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function hb(t,r,n,i){var a=qg(t.typeParameters,t,0,i),o=wx(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Kg(s?S_(r,s):r,t,(function(e,t){hm(a.inferences,e,t)})),n||Wg(r,t,(function(e,t){hm(a.inferences,e,t,128)})),nu(t,Em(a),e.isInJSFile(r.declaration))}function yb(t){if(!t)return st;var r=JD(t);return e.isOptionalChainRoot(t.parent)?Sg(r):e.isOptionalChain(t.parent)?Cg(r):r}function vb(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Py(t,e),a=vD(e.attributes,i,n,r);return hm(n.inferences,a,i),Em(n)}(t,r,i,a);if(168!==t.kind){var o=e.every(r.typeParameters,(function(e){return!!ll(e)})),s=Fy(t,o?8:0);if(s){var c=Zl(r);if(Zg(c)){var l=wy(t);if(!(!o&&Fy(t,8)!==s)){var u=Yg(function(t,r){return void 0===r&&(r=0),t&&$g(e.map(t.inferences,Xg),t.signature,t.flags|r,t.compareTypes)}(l,1)),d=P_(s,u),p=fb(d),_=p&&p.typeParameters?lu(iu(p,p.typeParameters)):d;hm(a.inferences,_,c,128)}var f=qg(r.typeParameters,r,a.flags),g=P_(s,l&&l.returnMapper);hm(f.inferences,g,c),a.returnMapper=e.some(f.inferences,wD)?Yg(function(t){var r=e.filter(t.inferences,wD);return r.length?$g(e.map(r,Xg),t.signature,t.flags,t.compareTypes):void 0}(f)):void 0}}}var m=Px(r),h=m?Math.min(Ax(r)-1,n.length):n.length;if(m&&262144&m.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===m}));y&&(y.impliedArity=e.findIndex(n,cb,h)<0?n.length-h:void 0)}var v=Ql(r);if(v&&Zg(v)){var b=Cb(t);hm(a.inferences,yb(b),v)}for(var x=0;x=n-1&&cb(d=t[n-1]))return bb(236===d.kind?d.type:vD(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;ud&&(d=y)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=lb(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=229===r.kind&&(rn?JD(r.expression):bD(r.expression));n&&_g(n)?e.forEach(Eu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Eb(r,4&a?dd(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=r;dl&&(l=f),n.length1&&(v=$(g,Mn,x,S)),v||(v=$(g,Rn,x,S)),v)return v;if(v=function(t,r,n,i,a){return e.Debug.assert(r.length>0),NC(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n,i){var a=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ue?n.length:ue),o=r[a],s=o.typeParameters;if(!s)return o;var c=ab(t)?t.typeArguments:void 0,l=c?au(o,function(e,t,r){var n=e.map(KC);for(;n.length>t.length;)n.pop();for(;n.length3){var T,C=m[m.length-1];m.length>3&&(T=e.chainDiagnosticMessages(T,e.Diagnostics.The_last_overload_gave_the_following_error),T=e.chainDiagnosticMessages(T,e.Diagnostics.No_overload_matches_this_call));var E=Tb(t,b,C,Rn,0,!0,(function(){return T}));if(E)for(var k=0,A=E;k3&&e.addRelatedInfo(N,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_last_overload_is_declared_here)),q(C,N),Pn.add(N)}else e.Debug.fail("No error for last overload signature")}else{for(var F=[],w=0,P=Number.MAX_VALUE,I=0,O=0,M=function(r){var n=Tb(t,b,r,Rn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,g.length,oo(r))}));n?(n.length<=P&&(P=n.length,I=O),w=Math.max(w,n.length),F.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},B=0,j=m;B1?F[I]:e.flatten(F);e.Debug.assert(J.length>0,"No errors reported for 3 or fewer overload signatures");var U=e.chainDiagnosticMessages(e.map(J,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),z=i([],e.flatMap(J,(function(e){return e.relatedInformation})),!0),V=void 0;if(e.every(J,(function(e){return e.start===J[0].start&&e.length===J[0].length&&e.file===J[0].file}))){var K=J[0];V={file:K.file,start:K.start,length:K.length,code:U.code,category:U.category,messageText:U,relatedInformation:z}}else V=e.createDiagnosticForNodeFromMessageChain(t,U,z);q(m[0],V),Pn.add(V)}else if(h)Pn.add(wb(t,[h],b));else if(y)Db(y,t.typeArguments,!0,s);else{var W=e.filter(r,(function(e){return _b(e,c,l)}));0===W.length?Pn.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Vl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,p):o1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(l){var u=Wl(l),d=!u.typeParameters;$([u],Rn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=a,h=o,y=s}function $(r,n,i,o){if(void 0===o&&(o=!1),m=void 0,h=void 0,y=void 0,i){var s=r[0];if(e.some(c)&&!l||!pb(t,b,s,o))return;return Tb(t,b,s,n,0,!1,void 0)?void(m=[s]):s}for(var u=0;u=0&&Xn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=xv(t.expression);if(a===lt)return Vr;if(No(a=_l(a)))return sb(t);if(Ao(a))return t.typeArguments&&Xn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ob(t);var o=Cl(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||174!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=$s(n.parent.symbol);if(!jC(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=KC(s);if(Jb(n.parent.symbol,c))return!0}return 8&i&&Xn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,so(o)),16&i&&Xn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,so(o)),!1}return!0}(t,o[0]))return sb(t);if(jb(o,(function(e){return!!(4&e.flags)})))return Xn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sb(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,256)?(Xn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sb(t)):Pb(t,o,r,n,0)}var c=Cl(a,0);if(c.length){var l=Pb(t,c,r,n,0);return Y||(l.declaration&&!Hb(l.declaration)&&Zl(l)!==st&&Xn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ql(l)===st&&Xn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return zb(t.expression,a,1),sb(t)}function jb(t,r){return e.isArray(t)?e.some(t,(function(e){return jb(e,r)})):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function Jb(t,r){var n=Ms(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Ec(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l1)return ok(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(0===r.length||r.length>2)return ok(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);if(n)return ok(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return jx(t,Le);for(var r=t.arguments[0],n=bD(r),i=t.arguments.length>1?bD(t.arguments[1]):void 0,a=2;a=n-1)return r===n-1?a:dd(Dp(a,Ye));for(var o=[],s=[],c=[],l=r;l0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0;l--){if(131072&gh(Cx(t,l),ub).flags)break;a=l}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Fx(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]);return!_g(t)||t.target.hasRestElement}return!1}function wx(e){if(L(e)){var t=vs(e.parameters[e.parameters.length-1]);if(!_g(t))return t;if(t.target.hasRestElement)return Dd(t,t.target.fixedLength)}}function Px(e){var t=wx(e);return!t||$f(t)||Ao(t)||131072&yl(t).flags?void 0:t}function Ix(e){return Ox(e,ct)}function Ox(e,t){return e.parameters.length>0?Cx(e,0):t}function Mx(t,r){var n=_i(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?rs(i,!0):vs(t)),i&&79!==i.name.kind&&(n.type===Ve&&(n.type=ts(i.name)),Lx(i.name,n.type))}}function Lx(t,r){for(var n=0,i=t.elements;n0&&(n=Id(u,2)):l=ct;var d=function(t,r){var n=[],i=[],a=!!(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?JD(t.expression,r):qe;if(e.pushIfUnique(n,zx(t,s,Le,a)),t.asteriskToken){var c=bT(s,a?19:17,t.expression);o=c&&c.nextType}else o=Fy(t,void 0);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),p=d.yieldTypes,_=d.nextTypes;i=e.some(p)?Id(p,2):void 0,a=e.some(_)?Ud(_):void 0}else{var f=qx(t,r);if(!f)return 2&o?jx(t,ct):ct;if(0===f.length)return 2&o?jx(t,st):st;n=Id(f,2)}if(n||i||a){if(i&&Vg(t,i,3),n&&Vg(t,n,1),a&&Vg(t,a,2),n&&ag(n)||i&&ag(i)||a&&ag(a)){var g=Ly(t),m=g?g===Wl(t)?c?void 0:n:Ay(Zl(g),t,void 0):void 0;c?(i=pg(i,m,0,s),n=pg(n,m,1,s),a=pg(a,m,2,s)):n=function(e,t,r){return e&&ag(e)&&(e=dg(e,t?r?fS(t):t:void 0)),e}(n,m,s)}i&&(i=jg(i)),n&&(n=jg(n)),a&&(a=jg(a))}return c?Ux(i||ct,n||l,a||py(2,t)||Ve,s):s?Rx(n||l):n||l}function Ux(e,t,r,n){var i=n?Qr:Xr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ve,t=i.resolveIterationType(t,void 0)||Ve,r=i.resolveIterationType(r,void 0)||Ve,a===wt){var o=i.getGlobalIterableIteratorType(!1),s=o!==wt?TT(o,i):void 0,c=s?s.returnType:Le,l=s?s.nextType:We;return q_(t,c)&&q_(l,r)?o!==wt?ld(o,[e]):(i.getGlobalIterableIteratorType(!0),Ct):(i.getGlobalGeneratorType(!0),Ct)}return ld(a,[e,t,r])}function zx(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?_T(i?19:17,r,n,a):r;return i?xS(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Vx(e,t,r){for(var n=0,i=0;i=t?r[i]:void 0;n|=void 0!==a?b.get(a)||32768:0}return n}function Kx(t){var r=fi(t);if(void 0===r.isExhaustive){r.isExhaustive=0;var n=function(t){if(220===t.expression.kind){var r=uh(t);if(!r)return!1;var n=al(bD(t.expression.expression)),i=Vx(0,0,r);return 3&n.flags?!(556800&~i):!_h(n,(function(e){return(qm(e)&i)===i}))}var a=bD(t.expression);if(!sg(a))return!1;var o=lh(t);if(!o.length||e.some(o,ig))return!1;return s=yh(a,Qp),c=o,1048576&s.flags?!e.forEach(s.types,(function(t){return!e.contains(c,t)})):e.contains(c,s);var s,c}(t);0===r.isExhaustive&&(r.isExhaustive=n)}else 0===r.isExhaustive&&(r.isExhaustive=!1);return r.isExhaustive}function Wx(e){return e.endFlowNode&&Mh(e.endFlowNode)}function qx(t,r){var n=e.getFunctionFlags(t),i=[],a=Wx(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var l=bD(c,r&&-9&r);2&n&&(l=yS(gS(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 216:case 217:return!0;case 172:return 208===e.parent.kind;default:return!1}}(t))return!(G&&i.length&&a)||Hb(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,We),i}function $x(t,r){return void m((function(){var n,i,a=e.getFunctionFlags(t),o=r&&jT(r,a);if(o&&iD(o,16385))return;if(e.isFunctionDeclaration(t)&&t.illegalDecorators&&r){var s,c=e.getEtsExtendDecoratorsComponentNames(t.illegalDecorators,V);if(0!==c.length)return null===(n=V.ets)||void 0===n||n.extend.components.forEach((function(t){var r=t.name,n=t.type;r===e.last(c)&&(s=n)})),(null===(i=null==r?void 0:r.symbol)||void 0===i?void 0:i.escapedName)===s?void 0:void Xn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Should_not_add_return_type_to_the_function_that_is_annotated_by_Extend);if(e.getEtsStylesDecoratorComponentNames(t.illegalDecorators,V).length>0)return p()}if(e.isMethodDeclaration(t)&&t.modifiers&&t.modifiers.length&&r){if(e.getEtsStylesDecoratorComponentNames(t.modifiers,V).length>0)return p()}if(171===t.kind||e.nodeIsMissing(t.body)||240!==t.body.kind||!Wx(t))return;var l=512&t.flags,u=e.getEffectiveReturnTypeNode(t)||t;if(o&&131072&o.flags)Xn(u,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!l)Xn(u,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&G&&!q_(We,o))Xn(u,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!o){if(!l)return;var d=Zl(Wl(t));if(JT(t,d))return}Xn(u,e.Diagnostics.Not_all_code_paths_return_a_value)}function p(){var n,i,a=null===(n=V.ets)||void 0===n?void 0:n.styles.component.type;return(null===(i=null==r?void 0:r.symbol)||void 0===i?void 0:i.escapedName)===a?void 0:void Xn(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Should_not_add_return_type_to_the_function_that_is_annotated_by_Styles)}}))}function Gx(t,r){if(e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t)),NC(t),e.isFunctionExpression(t)&&ZS(t,t.name),r&&4&r&&R_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=Ry(t);if(n&&Zg(Zl(n))){var i=fi(t);if(i.contextFreeType)return i.contextFreeType;var a=Jx(t,r),o=gc(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Va(t.symbol,U,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return Pt}return jE(t)||216!==t.kind||KE(t),function(t,r){var n=fi(t);if(!(1024&n.flags)){var i=Ry(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(Cl(vs(Ca(t)),0));if(!a)return;if(R_(t))if(i){var o=wy(t),s=void 0;if(r&&2&r){!function(t,r,n){for(var i=t.parameters.length-(L(t)?1:0),a=0;a=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Pn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!nk(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&174!==r.kind&&!(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Pn.add(a)}}dy(t)&&Xn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(t)}));var r=JD(t.expression),n=gS(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||No(n)||3&r.flags||Yn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n}function rD(e){return iD(e,2112)?aD(e,3)||iD(e,296)?mt:Ze:Ye}function nD(e,t){if(iD(e,t))return!0;var r=al(e);return!!r&&iD(r,t)}function iD(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!ID(e,a))return a}}function MD(e){var t=fb(e);if(t&&!t.typeParameters)return Zl(t)}function LD(e){var t=JD(e.expression),r=kg(t,e.expression),n=MD(t);return n&&Eg(n,e,r!==t)}function RD(t,r){var n=BD(t);if(n)return n;if(134217728&t.flags&&Lr){var i=Lr[F(t)];if(i)return i}var a=on,o=JD(t,r);on!==a&&((Lr||(Lr=[]))[F(t)]=o,e.setNodeFlags(t,134217728|t.flags));return o}function BD(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return o_(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||107===r.expression.kind||e.isRequireCall(r,!0)||ax(r))if(!e.isEtsComponentExpression(r)||107===r.expression.kind||e.isRequireCall(r,!0)||ax(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return o_(r.type);if(8===t.kind||10===t.kind||111===t.kind||96===t.kind)return JD(t)}else{if(n=e.isCallChain(r)?LD(r):MD(xv(r.expression,128)))return n}else if(n=e.isCallChain(r)?LD(r):MD(xv(r.expression,128)))return n}function jD(e){var t=fi(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Le;try{return t.contextFreeType=JD(e,4)}finally{e.contextualType=r}}function JD(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var i=u;u=t,B=0;var a=ND(t,UD(t,r,n),r);return sD(a)&&function(t,r){var n=209===t.parent.kind&&t.parent.expression===t||210===t.parent.kind&&t.parent.expression===t||(79===t.kind||164===t.kind)&&JC(t)||184===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;n||Xn(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(V.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Xn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,a),u=i,null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function UD(t,n,i){var a=t.kind;if(r)switch(a){case 230:case 216:case 217:r.throwIfCancellationRequested()}switch(a){case 79:return Qh(t,n);case 80:return Iv(t);case 109:return ry(t);case 107:return ay(t);case 105:return Qe;case 14:case 10:return Hp(Yp(t.text));case 8:return lk(t),Hp(Zp(+t.text));case 9:return function(t){var r=e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent);if(!r&&K<7&&ok(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),Hp(e_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 111:return rt;case 96:return et;case 227:return hD(t);case 13:return er;case 207:return jy(t,n,i);case 208:return qy(t,n);case 209:return Nv(t,n);case 164:return Fv(t,n);case 210:return nb(t,n);case 211:if(101===t.expression.kind)return ox(t);case 212:return Yb(t,n);case 218:var o=t;return o.body&&o.body.statements.length&&KD(o.body.statements,n),Yb(t,n);case 213:return dx(t);case 215:return function(t,r){if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return _x(n,n,t.expression,r)}return JD(t.expression,r)}(t,n);case 230:return function(e){return QT(e),NC(e),vs(Ca(e))}(t);case 216:case 217:return Gx(t,n);case 220:return function(e){return JD(e.expression),On}(t);case 214:case 233:return function(t){if(214===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&ok(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return _x(t,t.type,t.expression)}(t);case 234:return fx(t);case 232:return gx(t);case 237:return function(t){EC(t.type);var r=JD(t.expression),n=o_(t.type);return No(n)?n:(X_(r,n,t.type,t.expression,e.Diagnostics.Type_0_does_not_satisfy_the_expected_type_1),r)}(t);case 235:return mx(t);case 219:return eD(t);case 221:return function(e){return JD(e.expression),qe}(t);case 222:return tD(t);case 223:return function(t){var r=JD(t.operand);if(r===lt)return lt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return Hp(Zp(-t.operand.text));case 39:return Hp(Zp(+t.operand.text))}break;case 9:if(40===t.operator)return Hp(e_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return kv(r,t.operand),nD(r,12288)&&Xn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(nD(r,2112)&&Xn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),so(cg(r))),Ye):rD(r);case 53:lT(t.operand);var n=12582912&qm(r);return 4194304===n?et:8388608===n?rt:at;case 45:case 46:return Hx(t.operand,kv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zx(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rD(r)}}(t);case 224:return function(t){var r=JD(t.operand);return r===lt?lt:(Hx(t.operand,kv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Zx(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),rD(r))}(t);case 225:return ie(t,n);case 226:return function(e,t){var r=lT(e.condition);return sT(e.condition,r,e.whenTrue),Id([JD(e.whenTrue,t),JD(e.whenFalse,t)],2)}(t,n);case 229:return function(e,t){return K<2&&wE(e,V.downlevelIteration?1536:1024),_T(33,JD(e.expression,t),We,e.expression)}(t,n);case 231:return qe;case 228:return function(t){m((function(){8192&t.flags||ik(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),dy(t)&&Xn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Le;var n=e.getFunctionFlags(r);if(!(1&n))return Le;var i=!!(2&n);t.asteriskToken&&(i&&K<99&&wE(t,26624),!i&&K<2&&V.downlevelIteration&&wE(t,256));var a=eu(r),o=a&&RT(a,i),s=o&&o.yieldType||Le,c=o&&o.nextType||Le,l=i?xS(c)||Le:c,u=t.expression?JD(t.expression):qe,d=zx(t,u,l,i);if(a&&d&&X_(d,s,t.expression||t,t.expression),t.asteriskToken)return gT(i?19:17,1,u,t.expression)||Le;if(a)return LT(2,a,i)||Le;var p=py(2,r);return p||(p=Le,m((function(){if(Y&&!e.expressionResultIsUnused(t)){var r=Fy(t,void 0);r&&!Ao(r)||Xn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p}(t);case 236:return function(e){return e.isSpread?Dp(e.type,Ye):e.type}(t);case 294:return gv(t,n);case 284:case 285:return function(e){return NC(e),uv(e)||Le}(t);case 288:return function(t){pv(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(V)||!V.jsxFactory&&!r.pragmas.has("jsx")||V.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Xn(t,V.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Xy(t),uv(t)||Le}(t);case 292:return Zy(t,n);case 286:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return je}function zD(t,r){VD(t,r),t.thenStatement&&e.isBlock(t.thenStatement)&&t.thenStatement.statements&&KD(t.thenStatement.statements,r),t.elseStatement&&(e.isIfStatement(t.elseStatement)&&zD(t.elseStatement,r),e.isBlock(t.elseStatement)&&t.elseStatement.statements&&KD(t.elseStatement.statements,r))}function VD(e,t){e.expression&&UD(e.expression,t),e.getChildren().forEach((function(e){return VD(e,t)}))}function KD(t,r){t.length&&t.forEach((function(t){e.isIfStatement(t)?zD(t,r):t.expression&&UD(t.expression,r)}))}function WD(t){OE(t),t.expression&&ik(t.expression,e.Diagnostics.Type_expected),EC(t.constraint),EC(t.default);var r=qs(Ca(t));il(r),function(e){return cl(e)!==Ot}(r)||Xn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,so(r));var n=Zc(r),i=ll(r);n&&i&&Q_(i,_c(P_(n,f_(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),NC(t),m((function(){return WT(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}))}function qD(t){IE(t),tT(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(174===r.kind&&e.nodeIsPresent(r.body)||Xn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),174===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Xn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(t.questionToken||Bl(t))&&e.isBindingPattern(t.name)&&r.body&&Xn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Xn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),174!==r.kind&&178!==r.kind&&183!==r.kind||Xn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),217===r.kind&&Xn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),175!==r.kind&&176!==r.kind||Xn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||q_(yl(vs(t.symbol)),ir)||Xn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function $D(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===de.escapedName&&Hn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var r=e.getEffectiveReturnTypeNode(t);if(Y&&!r)switch(t.kind){case 178:Xn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 177:Xn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=o_(r);if(i===st)Xn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=LT(0,i,!!(2&n))||Le;Q_(Ux(a,LT(1,i,!!(2&n))||a,LT(2,i,!!(2&n))||Ve,!!(2&n)),i,r)}}else 2==(3&n)&&function(t,r){var n=o_(r);if(K>=2){if(No(n))return;var i=rd(!0);if(i!==wt&&!xs(n,i))return void Xn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,so(DS(n)||st))}else{if(function(t){TS(t&&e.getEntityNameFromTypeNode(t),!1)}(r),No(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,so(n));var o=sa(a,111551,!0),s=o?vs(o):je;if(No(s))return void(79===a.kind&&"Promise"===a.escapedText&&Ds(n)===rd(!1)?Xn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(d=!0,_r||(_r=Qu("PromiseConstructorLike",0,d))||Ct);if(c===Ct)return void Xn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!Q_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=mi(t.locals,l.escapedText,111551);if(u)return void Xn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}var d;gS(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,r)}179!==t.kind&&323!==t.kind&&IS(t)}))}function HD(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=uu(Ca(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&ph(o_(e.parameters[0].type),(function(t){var r=i.get(Ed(t));r?r.declarations.push(e):i.set(Ed(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o1)for(var r=0,n=t.declarations;r0}function hS(e){var t;if(16777216&e.flags){var r=cd(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function yS(e){return 1048576&e.flags?yh(e,yS):hS(e)?e.aliasTypeArguments[0]:e}function vS(e){if(Ao(e)||hS(e))return!1;if(gp(e)){var t=il(e);if(t?3&t.flags||df(t)||_h(t,mS):iD(e,8650752))return!0}return!1}function bS(t){if(vS(t)){var r=function(e){var t=cd(!0);if(t)return Nu(t,[yS(e)])}(t);if(r)return r}return e.Debug.assert(void 0===fS(t),"type provided should not be a non-generic 'promise'-like."),t}function xS(e,t,r,n){var i=DS(e,t,r,n);return i&&bS(i)}function DS(t,r,n,i){if(Ao(t))return t;if(hS(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){if(wn.lastIndexOf(t.id)>=0)return void(r&&Xn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));var o=r?function(e){return DS(e,r,n,i)}:DS;wn.push(t.id);var s=yh(t,o);return wn.pop(),a.awaitedTypeOfType=s}if(vS(t))return a.awaitedTypeOfType=t;var c={value:void 0},l=fS(t,void 0,c);if(l){if(t.id===l.id||wn.lastIndexOf(l.id)>=0)return void(r&&Xn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));wn.push(t.id);var u=DS(l,r,n,i);if(wn.pop(),!u)return;return a.awaitedTypeOfType=u}if(!mS(t))return a.awaitedTypeOfType=t;if(r){e.Debug.assertIsDefined(n);var d=void 0;c.value&&(d=e.chainDiagnosticMessages(d,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,so(t),so(c.value))),d=e.chainDiagnosticMessages(d,n,i),Pn.add(e.createDiagnosticForNodeFromMessageChain(r,d))}}function SS(t){var r=Gb(t);nx(r,t);var n=Zl(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 262:case 263:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Id([vs(Ca(t.parent)),st]);break;case 170:case 167:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=st;break;case 172:case 175:case 176:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Id([ud(KC(t.parent)),st]);break;default:return e.Debug.fail()}Q_(n,a,t,i)}}function TS(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=bi(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!Pa(a)||sE(Yi(a))||ra(a)){if(r&&V.isolatedModules&&e.getEmitModuleKind(V)>=e.ModuleKind.ES2015&&!Pa(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Xn(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Ii);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else ia(a)}}function CS(t){var r=ES(t);r&&e.isEntityName(r)&&TS(r,!0)}function ES(e){if(e)switch(e.kind){case 191:case 190:return kS(e.types);case 192:return kS([e.trueType,e.falseType]);case 194:case 200:return ES(e.type);case 181:return e.typeName}}function kS(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)||W>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(GS(t,r,"require")||GS(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Eo(t);311===n.kind&&e.isExternalOrCommonJsModule(n)&&Hn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(K>=4)&&GS(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Eo(t);311===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Hn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){K<=8&&(GS(e,t,"WeakMap")||GS(e,t,"WeakSet"))&&An.push(e)}(t,r),function(e,t){t&&K>=2&&K<=8&&GS(e,t,"Reflect")&&Nn.push(e)}(t,r),e.isClassLike(t)?(WT(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||function(t){K>=1&&"Object"===t.escapedText&&(W1&&e.some(p.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!nT(r,t)}))&&Xn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=eT(rs(t));No(_)||No(g)||U_(_,g)||67108864&p.flags||rT(p.valueDeclaration,_,t,g),e.hasOnlyExpressionInitializer(t)&&t.initializer&&X_(bD(t.initializer),g,t,t.initializer,void 0),p.valueDeclaration&&!nT(t,p.valueDeclaration)&&Xn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}170!==t.kind&&169!==t.kind&&(pS(t),259!==t.kind&&206!==t.kind||function(t){if(!(3&e.getCombinedNodeFlags(t)||e.isParameterDeclaration(t))&&(259!==t.kind||t.initializer)){var r=Ca(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=bi(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&mv(n)){var i=e.getAncestor(n.valueDeclaration,260),a=242===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(240===a.kind&&e.isFunctionLike(a.parent)||268===a.kind||267===a.kind||311===a.kind)){var o=ao(n);Xn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),ZS(t,t.name))}}}}function rT(t,r,n,i){var a=e.getNameOfDeclaration(n),o=170===n.kind||169===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Xn(a,o,s,so(r),so(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function nT(t,r){if(167===t.kind&&259===r.kind||259===t.kind&&167===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,888)===e.getSelectedEffectiveModifierFlags(r,888)}function iT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){if(248!==t.parent.parent.kind&&249!==t.parent.parent.kind)if(16777216&t.flags)YE(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return ok(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return ok(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(242!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return ok(t.exclamationToken,r)}!(W=1&&iT(t.declarations[0])}function pT(e){return _T(e.awaitModifier?15:13,xv(e.expression),We,e.expression)}function _T(e,t,r,n){return Ao(t)?t:fT(e,t,r,n,!0)||Le}function fT(t,r,n,i,a){var o=!!(2&t);if(r!==ct){var s=K>=2,c=!s&&V.downlevelIteration,l=V.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=bT(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&Q_(n,u.nextType,i,d)}if(u||s)return l?Zm(u&&u.yieldType):u&&u.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(p=Id(m,2))}else 402653316&p.flags&&(p=ct);if((f=p!==r)&&(K<1&&i&&(Xn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?Zm(Xe):Xe}if(!Yf(p)){if(i&&!_){var h=function(n,i){var a;if(i)return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(gT(t,0,r,void 0))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),y=h[0];ei(i,h[1]&&!!_S(p),y,so(p))}return f?l?Zm(Xe):Xe:void 0}var v=Pl(p,Ye);return f&&v?402653316&v.flags&&!V.noUncheckedIndexedAccess?Xe:Id(l?[v,Xe,We]:[v,Xe],2):128&t?Zm(v):v}kT(i,r,o)}function gT(e,t,r,n){if(!Ao(r)){var i=bT(r,e,n);return i&&i[M(t)]}}function mT(e,t,r){if(void 0===e&&(e=ct),void 0===t&&(t=ct),void 0===r&&(r=Ve),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=bu([e,t,r]),i=Wr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Wr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function hT(t){for(var r,n,i,a=0,o=t;a1)for(var _=0,f=i;_i)return!1;for(var u=0;u1)return ik(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(118===o.token),n)return ik(o,e.Diagnostics.implements_clause_already_seen);n=!0}UE(o)}})(t)||RE(t.typeParameters,r)}(t),FS(t),ZS(t,t.name),qT(e.getEffectiveTypeParameterDeclarations(t)),pS(t);var r=Ca(t),n=$s(r),i=_c(n),a=vs(r);$T(r),dS(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>a;case 49:return i>>>a;case 47:return i<1){var i=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&Xn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(t){if(266!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?Xn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}(t)}))}function lC(t){e.isPrivateIdentifier(t.name)&&Xn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function uC(t){t.body&&(EC(t.body),e.isGlobalScopeAugmentation(t)||IS(t)),m((function(){var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Xn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(bC(t,a))return;IE(t)||n||10!==t.name.kind||ok(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names);e.isIdentifier(t.name)&&ZS(t,t.name);pS(t);var o=Ca(t);if(512&o.flags&&!n&&o.declarations&&o.declarations.length>1&&P(t,e.shouldPreserveConstEnums(V))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n1&&!CC(n))for(var o=0,s=n;o1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function EC(t){if(t){var n=u;u=t,B=0,function(t){e.forEach(t.jsDoc,(function(r){var n=r.comment,i=r.tags;kC(n),e.forEach(i,(function(r){kC(r.comment),e.isInJSFile(t)&&EC(r)}))}));var n=t.kind;if(r)switch(n){case 267:case 262:case 264:case 261:r.throwIfCancellationRequested()}n>=242&&n<=258&&t.flowNode&&!Mh(t.flowNode)&&Zn(!1===V.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(n){case 166:return WD(t);case 167:return qD(t);case 170:return XD(t);case 169:return function(t){return e.isPrivateIdentifier(t.name)&&Xn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),XD(t)}(t);case 183:case 182:case 177:case 178:case 179:return GD(t);case 172:case 171:return function(t){QE(t)||VE(t.name),e.isMethodDeclaration(t)&&t.asteriskToken&&e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Xn(t.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),PS(t),e.hasSyntacticModifier(t,256)&&172===t.kind&&t.body&&Xn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Xn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),YD(t)}(t);case 173:return function(t){IE(t),e.forEachChild(t,EC)}(t);case 174:return ZD(t);case 175:case 176:return tS(t);case 181:return aS(t);case 180:return function(t){var r=function(e){switch(e.parent.kind){case 217:case 177:case 261:case 216:case 182:case 172:case 171:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=Wl(r),i=Xl(n);if(i){EC(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)n_(a);else if(i.parameterIndex>=0)L(n)&&i.parameterIndex===n.parameters.length-1?Xn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Q_(i.type,vs(n.parameters[i.parameterIndex]),t.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=r.parameters;s1){var n=_i(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=qs(r),a=e.getDeclarationsOfKind(r,166);if(!GT(a,[i],(function(e){return[e]})))for(var o=ao(r),s=0,c=a;s0),n.length>1&&Xn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=wS(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=wS(a.expression);o&&i.escapedText!==o.escapedText&&Xn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Xn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 335:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Xn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 351:case 344:case 345:return function(t){t.typeExpression||Xn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&WT(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),EC(t.typeExpression),qT(e.getEffectiveTypeParameterDeclarations(t))}(t);case 350:return function(e){EC(e.constraint);for(var t=0,r=e.typeParameters;t=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||ok(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 278:return vC(t);case 277:return function(t){if(!bC(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=311===t.parent.kind?t.parent:t.parent.parent;if(267!==r.kind||e.isAmbientModule(r)){!IE(t)&&e.hasEffectiveModifiers(t)&&ik(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&Q_(bD(t.expression),o_(n),t.expression),79===t.expression.kind){var i=t.expression,a=sa(i,67108863,!0,!0,t);a?(Hh(a,i),111551&Zi(2097152&a.flags?Yi(a):a)&&bD(t.expression)):bD(t.expression),e.getEmitDeclarations(V)&&xo(t.expression,!0)}else bD(t.expression);TC(r),16777216&t.flags&&!e.isEntityNameExpression(t.expression)&&ok(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||16777216&t.flags||(W>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?ok(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&ok(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Xn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Xn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 241:case 258:return void ck(t);case 282:(function(e){FS(e)})(t)}}(t),u=n}}function kC(t){e.isArray(t)&&e.forEach(t,(function(t){e.isJSDocLinkLike(t)&&EC(t)}))}function AC(t){e.isInJSFile(t)||ok(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function NC(t){var r=fi(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function FC(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=u;switch(u=t,B=0,t.kind){case 211:case 212:case 213:case 168:case 286:ob(t);break;case 216:case 217:case 172:case 171:!function(t){e.Debug.assert(172!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=eu(t);if($x(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Zl(Wl(t)),240===t.body.kind)EC(t.body);else{var i=JD(t.body),a=n&&jT(n,r);a&&X_(2==(3&r)?gS(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 175:case 176:tS(t);break;case 230:!function(t){e.forEach(t.members,EC),IS(t)}(t);break;case 166:!function(t){if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=qs(Ca(t)),n=If(r);if(n){var i=Ca(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags($s(i))){if(32768===n||65536===n){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:Ed($s(i)),id:Ed(r)});var a=wf(i,r,65536===n?Jt:jt),o=wf(i,r,65536===n?jt:Jt),s=r;_=r,Q_(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),_=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}}else Xn(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(t);break;case 285:!function(e){pv(e)}(t);break;case 284:!function(e){pv(e.openingElement),Hy(e.closingElement.tagName)?tv(e.closingElement):JD(e.closingElement.tagName),Xy(e)}(t)}u=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function wC(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),t.getFileCheckedModuleInfo&&((Vn=t.getFileCheckedModuleInfo(r.fileName)).currentFileName=r.fileName),function(r){var n=fi(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,V,t))return;!function(t){!!(16777216&t.flags)&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),LC),Pn.getDiagnostics()}(n)}finally{r=void 0}}function MC(){for(var e=0,t=g;e1||1===r.length&&r[0].declaration!==t}return!1}function uE(t){return!(!G||Jl(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function dE(t){return G&&Jl(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function pE(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Ca(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(ba(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function _E(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Ca(r);return n&&Xc(vs(n))||e.emptyArray}function fE(e){var t,r=e.id||0;return r<0||r>=hn.length?0:(null===(t=hn[r])||void 0===t?void 0:t.flags)||0}function gE(e){return aC(e.parent),fi(e).enumMemberValue}function mE(e){switch(e.kind){case 305:case 209:case 210:return!0}return!1}function hE(t){if(305===t.kind)return gE(t);var r=fi(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return gE(n)}}function yE(e){return!!(524288&e.flags)&&Cl(e,0).length>0}function vE(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=sa(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=sa(a,111551,!0,!0,r),l=c&&2097152&c.flags?Yi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=sa(a,788968,!0,!1,r);if(l&&l===u){var d=id(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=vs(l);if(p&&Ns(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=$s(u);return No(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:aD(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:aD(_,528)?e.TypeReferenceSerializationKind.BooleanType:aD(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:aD(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:aD(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:_g(_)?e.TypeReferenceSerializationKind.ArrayLikeType:aD(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:yE(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:$f(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function bE(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(132);var s=Ca(o),c=!s||133120&s.flags?je:lg(vs(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Dg(c)),oe.typeToTypeNode(c,r,1024|n,i)}function xE(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(132);var o=Wl(a);return oe.typeToTypeNode(Zl(o),r,1024|n,i)}function DE(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(132);var o=jg(qC(a));return oe.typeToTypeNode(o,r,1024|n,i)}function SE(t){return se.has(e.escapeLeadingUnderscores(t))}function TE(t,r){var n=fi(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Eo(a))}return bi(i,t.escapedText,3257279,void 0,void 0,!0)}function CE(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=TE(r);if(n)return wa(n).valueDeclaration}}}function EE(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Xp(vs(Ca(t)))}function kE(t,r){return function(t,r,n){var i=1024&t.flags?oe.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(vs(Ca(t)),t,r)}function AE(t){return t?(qn(t),e.getSourceFileOfNode(t).localJsxFactory||Br):Br}function NE(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,K),r.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,K)}function FE(t){var r=267===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=ua(r,r,void 0);if(n)return e.getDeclarationOfKind(n,311)}function wE(t,r){if((n&r)!==r&&V.importHelpers){var i=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(i,V)&&!(16777216&t.flags)){var a=function(t,r){l||(l=da(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Pe);return l}(i,t);if(a!==Pe)for(var o=r&~n,s=1;s<=4194304;s<<=1)if(o&s){var c=PE(s),u=mi(a.exports,e.escapeLeadingUnderscores(c),111551);u?524288&s?e.some(Gl(u),(function(e){return Ax(e)>3}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,4):1048576&s?e.some(Gl(u),(function(e){return Ax(e)>4}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,5):1024&s&&(e.some(Gl(u),(function(e){return Ax(e)>2}))||Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,3)):Xn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}n|=r}}}function PE(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function IE(t){return function(t){if(e.canHaveIllegalDecorators(t)&&e.some(t.illegalDecorators)&&!e.isArkTsDecorator(t,V))return ik(t,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(t)||!e.hasDecorators(t)&&(!e.isFunctionDeclaration(t)||e.isArkTsDecorator(t,V)))return!1;var r=e.getAllDecorators(t);if(8===e.getSourceFileOfNode(t).scriptKind){if(e.isTokenInsideBuilder(r,V)&&!e.isConstructorDeclaration(t))return!1;if(e.hasEtsStylesDecoratorNames(r,V)&&!e.isConstructorDeclaration(t))return!0}if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent,V)){for(var n=172===t.kind&&!e.nodeIsPresent(t.body)?e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload:e.Diagnostics.Decorators_are_not_valid_here,i=0,a=r;i=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(o=t.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Xn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var a=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([Xn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}function jE(t){var r=e.getSourceFileOfNode(t);return IE(t)||RE(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&ok(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&ok(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&BE(t)}function JE(t,r){return LE(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-1;return ak(n,i,e.skipTrivia(n.text,r.end)+1-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function UE(t){var r=t.types;if(LE(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return ak(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,zE)}function zE(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?ok(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):JE(t,t.typeArguments)}function VE(t){if(165!==t.kind)return!1;var r=t;return 225===r.expression.kind&&27===r.expression.operatorToken.kind&&ok(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function KE(t){if(t.asteriskToken){if(e.Debug.assert(261===t.kind||216===t.kind||172===t.kind),16777216&t.flags)return ok(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return ok(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function WE(e,t){return!!e&&ok(e,t)}function qE(e,t){return!!e&&ok(e,t)}function $E(t){if(ck(t))return!0;if(249===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!nk(r))switch(e.isEffectiveExternalModule(r,V)||Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),W){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(K>=4)break;default:Pn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!nk(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&174!==i.kind){e.Debug.assert(!(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return Pn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return ok(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(260===t.initializer.kind){var o=t.initializer;if(!tk(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1){n=248===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ik(o.declarations[1],n)}var c=s[0];if(c.initializer){var n=248===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return ok(c.name,n)}if(c.type)return ok(c,n=248===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function GE(t){if(t.parameters.length===(175===t.kind?1:2))return e.getThisParameter(t)}function HE(t,r){if(function(t){return e.isDynamicName(t)&&!ic(t)}(t))return ok(t,r)}function QE(t){if(jE(t))return!0;if(172===t.kind){if(208===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||133!==e.first(t.modifiers).kind))return ik(t,e.Diagnostics.Modifiers_cannot_appear_here);if(WE(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(qE(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return ak(t,t.end-1,1,e.Diagnostics._0_expected,"{")}if(KE(t))return!0}if(e.isClassLike(t.parent)){if(K<2&&e.isPrivateIdentifier(t.name))return ok(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return HE(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(172===t.kind&&!t.body)return HE(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(264===t.parent.kind)return HE(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(185===t.parent.kind)return HE(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function XE(t){return e.isStringOrNumericLiteralLike(t)||223===t.kind&&40===t.operator&&8===t.operand.kind}function YE(t){var r,n=t.initializer;if(n){var i=!(XE(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&XE(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&bD(t).flags)}(n)||111===n.kind||96===n.kind||(r=n,9===r.kind||223===r.kind&&40===r.operator&&9===r.operand.kind));if(!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))||t.type)return ok(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return ok(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}function ZE(t){if(79===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!nk(e.getSourceFileOfNode(r)))return Hn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r0}function ik(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!nk(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Pn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function ak(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!nk(c)&&(Pn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function ok(t,r,n,i,a){return!nk(e.getSourceFileOfNode(t))&&(Pn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function sk(t){return 264!==t.kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&278!==t.kind&&277!==t.kind&&270!==t.kind&&!e.hasSyntacticModifier(t,1027)&&ik(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ck(t){if(16777216&t.flags){if(!fi(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return fi(t).hasReportedStatementInAmbientContext=ik(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(240===t.parent.kind||268===t.parent.kind||311===t.parent.kind){var r=fi(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=ik(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function lk(t){if(32&t.numericLiteralFlags){var r=void 0;if(K>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,199)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,305)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return ok(n?t.parent:t,r,i)}}return function(t){var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;if(r||n)return;var i=+t.text;if(i<=Math.pow(2,53)-1)return;Yn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function uk(t){return!!e.forEach(t.elements,(function(t){if(t.isTypeOnly)return ik(t,276===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function dk(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Jm(r,t);if(a)return a;var o=Xc(t);if(o){var s=Rm(o,r);if(s)return Ef(r,e.map(s,(function(e){return[function(){return vs(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(E||(E={})),e.signatureHasRestParameter=L,e.signatureHasLiteralTypes=R}(d||(d={})),function(e){var t;function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||d)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,a,o){if(void 0===t||void 0===r)return t;var s,c=t.length;(void 0===a||a<0)&&(a=0),(void 0===o||o>c-a)&&(o=c-a);var l=-1,u=-1;a>0||o0||a=2&&(o=function(t,r){for(var n,i=0;io-n)&&(a=o-n),i(e,t,r,n,a)},e.visitLexicalEnvironment=a,e.visitParameterList=o,e.visitFunctionBody=c,e.visitIterationBody=l,e.visitEachChild=function(e,t,i,a,o,s){if(void 0===a&&(a=n),void 0===s&&(s=r),void 0!==e){var c=u[e.kind];return void 0===c?e:c(e,t,i,a,s,o)}};var u=((t={})[79]=function(t,r,n,i,a,o){return n.factory.updateIdentifier(t,i(t.typeArguments,r,e.isTypeNodeOrTypeParameterDeclaration))},t[164]=function(t,r,n,i,a,o){return n.factory.updateQualifiedName(t,a(t.left,r,e.isEntityName),a(t.right,r,e.isIdentifier))},t[165]=function(t,r,n,i,a,o){return n.factory.updateComputedPropertyName(t,a(t.expression,r,e.isExpression))},t[166]=function(t,r,n,i,a,o){return n.factory.updateTypeParameterDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),a(t.constraint,r,e.isTypeNode),a(t.default,r,e.isTypeNode))},t[167]=function(t,r,n,i,a,o){return n.factory.updateParameterDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isBindingName),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[168]=function(t,r,n,i,a,o){return n.factory.updateDecorator(t,a(t.expression,r,e.isExpression))},t[169]=function(t,r,n,i,a,o){return n.factory.updatePropertySignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isToken),a(t.type,r,e.isTypeNode))},t[170]=function(t,r,n,i,a,o){var s;return n.factory.updatePropertyDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),a(null!==(s=t.questionToken)&&void 0!==s?s:t.exclamationToken,o,e.isQuestionOrExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[171]=function(t,r,n,i,a,o){return n.factory.updateMethodSignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[172]=function(t,r,n,i,a,s){return n.factory.updateMethodDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isPropertyName),a(t.questionToken,s,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[174]=function(t,r,n,i,a,s){return n.factory.updateConstructorDeclaration(t,i(t.modifiers,r,e.isModifier),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[175]=function(t,r,n,i,a,s){return n.factory.updateGetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[176]=function(t,r,n,i,a,s){return n.factory.updateSetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[173]=function(e,t,r,n,i,a){return r.startLexicalEnvironment(),r.suspendLexicalEnvironment(),r.factory.updateClassStaticBlockDeclaration(e,c(e.body,t,r,i))},t[177]=function(t,r,n,i,a,o){return n.factory.updateCallSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[178]=function(t,r,n,i,a,o){return n.factory.updateConstructSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[179]=function(t,r,n,i,a,o){return n.factory.updateIndexSignature(t,i(t.modifiers,r,e.isModifier),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[180]=function(t,r,n,i,a,o){return n.factory.updateTypePredicateNode(t,a(t.assertsModifier,r,e.isAssertsKeyword),a(t.parameterName,r,e.isIdentifierOrThisTypeNode),a(t.type,r,e.isTypeNode))},t[181]=function(t,r,n,i,a,o){return n.factory.updateTypeReferenceNode(t,a(t.typeName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[182]=function(t,r,n,i,a,o){return n.factory.updateFunctionTypeNode(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[183]=function(t,r,n,i,a,o){return n.factory.updateConstructorTypeNode(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[184]=function(t,r,n,i,a,o){return n.factory.updateTypeQueryNode(t,a(t.exprName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[185]=function(t,r,n,i,a,o){return n.factory.updateTypeLiteralNode(t,i(t.members,r,e.isTypeElement))},t[186]=function(t,r,n,i,a,o){return n.factory.updateArrayTypeNode(t,a(t.elementType,r,e.isTypeNode))},t[187]=function(t,r,n,i,a,o){return n.factory.updateTupleTypeNode(t,i(t.elements,r,e.isTypeNode))},t[188]=function(t,r,n,i,a,o){return n.factory.updateOptionalTypeNode(t,a(t.type,r,e.isTypeNode))},t[189]=function(t,r,n,i,a,o){return n.factory.updateRestTypeNode(t,a(t.type,r,e.isTypeNode))},t[190]=function(t,r,n,i,a,o){return n.factory.updateUnionTypeNode(t,i(t.types,r,e.isTypeNode))},t[191]=function(t,r,n,i,a,o){return n.factory.updateIntersectionTypeNode(t,i(t.types,r,e.isTypeNode))},t[192]=function(t,r,n,i,a,o){return n.factory.updateConditionalTypeNode(t,a(t.checkType,r,e.isTypeNode),a(t.extendsType,r,e.isTypeNode),a(t.trueType,r,e.isTypeNode),a(t.falseType,r,e.isTypeNode))},t[193]=function(t,r,n,i,a,o){return n.factory.updateInferTypeNode(t,a(t.typeParameter,r,e.isTypeParameterDeclaration))},t[203]=function(t,r,n,i,a,o){return n.factory.updateImportTypeNode(t,a(t.argument,r,e.isTypeNode),a(t.assertions,r,e.isImportTypeAssertionContainer),a(t.qualifier,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode),t.isTypeOf)},t[301]=function(t,r,n,i,a,o){return n.factory.updateImportTypeAssertionContainer(t,a(t.assertClause,r,e.isAssertClause),t.multiLine)},t[200]=function(t,r,n,i,a,o){return n.factory.updateNamedTupleMember(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isIdentifier),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode))},t[194]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedType(t,a(t.type,r,e.isTypeNode))},t[196]=function(t,r,n,i,a,o){return n.factory.updateTypeOperatorNode(t,a(t.type,r,e.isTypeNode))},t[197]=function(t,r,n,i,a,o){return n.factory.updateIndexedAccessTypeNode(t,a(t.objectType,r,e.isTypeNode),a(t.indexType,r,e.isTypeNode))},t[198]=function(t,r,n,i,a,o){return n.factory.updateMappedTypeNode(t,a(t.readonlyToken,o,e.isReadonlyKeywordOrPlusOrMinusToken),a(t.typeParameter,r,e.isTypeParameterDeclaration),a(t.nameType,r,e.isTypeNode),a(t.questionToken,o,e.isQuestionOrPlusOrMinusToken),a(t.type,r,e.isTypeNode),i(t.members,r,e.isTypeElement))},t[199]=function(t,r,n,i,a,o){return n.factory.updateLiteralTypeNode(t,a(t.literal,r,e.isExpression))},t[201]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralType(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateLiteralTypeSpan))},t[202]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralTypeSpan(t,a(t.type,r,e.isTypeNode),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[204]=function(t,r,n,i,a,o){return n.factory.updateObjectBindingPattern(t,i(t.elements,r,e.isBindingElement))},t[205]=function(t,r,n,i,a,o){return n.factory.updateArrayBindingPattern(t,i(t.elements,r,e.isArrayBindingElement))},t[206]=function(t,r,n,i,a,o){return n.factory.updateBindingElement(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.propertyName,r,e.isPropertyName),a(t.name,r,e.isBindingName),a(t.initializer,r,e.isExpression))},t[207]=function(t,r,n,i,a,o){return n.factory.updateArrayLiteralExpression(t,i(t.elements,r,e.isExpression))},t[208]=function(t,r,n,i,a,o){return n.factory.updateObjectLiteralExpression(t,i(t.properties,r,e.isObjectLiteralElementLike))},t[209]=function(t,r,n,i,a,o){return e.isPropertyAccessChain(t)?n.factory.updatePropertyAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.name,r,e.isMemberName)):n.factory.updatePropertyAccessExpression(t,a(t.expression,r,e.isExpression),a(t.name,r,e.isMemberName))},t[210]=function(t,r,n,i,a,o){return e.isElementAccessChain(t)?n.factory.updateElementAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.argumentExpression,r,e.isExpression)):n.factory.updateElementAccessExpression(t,a(t.expression,r,e.isExpression),a(t.argumentExpression,r,e.isExpression))},t[211]=function(t,r,n,i,a,o){return e.isCallChain(t)?n.factory.updateCallChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression)):n.factory.updateCallExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[218]=function(t,r,n,i,a){return n.factory.updateEtsComponentExpression(t,a(t.expression,r,e.isExpression),i(t.arguments,r,e.isExpression),a(t.body,r,e.isBlock))},t[212]=function(t,r,n,i,a,o){return n.factory.updateNewExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[213]=function(t,r,n,i,a,o){return n.factory.updateTaggedTemplateExpression(t,a(t.tag,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),a(t.template,r,e.isTemplateLiteral))},t[214]=function(t,r,n,i,a,o){return n.factory.updateTypeAssertion(t,a(t.type,r,e.isTypeNode),a(t.expression,r,e.isExpression))},t[215]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedExpression(t,a(t.expression,r,e.isExpression))},t[216]=function(t,r,n,i,a,s){return n.factory.updateFunctionExpression(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[217]=function(t,r,n,i,a,s){return n.factory.updateArrowFunction(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),a(t.equalsGreaterThanToken,s,e.isEqualsGreaterThanToken),c(t.body,r,n,a))},t[219]=function(t,r,n,i,a,o){return n.factory.updateDeleteExpression(t,a(t.expression,r,e.isExpression))},t[220]=function(t,r,n,i,a,o){return n.factory.updateTypeOfExpression(t,a(t.expression,r,e.isExpression))},t[221]=function(t,r,n,i,a,o){return n.factory.updateVoidExpression(t,a(t.expression,r,e.isExpression))},t[222]=function(t,r,n,i,a,o){return n.factory.updateAwaitExpression(t,a(t.expression,r,e.isExpression))},t[223]=function(t,r,n,i,a,o){return n.factory.updatePrefixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[224]=function(t,r,n,i,a,o){return n.factory.updatePostfixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[225]=function(t,r,n,i,a,o){return n.factory.updateBinaryExpression(t,a(t.left,r,e.isExpression),a(t.operatorToken,o,e.isBinaryOperatorToken),a(t.right,r,e.isExpression))},t[226]=function(t,r,n,i,a,o){return n.factory.updateConditionalExpression(t,a(t.condition,r,e.isExpression),a(t.questionToken,o,e.isQuestionToken),a(t.whenTrue,r,e.isExpression),a(t.colonToken,o,e.isColonToken),a(t.whenFalse,r,e.isExpression))},t[227]=function(t,r,n,i,a,o){return n.factory.updateTemplateExpression(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateSpan))},t[228]=function(t,r,n,i,a,o){return n.factory.updateYieldExpression(t,a(t.asteriskToken,o,e.isAsteriskToken),a(t.expression,r,e.isExpression))},t[229]=function(t,r,n,i,a,o){return n.factory.updateSpreadElement(t,a(t.expression,r,e.isExpression))},t[230]=function(t,r,n,i,a,o){return n.factory.updateClassExpression(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[232]=function(t,r,n,i,a,o){return n.factory.updateExpressionWithTypeArguments(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode))},t[233]=function(t,r,n,i,a,o){return n.factory.updateAsExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[237]=function(t,r,n,i,a,o){return n.factory.updateSatisfiesExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[234]=function(t,r,n,i,a,o){return e.isOptionalChain(t)?n.factory.updateNonNullChain(t,a(t.expression,r,e.isExpression)):n.factory.updateNonNullExpression(t,a(t.expression,r,e.isExpression))},t[235]=function(t,r,n,i,a,o){return n.factory.updateMetaProperty(t,a(t.name,r,e.isIdentifier))},t[238]=function(t,r,n,i,a,o){return n.factory.updateTemplateSpan(t,a(t.expression,r,e.isExpression),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[240]=function(t,r,n,i,a,o){return n.factory.updateBlock(t,i(t.statements,r,e.isStatement))},t[242]=function(t,r,n,i,a,o){return n.factory.updateVariableStatement(t,i(t.modifiers,r,e.isModifier),a(t.declarationList,r,e.isVariableDeclarationList))},t[243]=function(t,r,n,i,a,o){return n.factory.updateExpressionStatement(t,a(t.expression,r,e.isExpression))},t[244]=function(t,r,n,i,a,o){return n.factory.updateIfStatement(t,a(t.expression,r,e.isExpression),a(t.thenStatement,r,e.isStatement,n.factory.liftToBlock),a(t.elseStatement,r,e.isStatement,n.factory.liftToBlock))},t[245]=function(t,r,n,i,a,o){return n.factory.updateDoStatement(t,l(t.statement,r,n,a),a(t.expression,r,e.isExpression))},t[246]=function(t,r,n,i,a,o){return n.factory.updateWhileStatement(t,a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[247]=function(t,r,n,i,a,o){return n.factory.updateForStatement(t,a(t.initializer,r,e.isForInitializer),a(t.condition,r,e.isExpression),a(t.incrementor,r,e.isExpression),l(t.statement,r,n,a))},t[248]=function(t,r,n,i,a,o){return n.factory.updateForInStatement(t,a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[249]=function(t,r,n,i,a,o){return n.factory.updateForOfStatement(t,a(t.awaitModifier,o,e.isAwaitKeyword),a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[250]=function(t,r,n,i,a,o){return n.factory.updateContinueStatement(t,a(t.label,r,e.isIdentifier))},t[251]=function(t,r,n,i,a,o){return n.factory.updateBreakStatement(t,a(t.label,r,e.isIdentifier))},t[252]=function(t,r,n,i,a,o){return n.factory.updateReturnStatement(t,a(t.expression,r,e.isExpression))},t[253]=function(t,r,n,i,a,o){return n.factory.updateWithStatement(t,a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[254]=function(t,r,n,i,a,o){return n.factory.updateSwitchStatement(t,a(t.expression,r,e.isExpression),a(t.caseBlock,r,e.isCaseBlock))},t[255]=function(t,r,n,i,a,o){return n.factory.updateLabeledStatement(t,a(t.label,r,e.isIdentifier),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[256]=function(t,r,n,i,a,o){return n.factory.updateThrowStatement(t,a(t.expression,r,e.isExpression))},t[257]=function(t,r,n,i,a,o){return n.factory.updateTryStatement(t,a(t.tryBlock,r,e.isBlock),a(t.catchClause,r,e.isCatchClause),a(t.finallyBlock,r,e.isBlock))},t[259]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclaration(t,a(t.name,r,e.isBindingName),a(t.exclamationToken,o,e.isExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[260]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclarationList(t,i(t.declarations,r,e.isVariableDeclaration))},t[261]=function(t,r,n,i,a,s){return n.factory.updateFunctionDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[262]=function(t,r,n,i,a,o){return n.factory.updateClassDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[263]=function(t,r,n,i,a,o){return n.factory.updateStructDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[264]=function(t,r,n,i,a,o){return n.factory.updateInterfaceDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isTypeElement))},t[265]=function(t,r,n,i,a,o){return n.factory.updateTypeAliasDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),a(t.type,r,e.isTypeNode))},t[266]=function(t,r,n,i,a,o){return n.factory.updateEnumDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.members,r,e.isEnumMember))},t[267]=function(t,r,n,i,a,o){return n.factory.updateModuleDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isModuleName),a(t.body,r,e.isModuleBody))},t[268]=function(t,r,n,i,a,o){return n.factory.updateModuleBlock(t,i(t.statements,r,e.isStatement))},t[269]=function(t,r,n,i,a,o){return n.factory.updateCaseBlock(t,i(t.clauses,r,e.isCaseOrDefaultClause))},t[270]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExportDeclaration(t,a(t.name,r,e.isIdentifier))},t[271]=function(t,r,n,i,a,o){return n.factory.updateImportEqualsDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.moduleReference,r,e.isModuleReference))},t[272]=function(t,r,n,i,a,o){return n.factory.updateImportDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.importClause,r,e.isImportClause),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[299]=function(t,r,n,i,a,o){return n.factory.updateAssertClause(t,i(t.elements,r,e.isAssertEntry),t.multiLine)},t[300]=function(t,r,n,i,a,o){return n.factory.updateAssertEntry(t,a(t.name,r,e.isAssertionKey),a(t.value,r,e.isExpression))},t[273]=function(t,r,n,i,a,o){return n.factory.updateImportClause(t,t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.namedBindings,r,e.isNamedImportBindings))},t[274]=function(t,r,n,i,a,o){return n.factory.updateNamespaceImport(t,a(t.name,r,e.isIdentifier))},t[280]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExport(t,a(t.name,r,e.isIdentifier))},t[275]=function(t,r,n,i,a,o){return n.factory.updateNamedImports(t,i(t.elements,r,e.isImportSpecifier))},t[276]=function(t,r,n,i,a,o){return n.factory.updateImportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[277]=function(t,r,n,i,a,o){return n.factory.updateExportAssignment(t,i(t.modifiers,r,e.isModifier),a(t.expression,r,e.isExpression))},t[278]=function(t,r,n,i,a,o){return n.factory.updateExportDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.exportClause,r,e.isNamedExportBindings),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[279]=function(t,r,n,i,a,o){return n.factory.updateNamedExports(t,i(t.elements,r,e.isExportSpecifier))},t[281]=function(t,r,n,i,a,o){return n.factory.updateExportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[283]=function(t,r,n,i,a,o){return n.factory.updateExternalModuleReference(t,a(t.expression,r,e.isExpression))},t[284]=function(t,r,n,i,a,o){return n.factory.updateJsxElement(t,a(t.openingElement,r,e.isJsxOpeningElement),i(t.children,r,e.isJsxChild),a(t.closingElement,r,e.isJsxClosingElement))},t[285]=function(t,r,n,i,a,o){return n.factory.updateJsxSelfClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[286]=function(t,r,n,i,a,o){return n.factory.updateJsxOpeningElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[287]=function(t,r,n,i,a,o){return n.factory.updateJsxClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression))},t[288]=function(t,r,n,i,a,o){return n.factory.updateJsxFragment(t,a(t.openingFragment,r,e.isJsxOpeningFragment),i(t.children,r,e.isJsxChild),a(t.closingFragment,r,e.isJsxClosingFragment))},t[291]=function(t,r,n,i,a,o){return n.factory.updateJsxAttribute(t,a(t.name,r,e.isIdentifier),a(t.initializer,r,e.isStringLiteralOrJsxExpression))},t[292]=function(t,r,n,i,a,o){return n.factory.updateJsxAttributes(t,i(t.properties,r,e.isJsxAttributeLike))},t[293]=function(t,r,n,i,a,o){return n.factory.updateJsxSpreadAttribute(t,a(t.expression,r,e.isExpression))},t[294]=function(t,r,n,i,a,o){return n.factory.updateJsxExpression(t,a(t.expression,r,e.isExpression))},t[295]=function(t,r,n,i,a,o){return n.factory.updateCaseClause(t,a(t.expression,r,e.isExpression),i(t.statements,r,e.isStatement))},t[296]=function(t,r,n,i,a,o){return n.factory.updateDefaultClause(t,i(t.statements,r,e.isStatement))},t[297]=function(t,r,n,i,a,o){return n.factory.updateHeritageClause(t,i(t.types,r,e.isExpressionWithTypeArguments))},t[298]=function(t,r,n,i,a,o){return n.factory.updateCatchClause(t,a(t.variableDeclaration,r,e.isVariableDeclaration),a(t.block,r,e.isBlock))},t[302]=function(t,r,n,i,a,o){return n.factory.updatePropertyAssignment(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[303]=function(t,r,n,i,a,o){return n.factory.updateShorthandPropertyAssignment(t,a(t.name,r,e.isIdentifier),a(t.objectAssignmentInitializer,r,e.isExpression))},t[304]=function(t,r,n,i,a,o){return n.factory.updateSpreadAssignment(t,a(t.expression,r,e.isExpression))},t[305]=function(t,r,n,i,a,o){return n.factory.updateEnumMember(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[311]=function(e,t,r,n,i,o){return r.factory.updateSourceFile(e,a(e.statements,t,r))},t[356]=function(t,r,n,i,a,o){return n.factory.updatePartiallyEmittedExpression(t,a(t.expression,r,e.isExpression))},t[357]=function(t,r,n,i,a,o){return n.factory.updateCommaListExpression(t,i(t.elements,r,e.isExpression))},t);function d(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}}(d||(d={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],_=[],f=new e.Map,g=[],m=[],h="",y=0,v=0,b=0,x=0,D=0,S=0,T=!1,C=0,E=0,k=0,A=0,N=0,F=0,w=!1,P=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,t){return!w||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&N>r)}(n,i,a))&&(j(),C=t,E=r,P=!1,I=!1,w=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(F=o,I=!0)),d()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(w&&(!T||y!==C||v!==E||b!==k||x!==A||D!==N||S!==F)){if(u(),y0&&(h+=String.fromCharCode.apply(void 0,m),m.length=0)}function U(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:_,names:g,mappings:h,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next:function(){for(;!r&&n=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;r=!!(32&o),a|=(31&o)<>=1):a>>=1,a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,_,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,h=e.getNormalizedAbsolutePath(r.file,g),y=t.getSourceFileLike(h),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!s(i))return t;return{fileName:v[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:h,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=function(e,t){for(var r=t;r=1)||98304&f.transformFlags||98304&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(u=e.append(u,m.argumentExpression)),n(t,f,m,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;if(t.level<1&&t.downlevelIteration)s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c);else if(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression)){s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c)}for(var _=0;_=1)if(65536&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),u=e.append(u,[g,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(_===p-1){m=t.context.factory.createArraySliceCall(s,_);n(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(s,_);n(t,f,m,f)}}}l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a);if(u)for(var h=0,y=u;h=0&&e.addRange(o,e.visitNodes(r.statements,E,e.isStatement,s,c+1-s));var l=e.mapDefined(a,$);c>=0?e.addRange(o,l):o=i(i(i([],o.slice(0,s),!0),l,!0),o.slice(s),!0);var u=c>=0?c+1:s;e.addRange(o,e.visitNodes(r.statements,E,e.isStatement,u)),o=d.mergeLexicalEnvironment(o,g());var p=d.createBlock(e.setTextRange(d.createNodeArray(o),r.statements),!0);return e.setTextRange(p,r),e.setOriginalNode(p,r),p}(r.body,r))}(r);case 170:return function(t,r){var n=16777216&t.flags||e.hasSyntacticModifier(t,256);if(n&&!e.hasDecorators(t))return;var i=e.getAllDecoratorsOfClassElement(t,r),a=J(t,r,i);if(n)return d.updatePropertyDeclaration(t,e.concatenate(a,d.createModifiersFromModifierFlags(2)),e.visitNode(t.name,E,e.isPropertyName),void 0,void 0,void 0);return d.updatePropertyDeclaration(t,e.concatenate(a,e.visitNodes(t.modifiers,O,e.isModifierLike)),W(t),void 0,void 0,e.visitNode(t.initializer,E))}(r,n);case 175:return Q(r,n);case 176:return X(r,n);case 172:return G(r,n);case 173:return e.visitEachChild(r,E,t);case 239:return r;case 179:return;default:return e.Debug.failBadSyntaxKind(r)}}(n,r)}))}}function I(t){return function(r){return C(r,(function(r){return function(t,r){switch(t.kind){case 302:case 303:case 304:return E(t);case 175:return Q(t,r);case 176:return X(t,r);case 172:return G(t,r);default:return e.Debug.failBadSyntaxKind(t)}}(r,t)}))}}function O(t){if(!e.isDecorator(t)&&!(117086&e.modifierToFlag(t.kind)||n&&94===t.kind))return t}function M(i){if(e.isStatement(i)&&e.hasSyntacticModifier(i,2))return d.createNotEmittedStatement(i);switch(i.kind){case 94:case 89:return n?void 0:i;case 124:case 122:case 123:case 127:case 162:case 86:case 137:case 147:case 102:case 146:case 186:case 187:case 188:case 189:case 185:case 180:case 166:case 132:case 158:case 135:case 153:case 149:case 145:case 115:case 154:case 183:case 182:case 184:case 181:case 190:case 191:case 192:case 194:case 195:case 196:case 197:case 198:case 199:case 179:case 270:return;case 265:case 264:return d.createNotEmittedStatement(i);case 262:return function(i){if(!(B(i)||n&&e.hasSyntacticModifier(i,1)))return d.updateClassDeclaration(i,e.visitNodes(i.modifiers,O,e.isModifier),i.name,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),e.visitNodes(i.members,P(i),e.isClassElement));var a=e.getProperties(i,!0,!0),o=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&105!==e.skipOuterExpressions(i.expression).kind&&(n|=64);e.classOrConstructorParameterIsDecorated(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);de(t)?n|=8:!function(t){return pe(t)&&e.hasSyntacticModifier(t,1024)}(t)?_e(t)&&(n|=16):n|=32;v<=1&&7&n&&(n|=128);return n}(i,a);128&o&&t.startLexicalEnvironment();var s=i.name||(5&o?d.getGeneratedNameForNode(i):void 0),c=e.getAllDecoratorsOfClass(i),l=J(i,i,c),u=128&o?e.elideNodes(d,i.modifiers):e.visitNodes(i.modifiers,O,e.isModifier),p=d.updateClassDeclaration(i,e.concatenate(l,u),s,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),j(i)),_=e.getEmitFlags(i);1&o&&(_|=32);e.setEmitFlags(p,_);var f=[p];if(128&o){var g=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),m=d.getInternalName(i),h=d.createPartiallyEmittedExpression(m);e.setTextRangeEnd(h,g.end),e.setEmitFlags(h,1536);var y=d.createReturnStatement(h);e.setTextRangePos(y,g.pos),e.setEmitFlags(y,1920),f.push(y),e.insertStatementsAfterStandardPrologue(f,t.endLexicalEnvironment());var b=d.createImmediatelyInvokedArrowFunction(f);e.setEmitFlags(b,33554432);var x=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,b)]));e.setOriginalNode(x,i),e.setCommentRange(x,i),e.setSourceMapRange(x,e.moveRangePastDecorators(i)),e.startOnNewLine(x),f=[x]}8&o?fe(f,i):(128&o||2&o)&&(32&o?f.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&o&&f.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0))));f.length>1&&(f.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(p,4194304|e.getEmitFlags(p)));return e.singleOrMany(f)}(i);case 230:return function(t){var r=e.getAllDecoratorsOfClass(t),n=J(t,t,r);return d.updateClassExpression(t,n,t.name,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),B(t)?j(t):e.visitNodes(t.members,P(t),e.isClassElement))}(i);case 297:return function(r){if(118===r.token)return;return e.visitEachChild(r,E,t)}(i);case 232:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,E,e.isLeftHandSideExpression),void 0)}(i);case 208:return function(t){return d.updateObjectLiteralExpression(t,e.visitNodes(t.properties,I(t),e.isObjectLiteralElement))}(i);case 174:case 170:case 172:case 175:case 176:case 173:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 261:return function(r){if(!q(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,O,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([]));if(de(r)){var i=[n];return fe(i,r),i}return n}(i);case 216:return function(r){if(!q(r))return d.createOmittedExpression();var n=d.updateFunctionExpression(r,e.visitNodes(r.modifiers,O,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([]));return n}(i);case 217:return function(r){var n=d.updateArrowFunction(r,e.visitNodes(r.modifiers,O,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,E,t));return n}(i);case 167:return function(t){if(e.parameterIsThisKeyword(t))return;var r=d.updateParameterDeclaration(t,e.elideNodes(d,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(i);case 215:return function(r){var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,E,t)}(i);case 214:case 233:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 237:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 211:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(i);case 212:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(i);case 213:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,E,e.isExpression),void 0,e.visitNode(t.template,E,e.isExpression))}(i);case 234:return function(t){var r=e.visitNode(t.expression,E,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(i);case 266:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(y)}(t))return d.createNotEmittedStatement(t);var n=[],i=2,s=ne(n,t);s&&(b===e.ModuleKind.System&&o===r||(i|=512));var c=he(t),l=ye(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(a,t,!1,!0):d.getLocalName(t,!1,!0),p=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(ee(t)){var f=d.getLocalName(t,!1,!0);p=d.createAssignment(f,p)}var m=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,c)],void 0,function(t,r){var n=a;a=r;var i=[];_();var o=e.map(t.members,Z);return e.insertStatementsAfterStandardPrologue(i,g()),e.addRange(i,o),a=n,d.createBlock(e.setTextRange(d.createNodeArray(i),t.members),!0)}(t,l)),void 0,[p]));e.setOriginalNode(m,t),s&&(e.setSyntheticLeadingComments(m,void 0),e.setSyntheticTrailingComments(m,void 0));return e.setTextRange(m,t),e.addEmitFlags(m,i),n.push(m),n.push(d.createEndOfDeclarationMarker(t)),n}(i);case 242:return function(r){if(de(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,Y))),r)}return e.visitEachChild(r,E,t)}(i);case 259:return function(t){var r=d.updateVariableDeclaration(t,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));t.type&&e.setTypeNode(r.name,t.type);return r}(i);case 267:return ie(i);case 271:return ue(i);case 285:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(i);case 286:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(i);default:return e.visitEachChild(i,E,t)}}function L(r){var n=e.getStrictOptionValue(y,"alwaysStrict")&&!(e.isExternalModule(r)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function R(e){return!!(8192&e.transformFlags)}function B(t){return e.hasDecorators(t)||e.some(t.typeParameters)||e.some(t.heritageClauses,R)||e.some(t.members,R)}function j(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a=2,S=y||v||b,T=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=T(t,n),1===t)return function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&C&&33554432&p.getNodeCheckFlags(t)){var n=p.getReferencedValueDeclaration(t);if(n){var i=E[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}return}(t)||t}(t);case 109:return function(t){if(2&C&&F){var n=F.facts,i=F.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n);return n};var C,E,k,A,N=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=M.get(i.id);if(a){var o=F,s=P;return F=a,P=a,N(t,r,n),F=o,void(P=s)}}switch(r.kind){case 216:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 261:case 174:o=F,s=P;return F=void 0,P=void 0,N(t,r,n),F=o,void(P=s);case 175:case 176:case 172:case 170:o=F,s=P;return P=F,F=void 0,N(t,r,n),F=o,void(P=s);case 165:o=F,s=P;return F=P,P=void 0,N(t,r,n),F=o,void(P=s)}N(t,r,n)};var F,w,P,I,O=[],M=new e.Map;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||!S)return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function L(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 128:return b?void 0:n;case 262:return function(e){return re(e,ne)}(n);case 230:return function(e){return re(e,ie)}(n);case 173:return function(r){if(!v)return e.visitEachChild(r,L,t);return}(n);case 170:return $(n);case 242:return function(r){var n=A;A=[];var a=e.visitEachChild(r,L,t),o=e.some(A)?i([a],A,!0):a;return A=n,o}(n);case 80:return function(t){if(!v)return t;if(e.isStatement(t.parent))return t;return e.setOriginalNode(r.createIdentifier(""),t)}(n);case 209:return function(n){if(v&&e.isPrivateIdentifier(n.name)){var i=be(n.name);if(i)return e.setTextRange(e.setOriginalNode(G(i,n.expression),n),n)}if(D&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)return de(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,L,t)}(n);case 210:return function(n){if(D&&e.isSuperProperty(n)&&I&&F){var i=F.classConstructor,a=F.superClassReference;if(1&F.facts)return de(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,L,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,L,t)}(n);case 223:case 224:return Q(n,!1);case 225:return Z(n,!1);case 211:return function(n){if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.expression)){var a=r.createCallBinding(n.expression,s,f),o=a.thisArg,c=a.target;return e.isCallChain(n)?r.updateCallChain(n,r.createPropertyAccessChain(e.visitNode(c,L),n.questionDotToken,"call"),void 0,void 0,i([e.visitNode(o,L,e.isExpression)],e.visitNodes(n.arguments,L,e.isExpression),!0)):r.updateCallExpression(n,r.createPropertyAccessExpression(e.visitNode(c,L),"call"),void 0,i([e.visitNode(o,L,e.isExpression)],e.visitNodes(n.arguments,L,e.isExpression),!0))}if(D&&e.isSuperProperty(n.expression)&&I&&(null==F?void 0:F.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(n.expression,L,e.isExpression),F.classConstructor,e.visitNodes(n.arguments,L,e.isExpression));return e.setOriginalNode(l,n),e.setTextRange(l,n),l}return e.visitEachChild(n,L,t)}(n);case 243:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,B,e.isExpression))}(n);case 213:return function(n){if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.tag)){var i=r.createCallBinding(n.tag,s,f),a=i.thisArg,o=i.target;return r.updateTaggedTemplateExpression(n,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(o,L),"bind"),void 0,[e.visitNode(a,L,e.isExpression)]),void 0,e.visitNode(n.template,L,e.isTemplateLiteral))}if(D&&e.isSuperProperty(n.tag)&&I&&(null==F?void 0:F.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(n.tag,L,e.isExpression),F.classConstructor,[]);return e.setOriginalNode(c,n),e.setTextRange(c,n),r.updateTaggedTemplateExpression(n,c,void 0,e.visitNode(n.template,L,e.isTemplateLiteral))}return e.visitEachChild(n,L,t)}(n);case 247:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,B,e.isForInitializer),e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,B,e.isExpression),e.visitIterationBody(n.statement,L,t))}(n);case 261:case 216:case 174:case 172:case 175:case 176:return K(void 0,R,n);default:return R(n)}}function R(r){return e.visitEachChild(r,L,t)}function B(e){switch(e.kind){case 223:case 224:return Q(e,!0);case 225:return Z(e,!0);default:return L(e)}}function j(n){switch(n.kind){case 297:return e.visitEachChild(n,j,t);case 232:return function(n){if(4&((null==F?void 0:F.facts)||0)){var i=r.createTempVariable(s,!0);return pe().superClassReference=i,r.updateExpressionWithTypeArguments(n,r.createAssignment(i,e.visitNode(n.expression,L,e.isExpression)),void 0)}return e.visitEachChild(n,L,t)}(n);default:return L(n)}}function J(t){switch(t.kind){case 208:case 207:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,Se,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,Te,e.isObjectLiteralElementLike))}(t);default:return L(t)}}function U(t){switch(t.kind){case 174:return function(e){if(w)return se(e,w);return R(e)}(t);case 175:case 176:case 172:return K(void 0,V,t);case 170:return K(void 0,$,t);case 165:return function(t){var n=e.visitNode(t.expression,L,e.isExpression);e.some(k)&&(n=e.isParenthesizedExpression(n)?r.updateParenthesizedExpression(n,r.inlineExpressions(i(i([],k,!0),[n.expression],!1))):r.inlineExpressions(i(i([],k,!0),[n],!1)),k=void 0);return r.updateComputedPropertyName(t,n)}(t);case 239:return t;default:return L(t)}}function z(t){switch(t.kind){case 170:return q(t);case 175:case 176:return U(t);default:e.Debug.assertMissingNode(t,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function V(n){if(e.Debug.assert(!e.hasDecorators(n)),!v||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,U,t);var i=be(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=be(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}}(n);a&&fe().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(function(t){return e.isModifier(t)&&!e.isStaticModifier(t)&&!e.isAccessorModifier(t)})),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,L,t),void 0,e.visitFunctionBody(n.body,L,t))))}function K(e,t,r){var n=I;I=e;var i=t(r);return I=n,i}function W(n){if(!y)return e.visitEachChild(n,U,t);var i=function(t,n){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,L,e.isExpression),a=e.skipPartiallyEmittedExpressions(i),o=e.isSimpleInlineableExpression(a);if(!(e.isAssignmentExpression(a)&&e.isGeneratedIdentifier(a.left))&&!o&&n){var c=r.getGeneratedNameForNode(t);return 524288&p.getNodeCheckFlags(t)?d(c):s(c),r.createAssignment(c,i)}return o||e.isIdentifier(a)?void 0:i}}(n.name,!!n.initializer||g);if(i&&fe().push(i),e.isStatic(n)&&!v){var a=le(n,r.createThis());if(a){var o=r.createClassStaticBlockDeclaration(r.createBlock([a]));return e.setOriginalNode(o,n),e.setCommentRange(o,n),e.setCommentRange(a,{pos:-1,end:-1}),e.setSyntheticLeadingComments(a,void 0),e.setSyntheticTrailingComments(a,void 0),o}}}function q(n){return e.Debug.assert(!e.hasDecorators(n),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(n)?function(n){if(v){var i=be(n.name);return e.Debug.assert(i,"Undeclared private name for property declaration."),i.isValid?void 0:n}return m&&!e.isStatic(n)?r.updatePropertyDeclaration(n,e.visitNodes(n.modifiers,L,e.isModifierLike),n.name,void 0,void 0,void 0):e.visitEachChild(n,L,t)}(n):W(n)}function $(t){return b&&e.isAutoAccessorPropertyDeclaration(t)?function(t){e.Debug.assertEachNode(t.modifiers,e.isModifier);var n=e.getCommentRange(t),i=e.getSourceMapRange(t),a=t.name,o=a,c=a;if(e.isComputedPropertyName(a)&&!e.isSimpleInlineableExpression(a.expression)){var l=r.createTempVariable(s);e.setSourceMapRange(l,a.expression);var u=e.visitNode(a.expression,L,e.isExpression),d=r.createAssignment(l,u);e.setSourceMapRange(d,a.expression),o=r.updateComputedPropertyName(a,r.inlineExpressions([d,l])),c=r.updateComputedPropertyName(a,l)}var p=e.createAccessorPropertyBackingField(r,t,t.modifiers,t.initializer);e.setOriginalNode(p,t),e.setEmitFlags(p,1536),e.setSourceMapRange(p,i);var _=e.createAccessorPropertyGetRedirector(r,t,t.modifiers,o);e.setOriginalNode(_,t),e.setCommentRange(_,n),e.setSourceMapRange(_,i);var f=e.createAccessorPropertySetRedirector(r,t,t.modifiers,c);return e.setOriginalNode(f,t),e.setEmitFlags(f,1536),e.setSourceMapRange(f,i),e.visitArray([p,_,f],z,e.isClassElement)}(t):q(t)}function G(t,r){return H(t,e.visitNode(r,L,e.isExpression))}function H(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function Q(n,i){if(45===n.operator||46===n.operator){var a=e.skipParentheses(n.operand);if(v&&e.isPrivateIdentifierPropertyAccessExpression(a)){var o;if(o=be(a.name)){var c=X(e.visitNode(a.expression,L,e.isExpression)),l=c.readExpression,u=c.initializeExpression,d=G(o,l),p=e.isPrefixUnaryExpression(n)||i?void 0:r.createTempVariable(s);return d=ee(o,u||l,d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,s,p),63),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}else if(D&&e.isSuperProperty(a)&&I&&F){var _=F.classConstructor,f=F.superClassReference;if(1&F.facts){d=de(a);return e.isPrefixUnaryExpression(n)?r.updatePrefixUnaryExpression(n,d):r.updatePostfixUnaryExpression(n,d)}if(_&&f){var g=void 0,m=void 0;if(e.isPropertyAccessExpression(a)?e.isIdentifier(a.name)&&(m=g=r.createStringLiteralFromNode(a.name)):e.isSimpleInlineableExpression(a.argumentExpression)?m=g=a.argumentExpression:(m=r.createTempVariable(s),g=r.createAssignment(m,e.visitNode(a.argumentExpression,L,e.isExpression))),g&&m){d=r.createReflectGetCall(f,m,_);e.setTextRange(d,a);p=i?void 0:r.createTempVariable(s);return d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,s,p),d=r.createReflectSetCall(f,g,d,_),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}}}return e.visitEachChild(n,L,t)}function X(t){var n=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:n,initializeExpression:void 0};var i=r.createTempVariable(s);return{readExpression:i,initializeExpression:r.createAssignment(i,n)}}function Y(t){if(v){F&&M.set(e.getOriginalNodeId(t),F),l();var n=K(t,(function(t){return e.visitNodes(t,L,e.isStatement)}),t.body.statements);n=r.mergeLexicalEnvironment(n,c());var i=r.createImmediatelyInvokedArrowFunction(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.addEmitFlags(i,2),i}}function Z(n,a){if(e.isDestructuringAssignment(n)){var o=k;k=void 0,n=r.updateBinaryExpression(n,e.visitNode(n.left,J),n.operatorToken,e.visitNode(n.right,L));var c=e.some(k)?r.inlineExpressions(e.compact(i(i([],k,!0),[n],!1))):n;return k=o,c}if(e.isAssignmentExpression(n))if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.left)){var l=be(n.left.name);if(l)return e.setTextRange(e.setOriginalNode(ee(l,n.left.expression,n.right,n.operatorToken.kind),n),n)}else if(D&&e.isSuperProperty(n.left)&&I&&F){var u=F.classConstructor,d=F.superClassReference;if(1&F.facts)return r.updateBinaryExpression(n,de(n.left),n.operatorToken,e.visitNode(n.right,L,e.isExpression));if(u&&d){var p=e.isElementAccessExpression(n.left)?e.visitNode(n.left.argumentExpression,L,e.isExpression):e.isIdentifier(n.left.name)?r.createStringLiteralFromNode(n.left.name):void 0;if(p){var _=e.visitNode(n.right,L,e.isExpression);if(e.isCompoundAssignment(n.operatorToken.kind)){var f=p;e.isSimpleInlineableExpression(p)||(f=r.createTempVariable(s),p=r.createAssignment(f,p));var g=r.createReflectGetCall(d,f,u);e.setOriginalNode(g,n.left),e.setTextRange(g,n.left),_=r.createBinaryExpression(g,e.getNonAssignmentOperatorForCompoundAssignment(n.operatorToken.kind),_),e.setTextRange(_,n)}var m=a?void 0:r.createTempVariable(s);return m&&(_=r.createAssignment(m,_),e.setTextRange(m,n)),_=r.createReflectSetCall(d,p,_,u),e.setOriginalNode(_,n),e.setTextRange(_,n),m&&(_=r.createComma(_,m),e.setTextRange(_,n)),_}}}return v&&function(t){return e.isPrivateIdentifier(t.left)&&102===t.operatorToken.kind}(n)?function(r){var n=be(r.left);if(n){var i=e.visitNode(r.right,L,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(n.brandCheckIdentifier,i),r)}return e.visitEachChild(r,L,t)}(n):e.visitEachChild(n,L,t)}function ee(n,i,a,o){if(i=e.visitNode(i,L,e.isExpression),a=e.visitNode(a,L,e.isExpression),e.isCompoundAssignment(o)){var s=X(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(H(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function te(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function re(r,n){var i=w,a=k;if(w=r,k=void 0,O.push(F),F=void 0,v){var o=e.getNameOfDeclaration(r);o&&e.isIdentifier(o)&&(_e().className=o);var s=te(r);e.some(s)&&(_e().weakSetName=ye("instances",s[0].name))}var c=function(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i=0?(m=y+1,b=i(i(i([],b.slice(0,h),!0),e.visitNodes(a.body.statements,L,e.isStatement,h,m-h),!0),b.slice(h),!0)):h>=0&&(m=h));f&&b.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var x=0;if(null==a?void 0:a.body)if(g)b=b.filter((function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)}));else{for(var D=0,S=a.body.statements;D0){var C=e.visitNodes(a.body.statements,L,e.isStatement,m,x);if(y>=0)e.addRange(b,C);else{var E=h;f&&E++,b=i(i(i([],b.slice(0,E),!0),C,!0),b.slice(E),!0)}m+=x}}var k=r.createThis();(function(t,n,i){if(!v||!e.some(n))return;var a=_e().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))})(b,p,k),ce(b,d,k),a&&e.addRange(b,e.visitNodes(a.body.statements,N,e.isStatement,m));if(0===(b=r.mergeLexicalEnvironment(b,c())).length&&!a)return;var A=(null==a?void 0:a.body)&&a.body.statements.length>=b.length&&null!==(l=a.body.multiLine)&&void 0!==l?l:b.length>0;return e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(b),a?a.body.statements:n.members),A),a?a.body:void 0);function N(t){if(!g||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a))return L(t)}}(a,n,s);return d?n?(e.Debug.assert(l),r.updateConstructorDeclaration(n,void 0,l,d)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,null!=l?l:[],d),n||a),n)):n}function ce(t,r,n){for(var i=0,a=r;i=0;--r){var n,i=O[r];if(i)if(i.privateIdentifierEnvironment)if(n=e(i.privateIdentifierEnvironment,t))return n}}function De(n){var i=r.getGeneratedNameForNode(n),a=be(n.name);if(!a)return e.visitEachChild(n,L,t);var o=n.expression;return(e.isThisProperty(n)||e.isSuperProperty(n)||!e.isSimpleCopiableExpression(n.expression))&&(o=r.createTempVariable(s,!0),fe().push(r.createBinaryExpression(o,63,e.visitNode(n.expression,L,e.isExpression)))),r.createAssignmentTargetWrapper(i,ee(a,o,i,63))}function Se(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=De(n);else if(D&&e.isSuperProperty(n)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)i=de(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,L,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,J)}function Te(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=De(n);else if(D&&e.isSuperProperty(n)&&I&&F){var a=F.classConstructor,o=F.superClassReference;if(1&F.facts)i=de(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,L,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,L)):i:e.visitNode(t.initializer,J,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,J,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,L)}}}(d||(d={})),function(e){e.createRuntimeTypeSerializer=function(t){var r,n,i=t.hoistVariableDeclaration,a=t.getEmitResolver(),o=t.getCompilerOptions(),s=e.getEmitScriptTarget(o),c=e.getStrictOptionValue(o,"strictNullChecks");return{serializeTypeNode:function(e,t){return l(e,_,t)},serializeTypeOfNode:function(e,t){return l(e,u,t)},serializeParameterTypesOfNode:function(e,t,r){return l(e,d,t,r)},serializeReturnTypeOfNode:function(e,t){return l(e,p,t)}};function l(e,t,i,a){var o=r,s=n;r=e.currentLexicalScope,n=e.currentNameScope;var c=void 0===a?t(i):t(i,a);return r=o,n=s,c}function u(t){switch(t.kind){case 170:case 167:return _(t.type);case 176:case 175:return _(function(t){var r=a.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 262:case 230:case 172:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function d(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&175===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s1&&(c.push(n.createEndOfDeclarationMarker(i)),e.setEmitFlags(c[0],4194304|e.getEmitFlags(c[0])));return e.singleOrMany(c)}(i);case 230:return function(t){return n.updateClassExpression(t,e.visitNodes(t.modifiers,d,e.isModifier),t.name,void 0,e.visitNodes(t.heritageClauses,p,e.isHeritageClause),e.visitNodes(t.members,p,e.isClassElement))}(i);case 174:return function(t){return n.updateConstructorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock))}(i);case 172:return function(t){return m(n.updateMethodDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),t.asteriskToken,e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(i);case 176:return function(t){return m(n.updateSetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock)),t)}(i);case 175:return function(t){return m(n.updateGetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(i);case 170:return function(t){if(16777216&t.flags||e.hasSyntacticModifier(t,2))return;return m(n.updatePropertyDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression)),t)}(i);case 167:return function(t){var r=n.updateParameterDeclaration(t,e.elideNodes(n,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,p,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(i);default:return e.visitEachChild(i,p,t)}}function _(e){return!!(536870912&e.transformFlags)}function f(t){return e.some(t,_)}function g(t,r){var a=[];return y(a,t,!1),y(a,t,!0),function(t){for(var r=0,n=t.members;r0?e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)?n.createVoidZero():n.createNull():void 0,u=a().createDecorateHelper(i,o,s,c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastModifiers(r)),u}}function b(t){return e.visitNode(t.expression,p,e.isExpression)}function x(t,r){var n;if(t){n=[];for(var i=0,o=t;i=2&&6144&_.getNodeCheckFlags(r)&&!!(3&~e.getFunctionFlags(u))){if(K(),o.size){var d=n(c,_,r,o);h[e.getNodeId(d)]=!0;var p=l.statements.slice();e.insertStatementsAfterStandardPrologue(p,[d]),l=c.updateBlock(l,p)}s&&(4096&_.getNodeCheckFlags(r)?e.addEmitHelper(l,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(r)&&e.addEmitHelper(l,e.asyncSuperHelper))}return o=i,s=a,l}function z(t){u();var r=e.getOriginalNode(t,e.isFunctionLike).type,i=g<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=_.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}return}(r):void 0,p=217===t.kind,f=!!(8192&_.getNodeCheckFlags(t)),m=a;a=new e.Set;for(var y=0,v=t.parameters;y=2&&6144&_.getNodeCheckFlags(t);if(N&&(K(),o.size)){var F=n(c,_,t,o);h[e.getNodeId(F)]=!0,e.insertStatementsAfterStandardPrologue(k,[F])}var w=c.createBlock(k,!0);e.setTextRange(w,t.body),N&&s&&(4096&_.getNodeCheckFlags(t)?e.addEmitHelper(w,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(t)&&e.addEmitHelper(w,e.asyncSuperHelper)),b=w}return a=m,p||(o=x,s=D),b}function V(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function K(){1&r||(r|=1,t.enableSubstitution(211),t.enableSubstitution(209),t.enableSubstitution(210),t.enableEmitNotification(262),t.enableEmitNotification(172),t.enableEmitNotification(175),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(242))}function W(t){return 107===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function q(t){return 107===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n}(d||(d={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&_&&function(e){var t=e.kind;return 262===t||174===t||172===t||175===t||176===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==x){var a=x;return x=i,d(t,r,n),void(x=a)}}else if(_&&S[e.getNodeId(r)]){a=x;return x=0,d(t,r,n),void(x=a)}d(t,r,n)};var p=t.onSubstituteNode;t.onSubstituteNode=function(t,n){if(n=p(t,n),1===t&&x)return function(t){switch(t.kind){case 209:return Q(t);case 210:return X(t);case 211:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?Q(n):X(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n);return n};var _,f,g,m,h,y,v,b=!1,x=0,D=0,S=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;m=n;var i=function(n){var i=T(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);b=!1;var a=e.visitEachChild(n,k,t),o=e.concatenate(a.statements,h&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(h))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return C(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),m=void 0,h=void 0,i}));function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function E(t){h=e.append(h,r.createVariableDeclaration(t))}function k(e){return P(e,!1)}function A(e){return P(e,!0)}function N(e){if(133!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return D!==(D&~e|t)}(r,n)){var i=T(r,n),a=e(t);return C(i),a}return e(t)}function w(r){return e.visitEachChild(r,k,t)}function P(a,o){if(!(128&a.transformFlags))return a;switch(a.kind){case 222:return function(i){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,k,e.isExpression))),i),i);return e.visitEachChild(i,k,t)}(a);case 228:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),k,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,L(i.expression?e.visitNode(i.expression,k,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,k,t)}(a);case 252:return function(n){if(2&f&&1&f)return r.updateReturnStatement(n,L(n.expression?e.visitNode(n.expression,k,e.isExpression):r.createVoidZero()));return e.visitEachChild(n,k,t)}(a);case 255:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 249===i.kind&&i.awaitModifier?M(i,n):r.restoreEnclosingLabel(e.visitNode(i,k,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,k,t)}(a);case 208:return function(i){if(65536&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(g){1&_||(_|=1,t.enableSubstitution(211),t.enableSubstitution(209),t.enableSubstitution(210),t.enableEmitNotification(262),t.enableEmitNotification(172),t.enableEmitNotification(175),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(242));var m=e.createSuperAccessVariableStatement(r,c,i,y);S[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var h=r.updateBlock(i.body,s);return g&&v&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=d,v=p,h}function G(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,k,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,k)),e.addRange(s,H(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function H(n,i){for(var a=!1,o=0,s=i.parameters;o0){var l=e.flattenDestructuringBinding(c,k,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),_=e.visitNode(c.initializer,k,e.isExpression),f=r.createAssignment(p,_);d=r.createExpressionStatement(f);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){p=r.cloneNode(c.name);e.setTextRange(p,c.name),e.setEmitFlags(p,48);_=e.visitNode(c.initializer,k,e.isExpression);e.addEmitFlags(_,1584);f=r.createAssignment(p,_);e.setTextRange(f,c),e.setEmitFlags(f,1536);var g=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(g,c),e.setEmitFlags(g,1953);var m=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(m,g);e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else if(65536&c.transformFlags){a=!0;l=e.flattenDestructuringBinding(c,k,t,1,r.getGeneratedNameForNode(c),!1,!0);if(e.some(l)){u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}}return n}function Q(t){return 107===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function X(t){return 107===t.expression.kind?(n=t.argumentExpression,i=t,4096&x?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(d||(d={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(i){return 64&i.transformFlags?298===i.kind?function(i){if(!i.variableDeclaration)return r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock));return e.visitEachChild(i,n,t)}(i):e.visitEachChild(i,n,t):i}}}(d||(d={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(!(32&a.transformFlags))return a;switch(a.kind){case 211:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 209:case 210:if(e.isOptionalChain(a)){u=c(a,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(a,i,t);case 225:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a));return e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 219:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 215:return a(t,s,l);case 209:case 210:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=209===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 211:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),u=c.expression,d=c.chain,p=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,g=r.restoreOuterExpressions(u,f,8);e.isSimpleCopiableExpression(f)||(f=r.createTempVariable(n),g=r.createAssignment(f,g));for(var m,h=f,y=0;y1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),g=[t,r];if(i&&g.push(E(i.initializer)),5===s.jsx){var m=e.getOriginalNode(n);if(m&&e.isSourceFile(m)){void 0===i&&g.push(a.createVoidZero()),g.push(f?a.createTrue():a.createFalse());var h=e.getLineAndCharacterOfPosition(m,d.pos);g.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(h.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(h.character+1))])),g.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression(l(f),void 0,g),d);return u&&e.startOnNewLine(y),y}function b(t,o,c,l){var d=N(t),_=t.attributes.properties,f=e.length(_)?S(_):a.createNull(),g=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):u("createElement"),m=e.createExpressionForJsxElement(a,g,d,f,e.mapDefined(o,p),l);return c&&e.startOnNewLine(m),m}function x(e,t,r,n){var i;if(t&&t.length){var o=function(e){var t=h(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return v(u("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function D(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,p),t,c);return o&&e.startOnNewLine(l),l}function S(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return e.map(t,(function(t){return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,d,e.isExpression))):C(t);var n}))})));r&&n.push(r);return n}(t,r)):function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,T):a.createObjectLiteralExpression(e.map(t,C))})));e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression());r&&n.push(a.createObjectLiteralExpression([r]));return e.singleOrUndefined(n)||o().createAssignHelper(n)}(t,r)}function T(t){return e.visitNode(t.expression,d,e.isExpression)}function C(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=E(t.initializer);return a.createPropertyAssignment(r,n)}function E(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=A(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}var o,s;return 294===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,d,e.isExpression):e.isJsxElement(t)?f(t,!1):e.isJsxSelfClosingElement(t)?g(t,!1):e.isJsxFragment(t)?m(t,!1):e.Debug.failBadSyntaxKind(t)}function k(e,t){var r=A(t);return void 0===e?r:e+" "+r}function A(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function N(t){if(284===t.kind)return N(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function F(t){var r=e.visitNode(t.expression,d,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(d||(d={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){return 512&a.transformFlags?225===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else if(e.isPropertyAccessExpression(s)){l=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t):a}}}(d||(d={})),function(e){var t,r,n,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,n,a,o,s,l,u=t.factory,d=t.getEmitHelperFactory,p=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,m=t.getCompilerOptions(),h=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void D(i,0,0)}v(t,r,n)},t.onSubstituteNode=function(t,r){if(r=y(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var r=h.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;var i=e.getEnclosingBlockScopeContainer(t);for(;n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 109:return function(t){if(1&l&&16&a)return e.setTextRange(u.createUniqueName("_this",48),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&l&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 206:case 262:case 266:case 259:return e.parent.name===e&&h.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(t,(function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=x(8064,64),n=[],i=[];p();var a=u.copyPrologue(t.statements,n,!1,C);e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o)));return u.mergeLexicalEnvironment(n,f()),U(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function D(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return!!(8192&a)&&252===e.kind&&!e.expression}function T(t){return!!(1024&t.transformFlags)||void 0!==s||8192&a&&function(t){return 4194304&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&fe(t)||!!(33554432&e.getEmitFlags(t))}function C(e){return T(e)?N(e,!1):e}function E(e){return T(e)?N(e,!0):e}function k(t){if(T(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=N(t,!1);return D(n,98304,0),i}return N(t,!1)}return t}function A(e){return 107===e.kind?Ie(!0):C(e)}function N(n,o){switch(n.kind){case 125:return;case 262:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,1024)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);4194304&o||(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(n);case 230:return function(e){return P(e)}(n);case 167:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 261:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=H(r),l=32768&a?u.getLocalName(r):r.name;return D(i,98304,0),s=n,u.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 217:return function(r){16384&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,H(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(i,0,0),s=n,o}(n);case 216:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=H(r),l=32768&a?u.getLocalName(r):r.name;return D(n,98304,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 259:return Y(n);case 79:return w(n);case 260:return function(r){if(3&r.flags||524288&r.transformFlags){3&r.flags&&Oe();var n=e.flatMap(r.declarations,1&r.flags?X:Y),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),524288&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0&&o.push(u.createStringLiteral(a.literal.text)),r=u.createCallExpression(u.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)}(n);case 229:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(n);case 107:return Ie(!1);case 109:return function(e){2&a&&!(16384&a)&&(a|=65536);if(s)return 2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this"));return e}(n);case 235:return function(e){if(104===e.keywordToken&&"target"===e.name.escapedText)return a|=32768,u.createUniqueName("_newTarget",48);return e}(n);case 172:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=G(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(n);case 175:case 176:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=H(r);i=175===r.kind?u.updateGetAccessorDeclaration(r,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.modifiers,r.name,o,c);return D(a,98304,0),s=n,i}(n);case 242:return function(r){var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(!s||3&r.declarationList.flags||function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r))n=e.visitEachChild(r,C,t);else{for(var a=void 0,o=0,c=r.declarationList.declarations;o0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var p=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function U(e,t){return!!(65536&a&&217!==t.kind)&&(z(e,t,u.createThis()),!0)}function z(t,r,n){Me();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function V(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 217:return t;case 172:case 175:case 176:i=u.createVoidZero();break;case 174:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 261:case 216:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),103,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function K(t){return e.setTextRange(u.createEmptyStatement(),t)}function W(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),l=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function q(t,r,n){var i=u.createExpressionStatement($(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function $(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var _=G(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=u.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var g=G(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),p.push(m)}p.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var h=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(h),h}function G(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),d=e.visitParameterList(r.parameters,C,t),p=H(r);return 32768&a&&!i&&(261===r.kind||216===r.kind)&&(i=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,d,void 0,p),n),r)}function H(t){var n,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(_(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,0,!1),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedVariableStatement)),o=R(l,t)||o,o=J(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,C),n=d.statements,e.addRange(l,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(217===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var g=e.visitNode(d,C,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,d),e.moveSyntheticComments(m,d),e.setEmitFlags(m,1440),l.push(m),i=d}if(u.mergeLexicalEnvironment(c,f()),V(c,t,!1),U(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var h=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(h,t.body),!o&&s&&e.setEmitFlags(h,1),i&&e.setTokenSourceMapRange(h,19,i),e.setOriginalNode(h,t.body),h}function Q(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,E,e.isExpression),r.operatorToken,e.visitNode(r.right,n?E:C,e.isExpression)):e.visitEachChild(r,C,t)}function X(r){var n=r.name;return e.isBindingPattern(n)?Y(r):!r.initializer&&function(e){var t=h.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(64&a||r&&n&&512&a)&&!(4096&a)&&(!h.isDeclarationWithCollidingName(e)||n&&!r&&!(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,C,t)}function Y(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,!!(32&i)):e.visitEachChild(r,C,t),D(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var l=x(r,n),d=function(r,n,i,o){if(!fe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 247:case 248:case 249:var n=t.initializer;n&&260===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=de(t)||pe(t)||_e(t),c=0,l=r.declarations;c=81&&r<=117)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(d||(d={})),function(e){var t,r,n,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var r,n,a,o,s,c,l,u,d,p,_=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,h=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=D(t,i),1===t)return function(t){if(e.isIdentifier(t))return function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(_.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(i);return i};var S,T,C,E,k,A,N,F,w,P,I,O,M=1,L=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||!(2048&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 245:case 246:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 254:return function(r){o&&re({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,B,t),o&&le();return r}(r);case 255:return function(r){o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ue();return r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 261:return J(t);case 216:return U(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):2048&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 261:return J(r);case 216:return U(r);case 175:case 176:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 242:return function(t){if(1048576&t.transformFlags)return void G(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?_.inlineExpressions(e.map(c,H)):void 0,e.visitNode(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);o&&ce();return r}(r);case 248:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 250:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 252:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 225:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(Q(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();De(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Te(r,n,t.left);return De(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?V(r):_.updateBinaryExpression(r,Y(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(Q(i)){var a=void 0;switch(n.kind){case 209:a=_.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 210:a=_.updateElementAccessExpression(n,Y(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(_.createAssignment(a,e.setTextRange(_.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):_.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 357:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return _.inlineExpressions(r)}(r);case 226:return function(r){if(Q(r.whenTrue)||Q(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 228:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);if(t.asteriskToken){!function(e,t){Ee(7,[e],t)}(8388608&e.getEmitFlags(t.expression)?n:e.setTextRange(f().createValuesHelper(n),t),t)}else!function(e,t){Ee(6,[e],t)}(n,t);return te(r),function(t){return e.setTextRange(_.createCallExpression(_.createPropertyAccessExpression(E,"sent"),void 0,[]),t)}(t)}(r);case 207:return function(e){return K(e.elements,void 0,void 0,e.multiLine)}(r);case 208:return function(t){var r=t.properties,n=t.multiLine,i=X(r),a=Z();De(a,_.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(_.cloneNode(a),a),a.parent)):a),_.inlineExpressions(o);function s(r,i){Q(i)&&r.length>0&&(xe(_.createExpressionStatement(_.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(_,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(r);case 210:return function(r){if(Q(r.argumentExpression))return _.updateElementAccessExpression(r,Y(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 211:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,Q)){var n=_.createCallBinding(r.expression,y,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createFunctionApplyCall(Y(e.visitNode(i,B,e.isLeftHandSideExpression)),a,K(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 212:return function(r){if(e.forEach(r.arguments,Q)){var n=_.createCallBinding(_.createPropertyAccessExpression(r.expression,"bind"),y),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createNewExpression(_.createFunctionApplyCall(Y(e.visitNode(i,B,e.isExpression)),a,K(r.arguments,_.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):4196352&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionDeclaration(r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void h(r):r}function U(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,z(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function z(t){var r=[],n=a,i=o,f=s,h=c,y=l,v=u,b=d,x=p,D=M,k=S,A=T,N=C,F=E;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,M=1,S=void 0,T=void 0,C=void 0,E=_.createTempVariable(void 0),g();var w=_.copyPrologue(t.statements,r,!1,B);W(t.statements,w);var P=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(_.createReturnStatement(P)),a=n,o=i,s=f,c=h,l=y,u=v,d=b,p=x,M=D,S=k,T=A,C=N,E=F,e.setTextRange(_.createBlock(r,t.multiLine),t)}function V(t){var r=[];return n(t.left),n(t.right),_.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(Q(t)&&r.length>0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function K(t,r,n,a){var o,s=X(t);if(s>0){o=Z();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,_.createArrayLiteralExpression(r?i([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(Q(n)&&t.length>0){var s=void 0!==o;o||(o=Z()),De(o,s?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(t,a)]):_.createArrayLiteralExpression(r?i([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],s);return o?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(l,a)]):e.setTextRange(_.createArrayLiteralExpression(r?i([r],l,!0):l,a),n)}function W(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(i);case 251:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 252:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Ee(8,[r],n);var r,n}(i);case 253:return function(t){Q(t)?(r=Y(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),q(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,B,e.isStatement));var r,n,i}(i);case 254:return function(t){if(Q(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Y(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(_.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else p++}d.length&&(xe(_.createSwitchStatement(a,_.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}Se(s>=0?o[s]:i);for(c=0;c0)break;l.push(H(i))}l.length&&(xe(_.createExpressionStatement(_.inlineExpressions(l))),c+=l.length,l=[])}}function H(t){return e.setSourceMapRange(_.createAssignment(e.setSourceMapRange(_.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function Q(e){return!!e&&!!(1048576&e.transformFlags)}function X(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(pe(r=u[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(de(r=u[t]))return r.breakLabel}return 0}function me(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(_e(r=u[t])&&fe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(_e(r=u[t]))return r.continueLabel}return 0}function he(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var t=_.createNumericLiteral(-1);return void 0===p[e]?p[e]=[t]:p[e].push(t),t}return _.createOmittedExpression()}function ye(t){var r=_.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ye(3),he(t)])),r)}function be(){Ee(0)}function xe(e){e?Ee(1,[e]):be()}function De(e,t,r){Ee(2,[e,t],r)}function Se(e,t){Ee(3,[e],t)}function Te(e,t,r){Ee(4,[e,t],r)}function Ce(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,T[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,A=!1,N=!1,F=void 0,w=void 0,P=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(e){(function(e){if(!N)return!0;if(!d||!p)return!1;for(var t=0;t=0;t--){var r=O[t];w=[_.createWithStatement(r.expression,_.createBlock(w))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;w.unshift(_.createExpressionStatement(_.createCallExpression(_.createPropertyAccessExpression(_.createPropertyAccessExpression(E,"trys"),"push"),void 0,[_.createArrayLiteralExpression([he(n),he(i),he(a),he(o)])]))),I=void 0}e&&w.push(_.createExpressionStatement(_.createAssignment(_.createPropertyAccessExpression(E,"label"),_.createNumericLiteral(R+1))))}F.push(_.createCaseClause(_.createNumericLiteral(R),w||[])),w=void 0}function Fe(e){if(d)for(var t=0;t=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],p>=2?2:0))));if(U(t)){var o=e.getOriginalNodeId(t);b[o]=z(b[o],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 271:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),_!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,B(t))],p>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(n.getExportName(t),n.getLocalName(t))),t),t)));if(U(t)){var i=e.getOriginalNodeId(t);b[i]=V(b[i],t)}else r=V(r,t);return e.singleOrMany(r)}(t);case 278:return function(t){if(!t.moduleSpecifier)return;var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];_!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function M(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);p>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return e.getESModuleInterop(l)?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function L(t,r){var i,o=!t||e.isSimpleInlineableExpression(t)||r?void 0:n.createTempVariable(c),s=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),u=n.createCallExpression(n.createIdentifier("require"),void 0,o?[o]:t?[t]:[]);e.getESModuleInterop(l)&&(u=a().createImportStarHelper(u)),i=p>=2?n.createArrowFunction(void 0,void 0,[],void 0,void 0,u):n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(u)]));var d=n.createCallExpression(n.createPropertyAccessExpression(s,"then"),void 0,[i]);return void 0===o?d:n.createCommaListExpression([n.createAssignment(o,t),d])}function R(t,r){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(n,t,m,d,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function j(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s=e.ModuleKind.Node16?function(t){var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=e.append(r,e.setOriginalNode(e.setTextRange(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,g(t))],d>=2?2:0)),t),t)),r=function(t,r){e.hasSyntacticModifier(r,1)&&(t=e.append(t,o.createExportDeclaration(void 0,r.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,e.idText(r.name))]))));return t}(r,t),e.singleOrMany(r)}(t):void 0;case 277:return function(e){return e.isExportEquals?void 0:e}(t);case 278:return function(t){if(void 0!==u.module&&u.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=o.getGeneratedNameForNode(r),i=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var a=e.isExportNamespaceAsDefaultDeclaration(t)?o.createExportDefault(n):o.createExportDeclaration(void 0,!1,o.createNamedExports([o.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(a,t),[i,a]}(t)}return t}function g(t){var r=e.getExternalModuleNameLiteral(o,t,e.Debug.checkDefined(n),c,l,u),i=[];if(r&&i.push(r),!a){var s=o.createUniqueName("_createRequire",48),p=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),s)])),o.createStringLiteral("module")),_=o.createUniqueName("__require",48),f=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(_,void 0,void 0,o.createCallExpression(o.cloneNode(s),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(101,o.createIdentifier("meta")),o.createIdentifier("url"))]))],d>=2?2:0));a=[p,f]}var g=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(g,e.isIdentifier),o.createCallExpression(o.cloneNode(g),void 0,i)}}}(d||(d={})),function(e){e.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(t,n){return e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n)},t.onEmitNode=function(t,r,i){e.isSourceFile(r)&&(s=r);if(!s)return n(t,r,i);if(s.impliedNodeFormat===e.ModuleKind.ESNext)return o(t,r,i);return u(t,r,i)},t.enableSubstitution(311),t.enableEmitNotification(311),function(r){return 311===r.kind?d(r):function(r){return t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends)}(r)};function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}}(d||(d={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=176===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 178:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 177:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 172:case 171:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:262===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 261:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 174:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 178:case 183:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 177:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 172:case 171:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:262===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 261:case 182:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 176:case 175:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(t.parent.kind)))}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 262:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 198:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 183:case 178:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 177:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:case 171:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:262===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 182:case 261:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 265:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&118===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(t.kind)));function r(r){var n=function(r){return 259===t.kind||206===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:170===t.kind||209===t.kind||169===t.kind||167===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:262===t.parent.kind||167===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:262===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:262===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(d||(d={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&167===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[o],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function o(t){var o,l,u,d,p,_,f,g,m,h,y,v,b=function(){return e.Debug.fail("Diagnostic emitted without context")},x=b,D=!0,S=!1,T=!1,C=!1,E=!1,k=t.factory,A=t.getEmitHost(),N={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=M(F.isSymbolAccessible(e,t,r,!0));return O(F.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,L()))},reportPrivateInBaseOfClassExpression:function(r){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,L(),r))},reportTruncationError:function(){(f||g)&&t.addDiagnostic(e.createDiagnosticForNode(f||g,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule:function(t,r){var n=F.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);h.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(o&&s)for(var c=0,l=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=o}(d||(d={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformLegacyDecorators),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,(function(e,t){return t}))}function l(e,t){return t}function u(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,a,o,s,c){for(var d,p,_,f,g,m=new Array(361),h=0,y=[],v=[],b=[],x=[],D=0,S=!1,T=[],C=0,E=l,k=u,A=0,N=[],F={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(F)})),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),y[D]=d,v[D]=p,b[D]=_,x[D]=h,D++,d=void 0,p=void 0,_=void 0,h=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||p||_){if(p&&(t=i([],p,!0)),d){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}_&&(t=i(t?i([],t,!0):[],_,!0))}D--,d=y[D],p=v[D],_=b[D],h=x[D],0===D&&(y=[],v=[],b=[],x=[]);return t},setLexicalEnvironmentFlags:function(e,t){h=t?h|e:h&~e},getLexicalEnvironmentFlags:function(){return h},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);d?d.push(r):d=[r];1&h&&(h|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),T[C]=f,C++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;C--,f=T[C],0===C&&(T=[]);return t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=g;return g=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:U,get onSubstituteNode(){return E},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){N.push(e)}},w=0,P=o;w"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(g=r(c(p,t,i),p))return g}}else{if(!a)for(var _=0,f=l;_0){var i=t.preserveSourceNewlinesStack[t.stackIndex],a=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],s=t.declarationListContainerEndStack[t.stackIndex],c=t.shouldEmitCommentsStack[t.stackIndex],l=t.shouldEmitSourceMapsStack[t.stackIndex];Le(i),l&&mn(e),c&&$r(e,a,o,s),null==R||R(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ue.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ue.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Je(0,1,t);if(a===We&&(e.Debug.assertIsDefined(A),a=Ue(1,1,t=i(e.cast(A,e.isExpression))),A=void 0),(a===Wr||a===fn||a===Ve)&&e.isBinaryExpression(t))return t;N=i,a(1,t)}}();return Ne(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 311:return fe(r);case 312:return _e(r);case 313:return function(e,t){var r=h;Ae(t,void 0),Ee(4,e,void 0),Ne(),h=r}(r,Te()),Ce()}return ge(t,r,n,Te()),Ce()},printList:function(e,t,r){return me(e,t,r,Te()),Ce()},printFile:fe,printBundle:_e,writeNode:ge,writeList:me,writeFile:Se,writeBundle:De,bundleFileInfo:G};function _e(e){return De(e,Te(),void 0),Ce()}function fe(e){return Se(e,Te(),void 0),Ce()}function ge(e,t,r,n){var i=h;Ae(n,void 0),Ee(e,t,r),Ne(),h=i}function me(e,t,r,n){var i=h;Ae(n,void 0),r&&ke(r),$t(void 0,t,e),Ne(),h=i}function he(){return h.getTextPosWithWriteLine?h.getTextPosWithWriteLine():h.getTextPos()}function ye(t,r,n){var i=e.lastOrUndefined(G.sections);i&&i.kind===n?i.end=r:G.sections.push({pos:t,end:r,kind:n})}function ve(t){if(Q&&G&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==Y){var r=Y;return xe(h.getTextPos()),X=he(),Y="internal",r}}function be(e){e&&(xe(h.getTextPos()),X=he(),Y=e)}function xe(e){return X"),ar(),we(e.type),wr(e)}(r);case 183:return function(e){Fr(e),Mt(e,e.modifiers),tr("new"),ar(),Vt(e,e.typeParameters),Kt(e,e.parameters),ar(),Zt("=>"),ar(),we(e.type),wr(e)}(r);case 184:return function(e){tr("typeof"),ar(),we(e.exprName),zt(e,e.typeArguments)}(r);case 185:return function(t){Zt("{");var r=1&e.getEmitFlags(t)?768:32897;$t(t,t.members,524288|r),Zt("}")}(r);case 186:return function(e){we(e.elementType,ue.parenthesizeNonArrayTypeOfPostfixType),Zt("["),Zt("]")}(r);case 187:return function(t){it(22,t.pos,Zt,t);var r=1&e.getEmitFlags(t)?528:657;$t(t,t.elements,524288|r,ue.parenthesizeElementTypeOfTupleType),it(23,t.elements.end,Zt,t)}(r);case 188:return function(e){we(e.type,ue.parenthesizeTypeOfOptionalType),Zt("?")}(r);case 190:return function(e){$t(e,e.types,516,ue.parenthesizeConstituentTypeOfUnionType)}(r);case 191:return function(e){$t(e,e.types,520,ue.parenthesizeConstituentTypeOfIntersectionType)}(r);case 192:return function(e){we(e.checkType,ue.parenthesizeCheckTypeOfConditionalType),ar(),tr("extends"),ar(),we(e.extendsType,ue.parenthesizeExtendsTypeOfConditionalType),ar(),Zt("?"),ar(),we(e.trueType),ar(),Zt(":"),ar(),we(e.falseType)}(r);case 193:return function(e){tr("infer"),ar(),we(e.typeParameter)}(r);case 194:return function(e){Zt("("),we(e.type),Zt(")")}(r);case 232:return Ze(r);case 195:return void tr("this");case 196:return function(e){_r(e.operator,tr),ar();var t=147===e.operator?ue.parenthesizeOperandOfReadonlyTypeOperator:ue.parenthesizeOperandOfTypeOperator;we(e.type,t)}(r);case 197:return function(e){we(e.objectType,ue.parenthesizeNonArrayTypeOfPostfixType),Zt("["),we(e.indexType),Zt("]")}(r);case 198:return function(t){var r=e.getEmitFlags(t);Zt("{"),1&r?ar():(cr(),lr());t.readonlyToken&&(we(t.readonlyToken),147!==t.readonlyToken.kind&&tr("readonly"),ar());Zt("["),Re(3,t.typeParameter),t.nameType&&(ar(),tr("as"),ar(),we(t.nameType));Zt("]"),t.questionToken&&(we(t.questionToken),57!==t.questionToken.kind&&Zt("?"));Zt(":"),ar(),we(t.type),er(),1&r?ar():(cr(),ur());$t(t,t.members,2),Zt("}")}(r);case 199:return function(e){Ie(e.literal)}(r);case 200:return function(e){we(e.dotDotDotToken),we(e.name),we(e.questionToken),it(58,e.name.end,Zt,e),ar(),we(e.type)}(r);case 201:return function(e){we(e.head),$t(e,e.templateSpans,262144)}(r);case 202:return function(e){we(e.type),we(e.literal)}(r);case 203:return function(e){e.isTypeOf&&(tr("typeof"),ar());if(tr("import"),Zt("("),we(e.argument),e.assertions){Zt(","),ar(),Zt("{"),ar(),tr("assert"),Zt(":"),ar();var t=e.assertions.assertClause.elements;$t(e.assertions.assertClause,t,526226),ar(),Zt("}")}Zt(")"),e.qualifier&&(Zt("."),we(e.qualifier));zt(e,e.typeArguments)}(r);case 204:return function(e){Zt("{"),$t(e,e.elements,525136),Zt("}")}(r);case 205:return function(e){Zt("["),$t(e,e.elements,524880),Zt("]")}(r);case 206:return function(e){we(e.dotDotDotToken),e.propertyName&&(we(e.propertyName),Zt(":"),ar());we(e.name),Rt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 238:return function(e){Ie(e.expression),we(e.literal)}(r);case 239:return void er();case 240:return function(e){et(e,!e.multiLine&&Er(e))}(r);case 242:return function(e){Mt(e,e.modifiers),we(e.declarationList),er()}(r);case 241:return tt(!1);case 243:return function(t){Ie(t.expression,ue.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||er()}(r);case 244:return function(e){var t=it(100,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.thenStatement),e.elseStatement&&(fr(e,e.thenStatement,e.elseStatement),it(92,e.thenStatement.end,tr,e),244===e.elseStatement.kind?(ar(),we(e.elseStatement)):Jt(e,e.elseStatement))}(r);case 245:return function(t){it(91,t.pos,tr,t),Jt(t,t.statement),e.isBlock(t.statement)&&!q?ar():fr(t,t.statement,t.expression);rt(t,t.statement.end),er()}(r);case 246:return function(e){rt(e,e.pos),Jt(e,e.statement)}(r);case 247:return function(e){var t=it(98,e.pos,tr,e);ar();var r=it(20,t,Zt,e);nt(e.initializer),r=it(26,e.initializer?e.initializer.end:r,Zt,e),jt(e.condition),r=it(26,e.condition?e.condition.end:r,Zt,e),jt(e.incrementor),it(21,e.incrementor?e.incrementor.end:r,Zt,e),Jt(e,e.statement)}(r);case 248:return function(e){var t=it(98,e.pos,tr,e);ar(),it(20,t,Zt,e),nt(e.initializer),ar(),it(102,e.initializer.end,tr,e),ar(),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 249:return function(e){var t=it(98,e.pos,tr,e);ar(),function(e){e&&(we(e),ar())}(e.awaitModifier),it(20,t,Zt,e),nt(e.initializer),ar(),it(163,e.initializer.end,tr,e),ar(),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 250:return function(e){it(87,e.pos,tr,e),Bt(e.label),er()}(r);case 251:return function(e){it(81,e.pos,tr,e),Bt(e.label),er()}(r);case 252:return function(e){it(106,e.pos,tr,e),jt(e.expression&&st(e.expression),st),er()}(r);case 253:return function(e){var t=it(117,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),Jt(e,e.statement)}(r);case 254:return function(e){var t=it(108,e.pos,tr,e);ar(),it(20,t,Zt,e),Ie(e.expression),it(21,e.expression.end,Zt,e),ar(),we(e.caseBlock)}(r);case 255:return function(e){we(e.label),it(58,e.label.end,Zt,e),ar(),we(e.statement)}(r);case 256:return function(e){it(110,e.pos,tr,e),jt(st(e.expression),st),er()}(r);case 257:return function(e){it(112,e.pos,tr,e),ar(),we(e.tryBlock),e.catchClause&&(fr(e,e.tryBlock,e.catchClause),we(e.catchClause));e.finallyBlock&&(fr(e,e.catchClause||e.tryBlock,e.finallyBlock),it(97,(e.catchClause||e.tryBlock).end,tr,e),ar(),we(e.finallyBlock))}(r);case 258:return function(e){dr(88,e.pos,tr),er()}(r);case 259:return function(e){var t,r,n,i,a;we(e.name),we(e.exclamationToken),Lt(e.type),Rt(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 260:return function(t){tr(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),ar(),$t(t,t.declarations,528)}(r);case 261:return function(e){lt(e)}(r);case 262:case 263:return gt(r);case 264:return function(e){Mt(e,e.modifiers),tr("interface"),ar(),we(e.name),Vt(e,e.typeParameters),$t(e,e.heritageClauses,512),ar(),Zt("{"),$t(e,e.members,129),Zt("}")}(r);case 265:return function(e){Mt(e,e.modifiers),tr("type"),ar(),we(e.name),Vt(e,e.typeParameters),ar(),Zt("="),ar(),we(e.type),er()}(r);case 266:return function(e){Mt(e,e.modifiers),tr("enum"),ar(),we(e.name),ar(),Zt("{"),$t(e,e.members,145),Zt("}")}(r);case 267:return function(t){Mt(t,t.modifiers),1024&~t.flags&&(tr(16&t.flags?"namespace":"module"),ar());we(t.name);var r=t.body;if(!r)return er();for(;r&&e.isModuleDeclaration(r);)Zt("."),we(r.name),r=r.body;ar(),we(r)}(r);case 268:return function(t){Fr(t),e.forEach(t.statements,Ir),et(t,Er(t)),wr(t)}(r);case 269:return function(e){it(18,e.pos,Zt,e),$t(e,e.clauses,129),it(19,e.clauses.end,Zt,e,!0)}(r);case 270:return function(e){var t=it(94,e.pos,tr,e);ar(),t=it(129,t,tr,e),ar(),t=it(144,t,tr,e),ar(),we(e.name),er()}(r);case 271:return function(e){Mt(e,e.modifiers),it(101,e.modifiers?e.modifiers.end:e.pos,tr,e),ar(),e.isTypeOnly&&(it(155,e.pos,tr,e),ar());we(e.name),ar(),it(63,e.name.end,Zt,e),ar(),function(e){79===e.kind?Ie(e):we(e)}(e.moduleReference),er()}(r);case 272:return function(e){Mt(e,e.modifiers),it(101,e.modifiers?e.modifiers.end:e.pos,tr,e),ar(),e.importClause&&(we(e.importClause),ar(),it(159,e.importClause.end,tr,e),ar());Ie(e.moduleSpecifier),e.assertClause&&Bt(e.assertClause);er()}(r);case 273:return function(e){e.isTypeOnly&&(it(155,e.pos,tr,e),ar());we(e.name),e.name&&e.namedBindings&&(it(27,e.name.end,Zt,e),ar());we(e.namedBindings)}(r);case 274:return function(e){var t=it(41,e.pos,Zt,e);ar(),it(129,t,tr,e),ar(),we(e.name)}(r);case 280:return function(e){var t=it(41,e.pos,Zt,e);ar(),it(129,t,tr,e),ar(),we(e.name)}(r);case 275:case 279:return function(e){ht(e)}(r);case 276:case 281:return function(e){yt(e)}(r);case 277:return function(e){var t=it(94,e.pos,tr,e);ar(),e.isExportEquals?it(63,t,rr,e):it(89,t,tr,e);ar(),Ie(e.expression,e.isExportEquals?ue.getParenthesizeRightSideOfBinaryForOperator(63):ue.parenthesizeExpressionOfExportDefault),er()}(r);case 278:return function(e){Mt(e,e.modifiers);var t=it(94,e.pos,tr,e);ar(),e.isTypeOnly&&(t=it(155,t,tr,e),ar());e.exportClause?we(e.exportClause):t=it(41,t,Zt,e);if(e.moduleSpecifier){ar(),it(159,e.exportClause?e.exportClause.end:t,tr,e),ar(),Ie(e.moduleSpecifier)}e.assertClause&&Bt(e.assertClause);er()}(r);case 299:return function(e){it(131,e.pos,tr,e),ar();var t=e.elements;$t(e,t,526226)}(r);case 300:return function(t){we(t.name),Zt(":"),ar();var r=t.value;if(!(512&e.getEmitFlags(r))){sn(e.getCommentRange(r).pos)}we(r)}(r);case 282:case 325:case 336:case 337:case 339:case 340:case 341:case 342:case 355:case 359:case 358:return;case 283:return function(e){tr("require"),Zt("("),Ie(e.expression),Zt(")")}(r);case 11:return function(e){h.writeLiteral(e.text)}(r);case 286:case 289:return function(t){if(Zt("<"),e.isJsxOpeningElement(t)){var r=Dr(t.tagName,t);vt(t.tagName),zt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&ar(),we(t.attributes),Sr(t.attributes,t),hr(r)}Zt(">")}(r);case 287:case 290:return function(t){Zt("")}(r);case 291:return function(e){we(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Zt,e.initializer,Oe)}(r);case 292:return function(e){$t(e,e.properties,262656)}(r);case 293:return function(e){Zt("{..."),Ie(e.expression),Zt("}")}(r);case 294:return function(t){var r;if(t.expression||!oe&&!e.nodeIsSynthesized(t)&&(o=t.pos,function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(o)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(o))){var n=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;n&&h.increaseIndent();var a=it(18,t.pos,Zt,t);we(t.dotDotDotToken),Ie(t.expression),it(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||a,Zt,t),n&&h.decreaseIndent()}var o}(r);case 295:return function(e){it(82,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(r);case 296:return function(e){var t=it(89,e.pos,tr,e);bt(e,e.statements,t)}(r);case 297:return function(e){ar(),_r(e.token,tr),ar(),$t(e,e.types,528)}(r);case 298:return function(e){var t=it(83,e.pos,tr,e);ar(),e.variableDeclaration&&(it(20,t,Zt,e),we(e.variableDeclaration),it(21,e.variableDeclaration.end,Zt,e),ar());we(e.block)}(r);case 302:return function(t){we(t.name),Zt(":"),ar();var r=t.initializer;if(!(512&e.getEmitFlags(r))){sn(e.getCommentRange(r).pos)}Ie(r,ue.parenthesizeExpressionForDisallowedComma)}(r);case 303:return function(e){we(e.name),e.objectAssignmentInitializer&&(ar(),Zt("="),ar(),Ie(e.objectAssignmentInitializer,ue.parenthesizeExpressionForDisallowedComma))}(r);case 304:return function(e){e.expression&&(it(25,e.pos,Zt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma))}(r);case 305:return function(e){we(e.name),Rt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 306:return He(r);case 313:case 307:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(i)?64:0;$t(t,t.properties,526226|a|n),r&&ur()}(r);case 209:return function(t){Ie(t.expression,ue.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=Cr(t,t.expression,r),i=Cr(t,r,t.name);mr(n,!1);var a=28!==r.kind&&function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Nr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)&&!h.hasTrailingComment()&&!h.hasTrailingWhitespace();a&&Zt(".");t.questionDotToken?we(r):it(r.kind,t.expression.end,Zt,t);mr(i,!1),we(t.name),hr(n,i)}(r);case 210:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),we(e.questionDotToken),it(22,e.expression.end,Zt,e),Ie(e.argumentExpression),it(23,e.argumentExpression.end,Zt,e)}(r);case 211:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Zt("("),Xt("0"),Zt(","),ar());Ie(t.expression,ue.parenthesizeLeftSideOfAccess),r&&Zt(")");we(t.questionDotToken),zt(t,t.typeArguments),Gt(t,t.arguments,2576,ue.parenthesizeExpressionForDisallowedComma)}(r);case 212:return function(e){it(104,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeExpressionOfNew),zt(e,e.typeArguments),Gt(e,e.arguments,18960,ue.parenthesizeExpressionForDisallowedComma)}(r);case 213:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Zt("("),Xt("0"),Zt(","),ar());Ie(t.tag,ue.parenthesizeLeftSideOfAccess),r&&Zt(")");zt(t,t.typeArguments),ar(),Ie(t.template)}(r);case 214:return function(e){Zt("<"),we(e.type),Zt(">"),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){var t=it(20,e.pos,Zt,e),r=Dr(e.expression,e);Ie(e.expression,void 0),Sr(e.expression,e),hr(r),it(21,e.expression?e.expression.end:t,Zt,e)}(r);case 216:return function(e){Mr(e.name),lt(e)}(r);case 217:return function(e){Mt(e,e.modifiers),ut(e,Ye)}(r);case 219:return function(e){it(90,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 220:return function(e){it(113,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 221:return function(e){it(115,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 222:return function(e){it(134,e.pos,tr,e),ar(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 223:return function(e){_r(e.operator,rr),function(e){var t=e.operand;return 223===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&ar();Ie(e.operand,ue.parenthesizeOperandOfPrefixUnary)}(r);case 224:return function(e){Ie(e.operand,ue.parenthesizeOperandOfPostfixUnary),_r(e.operator,rr)}(r);case 225:return pe(r);case 226:return function(e){var t=Cr(e,e.condition,e.questionToken),r=Cr(e,e.questionToken,e.whenTrue),n=Cr(e,e.whenTrue,e.colonToken),i=Cr(e,e.colonToken,e.whenFalse);Ie(e.condition,ue.parenthesizeConditionOfConditionalExpression),mr(t,!0),we(e.questionToken),mr(r,!0),Ie(e.whenTrue,ue.parenthesizeBranchOfConditionalExpression),hr(t,r),mr(n,!0),we(e.colonToken),mr(i,!0),Ie(e.whenFalse,ue.parenthesizeBranchOfConditionalExpression),hr(n,i)}(r);case 227:return function(e){we(e.head),$t(e,e.templateSpans,262144)}(r);case 228:return function(e){it(126,e.pos,tr,e),we(e.asteriskToken),jt(e.expression&&st(e.expression),ct)}(r);case 229:return function(e){it(25,e.pos,Zt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma)}(r);case 230:return function(e){Mr(e.name),mt(e)}(r);case 231:case 355:case 358:case 359:return;case 233:return function(e){Ie(e.expression,void 0),e.type&&(ar(),tr("as"),ar(),we(e.type))}(r);case 234:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),rr("!")}(r);case 232:return Ze(r);case 237:return function(e){Ie(e.expression,void 0),e.type&&(ar(),tr("satisfies"),ar(),we(e.type))}(r);case 235:return function(e){dr(e.keywordToken,e.pos,Zt),Zt("."),we(e.name)}(r);case 236:return e.Debug.fail("SyntheticExpression should never be printed.");case 284:return function(e){we(e.openingElement),$t(e,e.children,262144),we(e.closingElement)}(r);case 285:return function(e){Zt("<"),vt(e.tagName),zt(e,e.typeArguments),ar(),we(e.attributes),Zt("/>")}(r);case 288:return function(e){we(e.openingFragment),$t(e,e.children,262144),we(e.closingFragment)}(r);case 354:return e.Debug.fail("SyntaxList should not be printed");case 356:return function(t){var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||sn(t.expression.pos);Ie(t.expression),1024&r||t.end===t.expression.end||an(t.expression.end)}(r);case 357:return function(e){Gt(e,e.elements,528,void 0)}(r);case 360:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?pr(r,tr):e.isTokenKind(r.kind)?pr(r,Zt):void(e.findAncestor(r,(function(t){return e.isEtsComponentExpression(t)}))||e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),".")))}function We(t,r){var n=Ue(1,t,r);e.Debug.assertIsDefined(A),r=A,A=void 0,n(t,r)}function qe(r){var n=!1,a=312===r.kind?r:void 0;if(!a||K!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?_t:ft;Yr(t,t.statements,r),ur(),dr(19,t.statements.end,Zt,t),null==R||R(t)}function _t(e){ft(e,!0)}function ft(e,t){var r=Nt(e.statements),n=h.getTextPos();qe(e),0===r&&n===h.getTextPos()&&t?(ur(),$t(e,e.statements,768),lr()):$t(e,e.statements,1,void 0,r)}function gt(e){mt(e)}function mt(t){e.forEach(t.members,Or),Ot(t,t.modifiers),e.isStructDeclaration(t)?tr("struct"):tr("class"),t.name&&(ar(),Pe(t.name));var r=65536&e.getEmitFlags(t);r&&lr(),Vt(t,t.typeParameters),$t(t,t.heritageClauses,0),ar(),Zt("{"),$t(t,t.members,129),Zt("}"),r&&ur()}function ht(e){Zt("{"),$t(e,e.elements,525136),Zt("}")}function yt(e){e.isTypeOnly&&(tr("type"),ar()),e.propertyName&&(we(e.propertyName),ar(),it(129,e.propertyName.end,tr,e),ar()),we(e.name)}function vt(e){79===e.kind?Ie(e):we(e)}function bt(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(dr(58,n,Zt,t),ar(),a&=-130):it(58,n,Zt,t),$t(t,r,a)}function xt(t){$t(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function Dt(t){t.typeParameters&&$t(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&$t(t,e.factory.createNodeArray(t.parameters),33),t.type&&(cr(),ar(),Zt("*"),ar(),we(t.type))}function St(e){Zt("@"),we(e)}function Tt(t){var r=e.getTextOfJSDocComment(t);r&&(ar(),$(r))}function Ct(e){e&&(ar(),Zt("{"),we(e.type),Zt("}"))}function Et(t){cr();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?Yr(t,r,At):At(t)}function kt(t,r,n,a){if(t){var o=h.getTextPos();ir('/// '),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"no-default-lib"}),cr()}if(i&&i.moduleName&&(ir('/// ')),cr()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s')):ir('/// ')),cr()}for(var u=0,d=r;u')),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"reference",data:p.fileName}),cr()}for(var _=0,f=n;_")),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),cr()}for(var m=0,y=a;m')),G&&G.sections.push({pos:o,end:h.getTextPos(),kind:"lib",data:p.fileName}),cr()}}function At(t){var r=t.statements;Fr(t),e.forEach(t.statements,Ir),qe(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&kt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),$t(t,r,1,void 0,-1===n?r.length:n),wr(t)}function Nt(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===l;if(u&&32768&o)return null==B||B(a),void(null==j||j(a));15360&o&&(Zt(function(e){return n[15360&e][0]}(o)),u&&a&&sn(a.pos,!0)),null==B||B(a),u?!(1&o)||q&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&ar():cr():Qt(t,r,a,o,s,c,l,a.hasTrailingComma,a),null==j||j(a),15360&o&&(u&&a&&an(a.end),Zt(function(e){return n[15360&e][1]}(o)))}}function Qt(t,r,n,i,a,o,s,c,l){var u=!(262144&i),d=u,p=yr(r,n[o],i);p?(cr(p),d=!1):256&i&&ar(),128&i&&lr();for(var _,f,g=function(e,t){return 1===e.length?S:"object"==typeof t?T:C}(t,a),h=!1,y=0;y0?(131&i||(lr(),h=!0),cr(b),d=!1):_&&512&i&&ar()}if(f=ve(v),d)sn(e.getCommentRange(v).pos);else d=u;m=v.pos,g(v,t,a,y),h&&(ur(),h=!1),_=v}var x=_?e.getEmitFlags(_):0,D=oe||!!(1024&x),E=c&&64&i&&16&i;E&&(_&&!D?it(27,_.end,Zt,_):Zt(",")),_&&(r?r.end:-1)!==_.end&&60&i&&!D&&an(E&&(null==l?void 0:l.end)?l.end:_.end),128&i&&ur(),be(f);var k=br(r,n[o+s-1],i,l);k?cr(k):2097408&i&&ar()}function Xt(e){h.writeLiteral(e)}function Yt(e,t){h.writeSymbol(e,t)}function Zt(e){h.writePunctuation(e)}function er(){h.writeTrailingSemicolon(";")}function tr(e){h.writeKeyword(e)}function rr(e){h.writeOperator(e)}function nr(e){h.writeParameter(e)}function ir(e){h.writeComment(e)}function ar(){h.writeSpace(" ")}function or(e){h.writeProperty(e)}function sr(e){h.nonEscapingWrite?h.nonEscapingWrite(e):h.write(e)}function cr(e){void 0===e&&(e=1);for(var t=0;t0)}function lr(){h.increaseIndent()}function ur(){h.decreaseIndent()}function dr(t,r,n,i){return Z?_r(t,n,r):function(t,r,n,i,a){if(Z||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||x;i=hn(l,c?c.pos:i),!(128&s)&&i>=0&&vn(l,i);i=a(r,n,i),c&&(i=c.end);!(256&s)&&i>=0&&vn(l,i);return i}(i,t,n,r,_r)}function pr(t,r){J&&J(t),r(e.tokenToString(t.kind)),U&&U(t)}function _r(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function fr(t,r,n){if(1&e.getEmitFlags(t))ar();else if(q){var i=Cr(t,r,n);i?cr(i):ar()}else cr()}function gr(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i-1&&i.indexOf(r)===a+1}(t,r)?xr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!q&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(Tr(t,n)||Tr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function br(t,r,n,a){if(2&n||q){if(65536&n)return 1;if(void 0===r)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(r)&&(!r.parent||r.parent===t)){if(q){var o=a&&!e.positionIsSynthesized(a.end)?a.end:r.end;return xr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,r,i)?0:1}if(Tr(r,n))return 1}return 1&n&&!(131072&n)?1:0}function xr(t){e.Debug.assert(!!q);var r=t(!0);return 0===r?t(!1):r}function Dr(e,t){var r=q&&yr(t,e,0);return r&&mr(r,!1),!!r}function Sr(e,t){var r=q&&br(t,e,0,void 0);r&&cr(r)}function Tr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?!!(65536&r):n}return!!(65536&r)}function Cr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=kr(t),r=kr(r),n=kr(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:q?xr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function Er(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function kr(t){for(;215===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Ar(t,r){if(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t))return Lr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return Ar(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function Nr(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:Ar(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Nr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function Fr(t){t&&524288&e.getEmitFlags(t)||(p.push(_),_=0,u.push(d),d=0,c.push(l),l=void 0,f.push(g))}function wr(t){t&&524288&e.getEmitFlags(t)||(_=p.pop(),d=u.pop(),l=c.pop(),g=f.pop())}function Pr(t){g&&g!==e.lastOrUndefined(f)||(g=new e.Set),g.add(t)}function Ir(t){if(t)switch(t.kind){case 240:case 295:case 296:e.forEach(t.statements,Ir);break;case 255:case 253:case 245:case 246:Ir(t.statement);break;case 244:Ir(t.thenStatement),Ir(t.elseStatement);break;case 247:case 249:case 248:Ir(t.initializer),Ir(t.statement);break;case 254:Ir(t.caseBlock);break;case 269:e.forEach(t.clauses,Ir);break;case 257:Ir(t.tryBlock),Ir(t.catchClause),Ir(t.finallyBlock);break;case 298:Ir(t.variableDeclaration),Ir(t.block);break;case 242:Ir(t.declarationList);break;case 260:e.forEach(t.declarations,Ir);break;case 259:case 167:case 206:case 262:case 274:case 280:Mr(t.name);break;case 261:Mr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Ir),Ir(t.body));break;case 204:case 205:case 275:e.forEach(t.elements,Ir);break;case 272:Ir(t.importClause);break;case 273:Mr(t.name),Ir(t.namedBindings);break;case 276:Mr(t.propertyName||t.name)}}function Or(e){if(e)switch(e.kind){case 302:case 303:case 170:case 172:case 175:case 176:Mr(e.name)}}function Mr(t){t&&(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t)?Lr(t):e.isBindingPattern(t)&&Ir(t))}function Lr(t){if(4==(7&t.autoGenerateFlags))return Rr(e.getNodeForGeneratedName(t),e.isPrivateIdentifier(t),t.autoGenerateFlags,t.autoGeneratePrefix,t.autoGenerateSuffix);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){var r=e.formatGeneratedNamePart(t.autoGeneratePrefix,Lr),n=e.formatGeneratedNamePart(t.autoGenerateSuffix);switch(7&t.autoGenerateFlags){case 1:return zr(0,!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n);case 2:return e.Debug.assertNode(t,e.isIdentifier),zr(268435456,!!(8&t.autoGenerateFlags),!1,r,n);case 3:return Vr(e.idText(t),32&t.autoGenerateFlags?jr:Br,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(7&t.autoGenerateFlags,e.GeneratedIdentifierFlags,!0),"."))}(t))}function Rr(t,r,n,i,o){var s=e.getNodeId(t);return a[s]||(a[s]=function(t,r,n,i,a){switch(t.kind){case 79:case 80:return Vr(Ar(t),Br,!!(16&n),!!(8&n),r,i,a);case 267:case 266:return e.Debug.assert(!i&&!a&&!r),function(t){var r=Ar(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:Vr(r,Br,!1,!1,!1,"","")}(t);case 272:case 278:return e.Debug.assert(!i&&!a&&!r),function(t){var r=e.getExternalModuleName(t);return Vr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module",Br,!1,!1,!1,"","")}(t);case 261:case 262:case 277:return e.Debug.assert(!i&&!a&&!r),Vr("default",Br,!1,!1,!1,"","");case 230:return e.Debug.assert(!i&&!a&&!r),Vr("class",Br,!1,!1,!1,"","");case 172:case 175:case 176:return function(t,r,n,i){if(e.isIdentifier(t.name))return Rr(t.name,r);return zr(0,!1,r,n,i)}(t,r,i,a);case 165:return zr(0,!0,r,i,a);default:return zr(0,!1,r,i,a)}}(t,r,null!=n?n:0,e.formatGeneratedNamePart(i,Lr),e.formatGeneratedNamePart(o)))}function Br(e){return jr(e)&&!s.has(e)&&!(g&&g.has(e))}function jr(t){return!i||e.isFileLevelUniqueName(i,t,F)}function Jr(e){var t;switch(e){case"":return _;case"#":return d;default:return null!==(t=null==l?void 0:l.get(e))&&void 0!==t?t:0}}function Ur(t,r){switch(t){case"":_=r;break;case"#":d=r;break;default:null!=l||(l=new e.Map),l.set(t,r)}}function zr(t,r,n,i,a){i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1));var o=e.formatGeneratedName(n,i,"",a),s=Jr(o);if(t&&!(s&t)){var c=268435456===t?"_i":"_n";if(Br(u=e.formatGeneratedName(n,i,c,a)))return s|=t,r&&Pr(u),Ur(o,s),u}for(;;){var l=268435455&s;if(s++,8!==l&&13!==l){var u;c=l<26?"_"+String.fromCharCode(97+l):"_"+(l-26);if(Br(u=e.formatGeneratedName(n,i,c,a)))return r&&Pr(u),Ur(o,s),u}}}function Vr(t,r,n,i,a,o,c){if((void 0===r&&(r=Br),t.length>0&&35===t.charCodeAt(0)&&(t=t.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n)&&r(u=e.formatGeneratedName(a,o,t,c)))return i?Pr(u):s.add(u),u;95!==t.charCodeAt(t.length-1)&&(t+="_");for(var l=1;;){var u;if(r(u=e.formatGeneratedName(a,o,t+l,c)))return i?Pr(u):s.add(u),u;l++}}function Kr(e){return Vr(e,jr,!0,!1,!1,"","")}function Wr(e,t){var r=Ue(2,e,t),n=re,i=ne,a=ie;qr(t),r(e,t),$r(t,n,i,a)}function qr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){ce(),ae=!1;var a=n<0||!!(512&r)||11===t.kind,o=i<0||!!(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Zr(n,355!==t.kind),(!a||n>=0&&512&r)&&(re=n),(!o||i>=0&&1024&r)&&(ne=i,260===t.kind&&(ie=i)));e.forEach(e.getSyntheticLeadingComments(t),Hr),le()}(t,r,n.pos,n.end),2048&r&&(oe=!0)}function $r(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(oe=!1),Gr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&Gr(t,a,s.pos,s.end,r,n,i)}function Gr(t,r,n,i,a,o,s){ce();var c=i<0||!!(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Qr),(n>0||i>0)&&n!==i&&(re=a,ne=o,ie=s,c||355===t.kind||function(e){dn(e,on)}(i)),le()}function Hr(e){(e.hasLeadingNewline||2===e.kind)&&h.writeLine(),Xr(e),e.hasTrailingNewLine||2===e.kind?h.writeLine():h.writeSpace(" ")}function Qr(e){h.isAtStartOfLine()||h.writeSpace(" "),Xr(e),e.hasTrailingNewLine&&h.writeLine()}function Xr(t){var r=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,h,0,r.length,V)}function Yr(t,r,n){ce();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=oe||c<0||!!(1024&l);s<0||!!(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Fe(),h,pn,a,V,oe))&&(k?k.push(o):k=[o])),le(),2048&l&&!oe?(oe=!0,n(t),oe=!1):n(t),ce(),u||(Zr(r.end,!0),ae&&!h.isAtStartOfLine()&&h.writeLine()),le()}function Zr(e,t){ae=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?un(e,tn):un(e,nn):0===e&&un(e,en)}function en(e,t,r,n,i){_n(e,t)&&nn(e,t,r,n,i)}function tn(e,t,r,n,i){_n(e,t)||nn(e,t,r,n,i)}function rn(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function nn(t,r,n,a,o){i&&rn(i.text,t)&&(ae||(e.emitNewLineBeforeLeadingCommentOfPosition(Fe(),h,o,t),ae=!0),yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a?h.writeLine():3===n&&h.writeSpace(" "))}function an(e){oe||-1===e||Zr(e,!0)}function on(t,r,n,a){i&&rn(i.text,t)&&(h.isAtStartOfLine()||h.writeSpace(" "),yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a&&h.writeLine())}function sn(e,t,r){oe||(ce(),dn(e,t?on:r?cn:ln),le())}function cn(t,r,n){i&&(yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),2===n&&h.writeLine())}function ln(t,r,n,a){i&&(yn(t),e.writeCommentRange(i.text,Fe(),h,t,r,V),yn(r),a?h.writeLine():h.writeSpace(" "))}function un(t,r){!i||-1!==re&&t===re||(function(t){return void 0!==k&&e.last(k).nodePos===t}(t)?function(t){if(!i)return;var r=e.last(k).detachedCommentEndPos;k.length-1?k.pop():k=void 0;e.forEachLeadingCommentRange(i.text,r,t,r)}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function dn(t,r){i&&(-1===ne||t!==ne&&t!==ie)&&e.forEachTrailingCommentRange(i.text,t,r)}function pn(t,r,n,a,o,s){i&&rn(i.text,a)&&(yn(a),e.writeCommentRange(t,r,n,a,o,s),yn(o))}function _n(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function fn(e,t){var r=Ue(3,e,t);gn(t),r(e,t),mn(t)}function gn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&b&&b.appendSourceMap(h.getLine(),h.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||x;355!==t.kind&&!(16&r)&&n.pos>=0&&vn(n.source||x,hn(a,n.pos)),64&r&&(Z=!0)}}function mn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(Z=!1),355!==t.kind&&!(32&r)&&n.end>=0&&vn(n.source||x,n.end))}function hn(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function yn(t){if(!(Z||e.positionIsSynthesized(t)||xn(x))){var r=e.getLineAndCharacterOfPosition(x,t),n=r.line,i=r.character;b.addMapping(h.getLine(),h.getColumn(),ee,n,i,void 0)}}function vn(e,t){if(e!==x){var r=x,n=ee;bn(e),yn(t),function(e,t){x=e,ee=t}(r,n)}else yn(t)}function bn(e){Z||(x=e,e!==D?xn(e)||(ee=b.addSource(e.fileName),t.inlineSources&&b.setSourceContent(ee,e.text),D=e,te=ee):ee=te)}function xn(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,r,n){t(e)}function T(e,t,r,n){t(e,r.select(n))}function C(e,t,r,n){t(e,r)}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=y,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return y(t,r)})),c=0,l=t.fileNames;c=0}function p(e){return t.realpath?t.realpath(e):e}function _(t,r,n){var i=t.sortedAndCanonicalizedFiles,o=a(r);if(n)e.insertSorted(i,o,e.compareStringsCaseSensitive)&&t.files.push(r);else{var s=e.binarySearch(i,o,e.identity,e.compareStringsCaseSensitive);if(s>=0){i.splice(s,1);var c=t.files.findIndex((function(e){return a(e)===o}));t.files.splice(c,1)}}}function f(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach((function(t){t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return n(e)===r})))&&e(t,a,n)}))},e.updatePackageJsonWatch=function(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,n,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,n,{createNewValue:a,onDeleteValue:r,onExistingValue:function(e,r,n){if(e.flags===r)return;e.watcher.close(),t.set(n,a(n,r))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),g=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,m=g||e.isArray(s)?void 0:s;return!!(h(f+".ts")||h(f+".tsx")||h(f+".ets"))&&(d("Project: ".concat(a," Detected output file: ").concat(n)),!0);function h(t){return g?!!g.getSourceFileByPath(t):m?m.getState().fileInfos.has(t):!!e.find(s,(function(e){return p(e)===t}))}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,a,o){e.setSysLog(n===t.Verbose?a:e.noop);var s={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,!!(1&n),i)}},c=n!==t.None?{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")}:void 0,l=n===t.Verbose?{watchFile:function(e,t,r,n,i,s){a("FileWatcher:: Added:: ".concat(_(e,r,n,i,s,o)));var l=c.watchFile(e,t,r,n,i,s);return{close:function(){a("FileWatcher:: Close:: ".concat(_(e,r,n,i,s,o))),l.close()}}},watchDirectory:function(t,r,n,i,s,l){var u="DirectoryWatcher:: Added:: ".concat(_(t,n,i,s,l,o));a(u);var d=e.timestamp(),p=c.watchDirectory(t,r,n,i,s,l),f=e.timestamp()-d;return a("Elapsed:: ".concat(f,"ms ").concat(u)),{close:function(){var r="DirectoryWatcher:: Close:: ".concat(_(t,n,i,s,l,o));a(r);var c=e.timestamp();p.close();var u=e.timestamp()-c;a("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:c||s,u=n===t.Verbose?function(e,t,r,n,i){return a("ExcludeWatcher:: Added:: ".concat(_(e,t,r,n,i,o))),{close:function(){return a("ExcludeWatcher:: Close:: ".concat(_(e,t,r,n,i,o)))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return function(n,i,a,o,s,c){var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?u(n,a,o,s,c):l[t].call(void 0,n,i,a,o,s,c)}}function p(t){return function(r,n,c,l,u,d){return s[t].call(void 0,r,(function(){for(var s=[],p=0;p=4,b=(m+1+"").length;v&&(b=Math.max(d.length,b));for(var x="",D=p;D<=m;D++){x+=o.getNewLine(),v&&p+11}))&&cr(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&0===d&&cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");z.checkJs&&!e.getAllowJSCompilerOption(z)&&de.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));z.emitDeclarationOnly&&(e.getEmitDeclarations(z)||cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&cr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));z.emitDecoratorMetadata&&!z.experimentalDecorators&&cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");z.jsxFactory?(z.reactNamespace&&cr(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+z.jsx)),e.parseIsolatedEntityName(z.jsxFactory,d)||lr("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!e.isIdentifierText(z.reactNamespace,d)&&lr("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,z.reactNamespace);z.jsxFragmentFactory&&(z.jsxFactory||cr(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+z.jsx)),e.parseIsolatedEntityName(z.jsxFragmentFactory,d)||lr("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFragmentFactory));z.reactNamespace&&(4!==z.jsx&&5!==z.jsx||cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+z.jsx)));z.jsxImportSource&&2===z.jsx&&cr(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+z.jsx));z.preserveValueImports&&e.getEmitModuleKind(z)=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&b(o,r)),i=n&&W.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=q.get(t);return!!a&&(e.isTraceEnabled(z,oe)&&e.trace(oe,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function it(t){return{getPrependNodes:st,getCanonicalFileName:Xt,getCommonSourceDirectory:Ge.getCommonSourceDirectory,getCompilerOptions:Ge.getCompilerOptions,getCurrentDirectory:function(){return pe},getNewLine:function(){return oe.getNewLine()},getSourceFile:Ge.getSourceFile,getSourceFileByPath:Ge.getSourceFileByPath,getSourceFiles:Ge.getSourceFiles,getLibFileFromReference:Ge.getLibFileFromReference,isSourceFileFromExternalLibrary:ct,getResolvedProjectReferenceToRedirect:Ut,getProjectReferenceRedirect:Bt,isSourceOfProjectReferenceRedirect:Kt,getSymlinkCache:mr,writeFile:t||at,isEmitBlocked:ut,readFile:function(e){return oe.readFile(e)},fileExists:function(t){var r=tt(t);return!!pt(r)||!e.contains(ve,r)&&oe.fileExists(t)},useCaseSensitiveFileNames:function(){return oe.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Ge.getProgramBuildInfo&&Ge.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return Ge.getSourceFileFromReference(e,t)},redirectTargetsMap:Ee,getFileIncludeReasons:Ge.getFileIncludeReasons,createHash:e.maybeBind(oe,oe.createHash)}}function at(e,t,r,n,i,a){oe.writeFile(e,t,r,n,i,a)}function ot(){return be}function st(){return I(K,(function(e,t){var r;return null===(r=be[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=tt(e),r=pt(t);return r?r.text:Ae.has(t)?void 0:oe.readFile(t)}))}function ct(e){return!!ee.get(e.path)}function lt(){return R||(R=e.createTypeChecker(Ge))}function ut(e){return ge.has(tt(e))}function dt(e){return pt(tt(e))}function pt(e){return Ae.get(e)||void 0}function _t(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(Ge.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function ft(t){var r;if(e.skipTypeChecking(t,z,Ge)||t.isDeclarationFile&&z.needDoArkTsLinter)return e.emptyArray;var n=de.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?bt(t,t.commentDirectives,n).diagnostics:n}function gt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return mt((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,i),r;function n(t,n){switch(n.kind){case 167:case 170:case 172:if(n.questionToken===t)return r.push(s(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 171:case 174:case 175:case 176:case 216:case 261:case 217:case 259:if(n.type===t)return r.push(s(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 273:if(t.isTypeOnly)return r.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(t)?"import...type":"export...type")),"skip";break;case 271:return r.push(s(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(t.isExportEquals)return r.push(s(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 297:if(118===t.token)return r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:var i=e.tokenToString(119);return e.Debug.assertIsDefined(i),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 267:var a=16&t.flags?e.tokenToString(144):e.tokenToString(143);return e.Debug.assertIsDefined(a),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 265:return r.push(s(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 266:var o=e.Debug.checkDefined(e.tokenToString(93));return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 234:return r.push(s(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 233:return r.push(s(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 237:return r.push(s(t.type,e.Diagnostics.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 214:e.Debug.fail()}}function i(t,n){switch(e.canHaveModifiers(n)&&n.modifiers===t&&e.some(t,e.isDecorator)&&!z.experimentalDecorators&&r.push(s(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 262:case 230:case 263:case 172:case 174:case 175:case 176:case 216:case 261:case 217:if(t===n.typeParameters)return r.push(o(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 242:if(t===n.modifiers)return a(n.modifiers,242===n.kind),"skip";break;case 170:if(t===n.modifiers){for(var i=0,c=t;i=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function xt(e,t){return St(e,t,H,Dt)}function Dt(t,r){return mt((function(){var n=lt().getEmitResolver(t,r);return e.getDeclarationDiagnostics(it(e.noop),n,t)||e.emptyArray}))}function St(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function Tt(e,t){return e.isDeclarationFile?[]:xt(e,t)}function Ct(t,r,n,i){wt(e.normalizePath(t),r,n,void 0,i)}function Et(e,t){return e.fileName===t.fileName}function kt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function At(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Nt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((z.isolatedModules||o)&&!t.isDeclarationFile){z.importHelpers&&(r=[At(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(z,t),z);s&&(r||(r=[])).push(At(s,t))}for(var c=0,l=t.statements;c=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),ke||0!==Y||t.isDeclarationFile||(ke=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,_=d.statements;p<_.length;p++){u(_[p],!0)}}}}function d(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r0),Object.defineProperties(c,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),c}(T,D,t,c,tt(t),f,x);return Ee.add(T.path,t),Rt(C,c,_),Lt(C,i),Ce.set(c,e.packageIdToPackageName(a)),h.push(C),C}D&&(Te.set(S,D),Ce.set(c,e.packageIdToPackageName(a)))}if(Rt(D,c,_),D){if(ee.set(c,Y>0),D.fileName=t,D.path=c,D.resolvedPath=tt(t),D.originalFileName=f,D.packageJsonLocations=(null===(s=x.packageJsonLocations)||void 0===s?void 0:s.length)?x.packageJsonLocations:void 0,D.packageJsonScope=x.packageJsonScope,Lt(D,i),oe.useCaseSensitiveFileNames()){var k=e.toFileNameLowerCase(c),A=Ne.get(k);A?It(t,A,i):Ne.set(k,D)}ce=ce||D.hasNoDefaultLib&&!n,z.noResolve||(qt(D,r),$t(D)),z.noLib||Qt(D),Yt(D),r?m.push(D):h.push(D)}return D}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Mt(t,r,n,i){var o=N(e.getNormalizedAbsolutePath(t,pe),null==r?void 0:r.getPackageJsonInfoCache(),n,i),s=e.getEmitScriptTarget(i),c=e.getSetExternalModuleIndicator(i);return"object"==typeof o?a(a({},o),{languageVersion:s,setExternalModuleIndicator:c}):{languageVersion:s,impliedNodeFormat:o,setExternalModuleIndicator:c}}function Lt(e,t){e&&$.add(e.path,t)}function Rt(e,t,r){r?(Ae.set(r,e),Ae.set(t,e||!1)):Ae.set(t,e)}function Bt(e){var t=jt(e);return t&&Jt(t,e)}function jt(t){if(be&&be.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Ut(t)}function Jt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!oe.useCaseSensitiveFileNames())}function Ut(t){void 0===De&&(De=new e.Map,zt((function(e){tt(z.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return De.set(tt(t),e.sourceFile.path)}))})));var r=De.get(tt(t));return r&&Wt(r)}function zt(t){return e.forEachResolvedProjectReference(be,t)}function Vt(t){if(e.isDeclarationFileName(t))return void 0===Se&&(Se=new e.Map,zt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");Se.set(tt(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!oe.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!oe.useCaseSensitiveFileNames(),i);Se.set(tt(n),r)}}))}}))),Se.get(t)}function Kt(e){return Fe&&!!Ut(e)}function Wt(e){if(xe)return xe.get(e)||void 0}function qt(r,n){e.forEach(r.referencedFiles,(function(i,a){wt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function $t(t){var r=t.typeReferenceDirectives;if(r)for(var n=Xe(r,t),i=0;iX,_=d&&!M(a,s)&&!a.noResolve&&op?e.createDiagnosticForNodeInSourceFile(d,_.elements[p],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!z.types)return;i=sr("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=sr("lib",z.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(z)?r:void 0}));i=f?(g=f,(m=ar("target"))&&e.firstDefined(m,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===g?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}var g,m;return i&&e.createDiagnosticForNodeInSourceFile(z.configFile,i,a)}(t))),t===r&&(r=void 0)}}function tr(e,t,r,n){(j||(j=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function rr(e,t,r){de.add(er(e,void 0,t,r))}function nr(t,r,n,i,a,o){for(var s=!0,c=0,l=or();cr&&(de.add(e.createDiagnosticForNodeInSourceFile(z.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&de.add(e.createCompilerDiagnostic(n,i,a,o))}function ir(t,r,n,i){for(var a=!0,o=0,s=or();or?de.add(e.createDiagnosticForNodeInSourceFile(t||z.configFile,o.elements[r],n,i,a)):de.add(e.createCompilerDiagnostic(n,i,a))}function dr(t,r,n,i,a,o,s){var c=pr();(!c||!_r(c,t,r,n,i,a,o,s))&&de.add(e.createCompilerDiagnostic(i,a,o,s))}function pr(){if(void 0===te){te=!1;var t=e.getTsConfigObjectLiteralExpression(z.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,l=r.imports;c0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];S(o(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(o(t,r,d,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var g=0,m=r.moduleAugmentations;g1&&D(x)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var d=l.pop();if(!c.has(d)){var p=r.getSourceFileByPath(d);c.set(d,p),p&&u(t,r,p,i,a,o)&&l.push.apply(l,_(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(c.values(),(function(e){return e})))}t.createManyToManyPathMap=r,t.canReuseOldState=c,t.create=function(t,n,i,a){var o,l,u,d=new e.Map,p=t.getCompilerOptions().module!==e.ModuleKind.None?r():void 0,_=p?r():void 0,g=c(p,i);t.getTypeChecker();for(var m=0,h=t.getSourceFiles();m0;){var d=l.pop();if(!c.has(d)){if(c.set(d,!0),_(t,d,n,i,a,o))return;if(u(t,d,n,i,a,o),p(t,d)){var g=e.Debug.checkDefined(t.program).getSourceFileByPath(d);l.push.apply(l,e.BuilderState.getReferencedByPaths(t,g.resolvedPath))}}}}var m=new e.Set;null===(s=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===s||s.forEach((function(r){if(_(t,r,n,i,a,o))return!0;var s=t.referencedMap.getKeys(r);return s&&e.forEachKey(s,(function(e){return f(t,e,m,n,i,a,o)}))}))}(t,r,n,i,a,o)}function u(t,r,n,i,a,o){if(d(t,r),!t.changedFilesSet.has(r)){var s=e.Debug.checkDefined(t.program),c=s.getSourceFileByPath(r);c&&(e.BuilderState.updateShapeSignature(t,s,c,n,i,a,!o.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&E(t,r,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function p(t,r){var n=e.Debug.checkDefined(t.oldSignatures).get(r)||void 0;return e.Debug.checkDefined(t.fileInfos.get(r)).signature!==n}function _(t,r,n,i,a,o){var s;return!!(null===(s=t.fileInfos.get(r))||void 0===s?void 0:s.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((function(e){return u(t,e.resolvedPath,n,i,a,o)})),c(t),!0)}function f(t,r,n,i,a,o,s){var c,l;if(e.tryAddToSet(n,r)){if(_(t,r,i,a,o,s))return!0;u(t,r,i,a,o,s),null===(c=t.exportedModulesMap.getKeys(r))||void 0===c||c.forEach((function(e){return f(t,e,n,i,a,o,s)})),null===(l=t.referencedMap.getKeys(r))||void 0===l||l.forEach((function(e){return!n.has(e)&&u(t,e,i,a,o,s)}))}}function g(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),t.buildInfoEmitPending=!0,void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?t.affectedFilesPendingEmitIndex++:t.affectedFilesIndex++)}function m(e,t,r){return g(e,r),{result:t,affected:r}}function h(e,t,r,n,i,a){return g(e,r,n,i,a),{result:t,affected:r}}function y(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function v(t){return!!e.outFile(t.options||{})}function b(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function x(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=D(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return D(e,r)})):[]:void 0,t}))}function D(e,t){var r=e.file;return a(a({},e),{file:r?t(r.resolvedPath):void 0})}function S(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function T(t,r,n,i,a){var o,s;return r=S(r,a),(null===(o=null==a?void 0:a.diagnostics)||void 0===o?void 0:o.length)&&(r+=a.diagnostics.map((function(r){return"".concat(function(r){if(r.file.resolvedPath===t.resolvedPath)return"(".concat(r.start,",").concat(r.length,")");void 0===s&&(s=e.getDirectoryPath(t.resolvedPath));return"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,r.file.resolvedPath,i)),"(").concat(r.start,",").concat(r.length,")")}(r)).concat(e.DiagnosticCategory[r.category]).concat(r.code,": ").concat(c(r.messageText))})).join("\n")),(null!=n?n:e.generateDjb2Hash)(r);function c(t){return e.isString(t)?t:void 0===t?"":t.next?t.messageText+t.next.map(c).join("\n"):t.messageText}}function C(t,r,n){return(null!=r?r:e.generateDjb2Hash)(S(t,n))}function E(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function k(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function A(t,r){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),e.isProgramBundleEmitBuildInfo=v,function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.computeSignatureWithDiagnostics=T,e.computeSignature=C,e.createBuilderProgram=function(n,a){var c=a.newProgram,l=a.host,u=a.oldProgram,d=a.configFileParsingDiagnostics,p=u&&u.getState();if(p&&c===p.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,u;var _=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),f=e.maybeBind(l,l.createHash),v=r(c,_,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=function(){return function(t,r){var n=e.outFile(t.compilerOptions);if(!n||t.compilerOptions.composite){var i=e.Debug.checkDefined(t.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),i)),o=t.latestChangedDtsFile?P(t.latestChangedDtsFile):void 0;if(n){var s=[],c=[];return t.program.getRootFileNames().forEach((function(e){var r=t.program.getSourceFile(e);r&&(s.push(I(r.resolvedPath)),c.push(r.version))})),{fileNames:s,fileInfos:c,options:L(t.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:t.outSignature,latestChangedDtsFile:o}}var l,u,d,p,_,f,g,m,h=[],y=new e.Map,v=e.arrayFrom(t.fileInfos.entries(),(function(r){var n,i,a=r[0],o=r[1],s=O(a);e.Debug.assert(h[s-1]===I(a));var c=null===(n=t.oldSignatures)||void 0===n?void 0:n.get(a),l=void 0!==c?c||void 0:o.signature;if(t.compilerOptions.composite){var u=t.program.getSourceFileByPath(a);if(!e.isJsonSourceFile(u)&&e.sourceFileMayBeEmitted(u,t.program)){var p=null===(i=t.emitSignatures)||void 0===i?void 0:i.get(a);p!==l&&(d||(d=[])).push(void 0===p?s:[s,p])}}return o.version===l?o.affectsGlobalScope||o.impliedFormat?{version:o.version,signature:void 0,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:o.version:void 0!==l?void 0===c?o:{version:o.version,signature:l,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:{version:o.version,signature:!1,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}}));if(t.referencedMap&&(p=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[O(e),M(t.referencedMap.getValues(e))]}))),t.exportedModulesMap&&(_=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var r,n=null===(r=t.oldExportedModulesMap)||void 0===r?void 0:r.get(e);return void 0===n?[O(e),M(t.exportedModulesMap.getValues(e))]:n?[O(e),M(n)]:void 0}))),t.semanticDiagnosticsPerFile)for(var D=0,S=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);D1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-Z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectoryOrFile=r,e.createResolutionCache=function(i,a,o){var s,c,l,u,d,p,_,f,g=e.createMultiMap(),m=[],h=[],y=e.createMultiMap(),v=new e.Map,b=!1,x=e.memoize((function(){return i.getCurrentDirectory()})),D=i.getCachedDirectoryStructureHost(),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(x(),i.getCanonicalFileName,void 0,T,C),k=new e.Map,A=e.createCacheWithRedirects(),N=e.createTypeReferenceDirectiveResolutionCache(x(),i.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),A),F=i.getCompilationSettings().ets?[".ets",".ts",".tsx",".js",".jsx",".json"]:[".ts",".tsx",".js",".jsx",".json",".ets"],w=new e.Map,P=new e.Map,I=new e.Map,O=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,x())),M=O&&i.toPath(O),L=void 0!==M?M.split(e.directorySeparator).length:0,R=new e.Map;return{getModuleResolutionCache:function(){return E},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:function(){E.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),g.forEach(Z),g.clear()},finishCachingPerDirectoryResolution:function(t,r){l=void 0,g.forEach(Z),g.clear(),t!==r&&(null==t||t.getSourceFiles().forEach((function(t){for(var r,n,i,a=e.isExternalOrCommonJsModule(t)&&null!==(n=null===(r=t.packageJsonLocations)||void 0===r?void 0:r.length)&&void 0!==n?n:0,o=null!==(i=v.get(t.path))&&void 0!==i?i:e.emptyArray,s=o.length;sa)for(s=a;sL+1?{dir:i.slice(0,L+1).join(e.directorySeparator),dirPath:n.slice(0,L+1).join(e.directorySeparator)}:{dir:O,dirPath:M,nonRecursive:!1}}return $(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,x())),e.getDirectoryPath(r))}function $(t,n){for(var a=e.isOhpm(i.getCompilationSettings().packageManagerType);a?e.pathContainsOHModules(n):e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isTargetModulesDerectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var o,s,c=!0;if(void 0!==M)for(;!J(n,M);){var l=e.getDirectoryPath(n);if(l===n)break;c=!1,o=n,s=t,n=l,t=e.getDirectoryPath(t)}return r(n)?{dir:s||t,dirPath:o||n,nonRecursive:c}:void 0}function G(t){return e.fileExtensionIsOneOf(t,F)}function H(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?Q(r):g.add(t,r);var o=a(r);o&&o.resolvedFileName&&y.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function Q(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations,n=t.affectingLocations;if(r.length||n.length){r.length&&m.push(t);for(var a=!1,o=0,s=r;o1),w.set(p,g-1))),f===M?c=!0:re(f)}}c&&re(M)}else s.length&&e.unorderedRemoveItem(h,t);for(var v=0,b=s;v1&&r.sort(m),l.push.apply(l,r));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},d=e.getDirectoryPath(t);0!==o.size;){var p=u(d);if(d=c,"break"===p)break}if(o.size){var _=e.arrayFrom(o.values());_.length>1&&_.sort(m),l.push.apply(l,_)}return l}function x(t,r,n){if(e.getEmitModuleResolutionKind(r)>=e.ModuleResolutionKind.Node16&&n===e.ModuleKind.ESNext)return[2];switch(t){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(t)}}function D(t,r,n,i,a){for(var o in r)for(var s=function(r){var i=e.normalizePath(r),s=i.indexOf("*"),c=n.map((function(e){return{ending:e,value:E(t,e,a)}}));if(e.tryGetExtensionFromPath(i)&&c.push({ending:void 0,value:t}),-1!==s)for(var l=i.substring(0,s),u=i.substring(s+1),p=0,_=c;p<_.length;p++){var f=_[p],g=f.ending,m=f.value;if(m.length>=l.length+u.length&&e.startsWith(m,l)&&e.endsWith(m,u)&&d({ending:g,value:m})){var h=m.substring(l.length,m.length-u.length);return{value:o.replace("*",h)}}}else if(e.some(c,(function(e){return 0!==e.ending&&i===e.value}))||e.some(c,(function(e){return 0===e.ending&&i===e.value&&d(e)})))return{value:o}},c=0,l=r[o];c=0||e.isApplicableVersionedTypesKey(o,h)){var y=a[h],v=S(t,r,n,i,y,o);if(v)return v}}}}}function T(t,r,n,i,o,c,l,d){var p=t.path,_=t.isRedirect,f=r.getCanonicalFileName,g=r.sourceDirectory;if(i.fileExists&&i.readFile){var m=e.getNodeModulePathParts(p,e.isOhpm(o.packageManagerType)?e.ohModulesPathPart:e.nodeModulesPathPart);if(m){var h=s(i,c,o,n),y=p,v=!1;if(!l)for(var b=m.packageRootIndex,T=void 0;;){var C=L(b),k=C.moduleFileToTry,N=C.packageRootPath,F=C.blockedByExports,w=C.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(F)return;if(w)return k}if(N){y=N,v=!0;break}if(T||(T=k),-1===(b=p.indexOf(e.directorySeparator,b+1))){y=E(T,h.ending,o,i);break}}if(!_||v){var P=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),I=f(y.substring(0,m.topLevelNodeModulesIndex));if(e.startsWith(g,I)||P&&e.startsWith(f(P),I)){var O=y.substring(m.topLevelPackageNameIndex+1),M=e.getPackageNameFromTypesPackageName(O);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&M===O?void 0:M}}}}function L(t){var r,s,c=p.substring(0,t),l=e.combinePaths(c,e.getPackageJsonByPMType(o.packageManagerType)),_=p,g=!1,y=null===(s=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===s?void 0:s.getPackageJsonInfo(l);if("object"==typeof y||void 0===y&&i.fileExists(l)){var v=(null==y?void 0:y.contents.packageJsonContent)||e.isOhpm(o.packageManagerType)?u.parse(i.readFile(l)):JSON.parse(i.readFile(l)),b=d||n.impliedNodeFormat;if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var T=["node",b===e.ModuleKind.ESNext?"import":"require","types"],C=v.exports&&"string"==typeof v.name?S(o,p,c,e.getPackageNameFromTypesPackageName(v.name),v.exports,T):void 0;if(C){var E=e.hasTSFileExtension(C.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(C.moduleFileToTry)+A(C.moduleFileToTry,o)}:C;return a(a({},E),{verbatimFromExports:!0})}if(v.exports)return{moduleFileToTry:p,blockedByExports:!0}}var k=v.typesVersions?e.getPackageJsonTypesVersionsPaths(v.typesVersions):void 0;if(k){var N=D(p.slice(c.length+1),k.paths,x(h.ending,o,b),i,o);void 0===N?g=!0:_=e.combinePaths(c,N)}var F=v.typings||v.types||v.main||"index.js";if(e.isString(F)&&(!g||!e.matchPatternOrExact(e.tryParsePatterns(k.paths),F))){var w=e.toPath(F,c,f);if(e.removeFileExtension(w)===e.removeFileExtension(f(_)))return{packageRootPath:c,moduleFileToTry:_}}}else{var P=f(_.substring(m.packageRootIndex+1));if("index.d.ts"===P||"index.js"===P||"index.ts"===P||"index.tsx"===P)return{moduleFileToTry:_,packageRootPath:c}}return{moduleFileToTry:_}}}function C(t,r,n){return e.mapDefined(r,(function(e){var r=N(t,e,n);return void 0!==r&&F(r)?void 0:r}))}function E(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+k(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&function(t,r){if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n1?function(t,r){var n=t.filter((function(e,t,r){return t===r.findIndex((function(t){return(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)}))}));if(0===n.length)return"";var i=function(e){return Math.log(e)*Math.LOG10E+1},a=n.map((function(r){return[r,e.countWhere(t,(function(e){return e.fileName===r.fileName}))]})),o=a.reduce((function(e,t){return Math.max(e,t[1]||0)}),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,l=Math.max(c,i(o)),d=Math.max(i(o)-c,0),p="";return p+=" ".repeat(d)+s+"\n",a.forEach((function(e){var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(t,t.now)}}function T(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=S(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));b(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(l(t),t),s,i,t)}))},o}function C(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getFilesInErrorForSummary=c,e.getWatchErrorSummaryDiagnosticMessage=l,e.getErrorSummaryText=d,e.isBuilderProgram=p,e.listFiles=_,e.explainFiles=f,e.explainIfFileIsRedirectAndImpliedFormat=g,e.getMatchedFileSpec=m,e.getMatchedIncludeSpec=h,e.fileIncludeReasonToDiagnostics=y,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()})),o={getSourceFile:function(n,i,a){var s,c=r();try{e.performance.mark("beforeIORead");var l=r().charset;s=l?t.readFile(n,l):o.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),s=""}return void 0!==s?e.createSourceFile(n,s,i,void 0,void 0,c):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return o},e.setGetSourceFileAsHashVersioned=function(t){var r=t.getSourceFile,n=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;ac)}}}function F(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function w(t,n,i){if(t.projectPendingBuild.size&&!l(n))for(var a=t.options,o=t.projectPendingBuild,s=0;sN&&(A=I,N=O)}if(!T)for(var j=e.getAllProjectOutputs(r,!S.useCaseSensitiveFileNames()),U=J(t,n),$=0,H=j;$=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&ro)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(o," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.validatePackageName=function(e){return s(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(d||(d={})),function(e){var t,r;function n(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(e){e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(e){e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(e){e.Original="original",e.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(e){e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused"}(e.OrganizeImportsMode||(e.OrganizeImportsMode={})),function(e){e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(e){e.Type="Type",e.Parameter="Parameter",e.Enum="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=n,e.testFormatSettings=n("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets"}(e.CompletionInfoFlags||(e.CompletionInfoFlags={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.structElement="struct",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e.etsModifier=".ets",e.detsModifier=".d.ets"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(d||(d={})),function(e){function t(t){switch(t.kind){case 259:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 167:case 206:case 170:case 169:case 302:case 303:case 172:case 171:case 174:case 175:case 176:case 261:case 216:case 217:case 298:case 291:return 1;case 166:case 264:case 265:case 185:return 2;case 351:return void 0===t.name?3:2;case 305:case 262:case 263:return 3;case 267:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 311:return 5}return 7}function r(t){for(;164===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(t,r,n,i,a){var o=i?l(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||_(e)?e.parent:e}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function _(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){var i=(n=w(n)).parent;return 311===n.kind?1:e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name?7:r(n)?function(t){var r=164===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&271===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 109:return!e.isExpressionNode(t);case 195:return!0}switch(t.parent.kind){case 181:return!0;case 203:return!t.parent.isTypeOf;case 232:return e.isPartOfTypeNode(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(164===t.parent.kind){for(;t.parent&&164===t.parent.kind;)t=t.parent;r=t.right===e}return 181===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(209===t.parent.kind){for(;t.parent&&209===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&232===t.parent.kind&&297===t.parent.parent.kind){var n=t.parent.parent.parent;return(262===n.kind||263===n.kind)&&118===t.parent.parent.token||264===n.kind&&95===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallExpression,n,r,i)},e.isNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isNewExpression,n,r,i)},e.isCallOrNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallOrNewExpression,n,r,i)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isTaggedTemplateExpression,i,r,n)},e.isDecoratorTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isDecorator,n,r,i)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isJsxOpeningLikeElement,o,r,n)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(255===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=_,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 170:case 169:case 302:case 305:case 172:case 171:case 175:case 176:case 267:return e.getNameOfDeclaration(t.parent)===t;case 210:return t.parent.argumentExpression===t;case 165:return!0;case 199:return 197===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 311:case 172:case 171:case 261:case 216:case 175:case 176:case 262:case 263:case 264:case 266:case 267:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 311:return e.isExternalModule(r)?"module":"script";case 267:return"module";case 262:case 230:return"class";case 263:return"struct";case 264:return"interface";case 265:case 344:case 351:return"type";case 266:return"enum";case 259:return c(r);case 206:return c(e.getRootDeclaration(r));case 217:case 261:case 216:return"function";case 175:return"getter";case 176:return"setter";case 172:case 171:return"method";case 302:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 170:case 169:case 303:case 304:return"property";case 179:return"index";case 178:return"construct";case 177:return"call";case 174:case 173:return"constructor";case 166:return"type parameter";case 305:return"enum member";case 167:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 225:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 277:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 109:return!0;case 79:return e.identifierIsThisKeyword(t)&&167===t.parent.kind;default:return!1}};var f=/^\/\/\/\s*=r.end}function y(e,t,r,n){return Math.max(e,r)r?1:u(a[e],c,s)?a[e-1]&&u(a[e-1])?1:0:i&&c===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var l=c();if("object"==typeof l)return l.value}function u(e,s,c){if(null!=c||(c=e.getEnd()),cr)return!1;if(rt.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function L(t,r,n,i){var a=function a(o){if(R(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(t=t||!q(l,r)||J(l)){var u=j(s,c,r,o.kind);return u&&B(u,r)}return a(l)}}e.Debug.assert(void 0!==n||311===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=j(s,s.length,r,o.kind);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&J(a))),a}function R(t){return e.isToken(t)&&!J(t)}function B(e,t){if(R(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=j(r,r.length,t,e.kind);return n&&B(n,t)}function j(t,r,n,i){for(var a=r-1;a>=0;a--){if(J(t[a]))0!==a||11!==i&&285!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[a],n))return t[a]}}function J(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function U(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)=r}))}function K(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=U(n,18,r)))return;break;case 21:if(!(n=U(n,20,r)))return;break;case 23:if(!(n=U(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 111:case 96:case 113:case 95:case 142:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function W(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function $(e,t,r){var n=W(e,t,void 0);return!!n&&r===f.test(e.text.substring(n.pos,n.end))}function G(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function H(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function X(e){return 155===e.kind}function Y(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function Z(e,t){return a(a({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function ee(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?te(n,i):n,void 0)}function te(t,r){return e.factory.createStringLiteral(t,0===r)}function re(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ne(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?re(n,t):1}function ie(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function ae(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function oe(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function se(t,r,n){var i=r.tryGetSourcePosition(t);return i&&(!n||n(e.normalizePath(i.fileName))?i:void 0)}function ce(e,t,r){var n=e.contextSpan&&se({fileName:e.fileName,pos:e.contextSpan.start},t,r),i=e.contextSpan&&se({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return n&&i?{start:n.pos,length:i.pos-n.pos}:void 0}function le(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"}))}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,t){return m(e,t.pos)&&m(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=m,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return y(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return y(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=y,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=I(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=285&&r.kind<=294||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(284!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(I(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=z,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=K(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==V(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=V,e.getPossibleTypeArgumentsInfo=K,e.isInComment=W,e.hasDocComment=function(t,r){var n=I(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),256&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),277===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 181===t.kind||211===t.kind?t.typeArguments:e.isFunctionLike(t)||262===t.kind||264===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=Y,e.getModuleSpecifierResolverHost=Z,e.moduleResolutionRespectsExports=function(t){return t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.moduleResolutionUsesNodeModules=function(t){return t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?ee(e,t,r,n):void 0},e.makeImport=ee,e.makeStringLiteral=te,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=re,e.getQuotePreference=ne,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ie(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ie,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!ae(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return e.canHaveModifiers(t)?e.find(t.modifiers,(function(e){return e.kind===r})):void 0},e.insertImports=function(t,r,n,i){var a=242===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(pe(" ",e.SymbolDisplayPartKind.space)),t.push(pe("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(de(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(ye()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(pe(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(pe(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function de(t,r){return pe(t,function(t){var r=t.flags;if(3&r)return le(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;return 4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function pe(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function _e(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function fe(t){return pe(t,e.SymbolDisplayPartKind.text)}function ge(t){return pe(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:G(r)}}}function he(t){return pe(t,e.SymbolDisplayPartKind.link)}e.symbolPart=de,e.displayPart=pe,e.spacePart=function(){return pe(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=_e,e.punctuationPart=function(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return pe(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?fe(t):_e(r)},e.textPart=fe,e.typeAliasNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return pe(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=ge,e.linkNamePart=me,e.linkPart=he,e.buildLinkParts=function(t,r){var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[he("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;var t=0,r=0;for(;r"===e[r]&&t--,r++,!t)return r;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=function(e){var t=0;if(124===e.charCodeAt(t++)){for(;t=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function We(e,t){return $e(e,e.fileExists,t)}function qe(e){try{return e()}catch(e){return}}function $e(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=De,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Ce,e.getSynthesizedDeepClonesWithReplacements=Ee,e.suppressLeadingAndTrailingTrivia=ke,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Ne,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=Pe,e.copyTrailingComments=Ie,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=Re,e.quote=function(t,r,n){var i=ne(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Be,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 227:case 213:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(r,n)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Je,Ue,ze,Ve),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Je(t.kind)){if(n&&27===n.kind)return!1}else if(ze(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Ue(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ve(t.kind))return!1;if(245===t.kind)return!0;var a=M(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=Ke,e.tryGetDirectories=function(e,t){return $e(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return $e(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=We,e.tryDirectoryExists=function(t,r){return qe((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=qe,e.tryIOAndConsumeErrors=$e,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,e.getPackageJsonByPMType(r.getCompilationSettings().packageManagerType));We(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){var i=e.getModuleByPMType(r.getCompilationSettings().packageManagerType),a=e.getPackageJsonByPMType(r.getCompilationSettings().packageManagerType);return t===i||(!!(n=e.findConfigFile(t,(function(e){return We(r,e)}),a))||void 0)})),n},e.getPackageJsonsVisibleToFile=Ge,e.createPackageJsonInfo=He,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||Ge(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());if(s(i))return!0;return o(n)||o(i)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);if(!r)return!0;return o(r)},allowsImportingSpecifier:function(t){if(!a.length||s(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return o(t)}};function o(t){for(var r=l(t),n=0,i=a;n=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Xe)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Xe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=function(t,r){var n=I(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":e.isExpression(n)&&oe(r,G(n,t))}))},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNamesForExportedSymbol=function(t,r){if(Ye(t)){var n=Ze(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(et(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(et(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=function(t,r,n){return Ye(t)?Ze(t)||e.codefix.moduleSymbolToValidIdentifier(et(t),r,!!n):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;iD.indexOf(e.nodeModulesPathPart)&&o.set(h,S);else o.set(h,S)}}}var T=1===_&&e.getLocalSymbolForExportDefault(l)||l,C=0===_||e.isExternalModuleSymbol(T)?e.unescapeLeadingUnderscores(u):e.getNamesForExportedSymbol(T,void 0),E="string"==typeof C?C:C[0],k="string"==typeof C?void 0:C[1],A=e.stripQuotes(d.name),N=n++,F=e.skipAlias(l,g),w=33554432&l.flags?void 0:l,P=33554432&d.flags?void 0:d;w&&P||a.set(N,[l,d]),i.add(function(t,r,n,i){var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)}(E,l,e.isExternalModuleNameRelative(A)?void 0:A,g),{id:N,symbolTableKey:u,symbolName:E,capitalizedSymbolName:k,moduleName:A,moduleFile:p,moduleFileName:null==p?void 0:p.fileName,packageName:h,exportKind:_,targetFlags:F.flags,isFromPackageJson:f,symbol:w,moduleSymbol:P})},get:function(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search:function(n,a,s,l){if(n===r)return e.forEachEntry(i,(function(r,n){var i=function(e){var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1),n=""===r?void 0:r;return{symbolName:t,ambientModuleName:n}}(n),u=i.symbolName,d=i.ambientModuleName,p=a&&r[0].capitalizedSymbolName||u;if(s(p,r[0].targetFlags)){var _=r.map(c).filter((function(n,i){return function(r,n){if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)}(n,r[i].packageName)}));if(_.length){var f=l(_,p,!!d,n);if(void 0!==f)return f}}}))},releaseSymbols:function(){a.clear()},onFileChanged:function(t,n,i){return(!l(t)||!l(n))&&(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!function(t,r){if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o=i.length){var b=r(o,l,e.lastOrUndefined(d));void 0!==b&&(m=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&y++;break;case 31:y>0&&y--;break;case 132:case 153:case 149:case 135:case 154:y>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 138:case 152:case 136:case 125:case 128:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:m,spans:h}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var p=r.length-o;p>0&&n.push({length:p,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,109,45,46,21,23,19,111,96],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(!(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 103:case 102:case 129:case 151:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 267:case 262:case 264:case 261:case 230:case 216:case 217:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 2885600&i?32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im,a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;p(c,s[1].length),u(c+=s[1].length,s[2].length,10),u(c+=s[2].length,s[3].length,21),c+=s[3].length;var l=s[4],d=c;for(;;){var _=a.exec(l);if(!_)break;var f=c+_.index+_[1].length;f>d&&(p(d,f-d),d=f),u(d,_[2].length,22),d+=_[2].length,_[3].length&&(p(d,_[3].length),d+=_[3].length),u(d,_[4].length,5),d+=_[4].length,_[5].length&&(p(d,_[5].length),d+=_[5].length),u(d,_[6].length,24),d+=_[6].length}(c+=s[4].length)>d&&p(d,c-d);s[5]&&(u(c,s[5].length,10),c+=s[5].length);var g=t+n;c=0),a>0){var o=n||h(t.kind,t);o&&u(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(259===n.kind||170===n.kind||167===n.kind||291===n.kind))return 5;if(225===n.kind||223===n.kind||224===n.kind||226===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&291===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 262:return r.parent.name===r?11:void 0;case 166:return r.parent.name===r?15:void 0;case 264:return r.parent.name===r?13:void 0;case 266:return r.parent.name===r?12:void 0;case 267:return r.parent.name===r?14:void 0;case 167:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(l,p,g);var h=f.valueDeclaration;if(h){var y=e.getCombinedModifierFlags(h),v=e.getCombinedNodeFlags(h);32&y&&(m|=2),512&y&&(m|=4),0!==g&&2!==g&&(64&y||2&v||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){e.isBindingElement(t)&&(t=i(t));if(e.isVariableDeclaration(t))return(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r;if(e.isFunctionDeclaration(t))return!e.isSourceFile(t.parent)&&t.getSourceFile()===r;return!1}(h,r)||(m|=32),t.isSourceFileDefaultLibrary(h.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);s(p,g,m)}}}p.virtual||(e.forEachChild(p,d),u=_)}}d(r)}(t,r,n,(function(e,t,n){c.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),s),c}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}!function(e){e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask"}(t.TokenEncodingConsts||(t.TokenEncodingConsts={})),function(e){e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member"}(t.TokenType||(t.TokenType={})),function(e){e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local"}(t.TokenModifier||(t.TokenModifier={})),t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;lr.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),m(s,o)}}));return e.length(l)?{kind:2,types:l,isNewIdentifier:a}:void 0}(C.invocation,n,C,a)||E()}case 272:case 278:case 283:return{kind:0,paths:b(r,n,o,s,a,c)};default:return E()}function E(){return{kind:2,types:m(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function f(t){switch(t.kind){case 194:return e.walkUpParenthesizedTypes(t);case 215:return e.walkUpParenthesizedExpressions(t);default:return t}}function g(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function m(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return m(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function h(e,t,r){return{name:e,kind:t,extension:r}}function y(e){return h(e,"directory",void 0)}function v(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function b(t,r,n,a,o,s){return v(r.text,r.getStart(t)+1,function(t,r,n,a,o,s){var c=e.normalizeSlashes(r.text),l=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,d=t.path,p=e.getDirectoryPath(d);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,n,a,o,s){var c=x(n,s);return n.rootDirs?function(t,r,n,a,o,s,c){var l=o.project||s.getCurrentDirectory(),u=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),d=function(t,r,n,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0}));return e.deduplicate(i(i([],t.map((function(t){return e.combinePaths(t,o)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,l,n,u);return e.flatMap(d,(function(t){return e.arrayFrom(T(r,t,a,s,c).values())}))}(n.rootDirs,t,r,c,n,a,o):e.arrayFrom(T(t,r,c,a,o).values())}(c,p,n,a,d,_()):function(t,r,n,i,a,o,s){var c=i.baseUrl,l=i.paths,d=u(),p=x(i,o);if(c){var _=i.project||a.getCurrentDirectory(),f=e.normalizePath(e.combinePaths(_,c));T(t,f,p,a,void 0,d),l&&E(d,t,f,p,a,l)}for(var g=N(t),m=0,y=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,g,s);m-1||e.isApplicableVersionedTypesKey(r,n))return A(t[n],r)}}function N(t){return L(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function F(t,r,n,i,o,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t,"script");var l=t.slice(0,t.length-1),u=e.tryRemovePrefix(n,l);return void 0===u?"/"===t[t.length-2]?d(l,"directory"):e.flatMap(r,(function(e){var t;return null===(t=w("",i,e,o,s))||void 0===t?void 0:t.map((function(e){var t=e.name,r=c(e,["name"]);return a({name:l+t},r)}))})):e.flatMap(r,(function(e){return w(u,i,e,o,s)}));function d(t,r){return e.startsWith(t,n)?[{name:e.removeTrailingDirectorySeparator(t),kind:r,extension:void 0}]:e.emptyArray}}function w(t,r,n,a,o){if(o.readDirectory){var s=e.tryParsePattern(n);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=L(t),p=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,_=d?e.combinePaths(l,u+p):l,f=e.normalizePath(s.suffix),g=e.normalizePath(e.combinePaths(r,_)),m=d?g:e.ensureTrailingDirectorySeparator(g)+u,v=f?"**/*"+f:"./*",b=e.mapDefined(e.tryReadDirectory(o,g,a.extensions,void 0,[v]),(function(t){var r,n,i,s,c,l=(r=t,i=e.normalizePath(r),s=m,c=f,void 0===(n=e.startsWith(i,s)&&e.endsWith(i,c)?i.slice(s.length,i.length-c.length):void 0)?void 0:P(n));if(l){if(L(l))return y(e.getPathComponents(P(l))[1]);var u=C(l,o.getCompilationSettings(),a.includeExtensionsOption);return h(u.name,"script",u.extension)}})),x=f?e.emptyArray:e.mapDefined(e.tryGetDirectories(o,g),(function(e){return"node_modules"===e?void 0:y(e)}));return i(i([],b,!0),x,!0)}}}function P(t){return t[0]===e.directorySeparator?t.slice(1):t}function I(t,r,n,i,a,o){void 0===o&&(o=u());for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c=e.pos&&r<=e.end}));if(!s)return;var c=t.text.slice(s.pos,r),l=O.exec(c);if(!l)return;var u=l[1],d=l[2],p=l[3],_=e.getDirectoryPath(t.path),f="path"===d?T(p,_,x(n,1),i,t.path):"types"===d?I(i,n,_,N(p),x(n)):e.Debug.fail();return v(p,s.pos+u.length,e.arrayFrom(f.values()))}(r,n,a,o);return u&&d(u)}if(e.isInString(r,n,i)){if(!i||!e.isStringLiteralLike(i))return;return function(r,n,i,a,o,s,c,l){if(void 0===r)return;var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return d(r.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,p,n,n,i,i,a,o,99,s,4,l,c,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:p};case 2:p=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:p};default:return e.Debug.assertNever(r)}}(u=_(r,i,n,s.getTypeChecker(),a,o,l),i,r,o,s,c,a,l)}},r.getStringLiteralCompletionDetails=function(r,n,i,a,o,s,c,l,u){if(a&&e.isStringLiteralLike(a)){var d=_(n,a,i,o,s,c,u);return d&&function(r,n,i,a,o,s){switch(i.kind){case 0:return(c=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,p(c.extension),c.kind,[e.textPart(r)]);case 1:var c;return(c=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(c,o,a,n,s);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,a,d,n,o,l)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var O=/^(\/\/\/\s*0},resolvedBeyondLimit:function(){return y>t.moduleSpecifierResolutionLimit}}),D=b?" (".concat((v/b*100).toFixed(1),"% hit rate)"):"";return null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": resolved ").concat(y," module specifiers, plus ").concat(h," ambient and ").concat(v," from cache").concat(D)),null===(p=n.log)||void 0===p||p.call(n,"".concat(r,": response is ").concat(m?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": ").concat(e.timestamp()-f)),x}function f(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function m(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function h(e,t,r){return{kind:4,keywordCompletions:K(e,t),isNewIdentifierLocation:r}}function y(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function v(t,r){return!e.isSourceFileJS(t)||!!e.isCheckJsEnabledForFile(t,r)}function b(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function x(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function D(e,r,n){return{name:x(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function S(n,i,a,o,s,d,_,f,g,m,h,y,v,b,x,D,S,C,E,A,P,I){var O,M,L,R,B,j,J,U,z=e.getReplacementSpanForContextToken(a),V=w(h),K=f.getTypeChecker(),W=h&&function(e){return!!(16&e.kind)}(h),q=h&&function(e){return!!(2&e.kind)}(h)||m;if(h&&function(e){return!!(1&e.kind)}(h))L=m?"this".concat(W?"?.":"","[").concat(N(d,C,g),"]"):"this".concat(W?"?.":".").concat(g);else if((q||W)&&v){L=q?"[".concat(m?N(d,C,g):g,"]"):g,(W||v.questionDotToken)&&(L="?.".concat(L));var $=e.findChildOfKind(v,24,d)||e.findChildOfKind(v,28,d);if(!$)return;var G=e.startsWith(g,v.name.text)?v.name.end:$.end;z=e.createTextSpanFromBounds($.getStart(d),G)}if(b&&(void 0===L&&(L=g),L="{".concat(L,"}"),"boolean"!=typeof b&&(z=e.createTextSpanFromNode(b,d))),h&&function(e){return!!(8&e.kind)}(h)&&v){void 0===L&&(L=g);var H=e.findPrecedingToken(v.pos,d),Q="";H&&e.positionIsASICandidate(H.end,H.parent,d)&&(Q=";"),Q+="(await ".concat(v.expression.getText(),")"),L=m?"".concat(Q).concat(L):"".concat(Q).concat(W?"?.":".").concat(L),z=e.createTextSpanFromBounds(v.getStart(d),v.end)}if(l(h)&&(j=[e.textPart(h.moduleSpecifier)],x&&(O=function(t,r,n,i,a,o,s){var c=r.replacementSpan,l=e.quote(a,s,n.moduleSpecifier),u=n.isDefaultExport?1:"export="===n.exportName?2:0,d=s.includeCompletionsWithSnippetText?"$1":"",p=e.codefix.getImportKind(a,u,o,!0),_=r.couldBeTypeOnlyImportSpecifier,f=r.isTopLevelTypeOnly?" ".concat(e.tokenToString(155)," "):" ",g=_?"".concat(e.tokenToString(155)," "):"",m=i?";":"";switch(p){case 3:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," = require(").concat(l,")").concat(m)};case 1:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," from ").concat(l).concat(m)};case 2:return{replacementSpan:c,insertText:"import".concat(f,"* as ").concat(e.escapeSnippetText(t)," from ").concat(l).concat(m)};case 0:return{replacementSpan:c,insertText:"import".concat(f,"{ ").concat(g).concat(e.escapeSnippetText(t)).concat(d," } from ").concat(l).concat(m)}}}(g,x,h,D,d,S,C),L=O.insertText,z=O.replacementSpan,B=!!C.includeCompletionsWithSnippetText||void 0)),64===(null==h?void 0:h.kind)&&(J=!0),C.includeCompletionsWithClassMemberSnippets&&C.includeCompletionsWithInsertText&&3===E&&function(t,r,n){if(e.isInJSFile(r))return!1;var i=106500;return!!(t.flags&i)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&r.parent.getLastToken(n)===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent))}(n,s,d)){var X=void 0;L=(M=T(_,f,S,C,g,n,s,o,A)).insertText,B=M.isSnippet,X=M.importAdder,z=M.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==X?void 0:X.hasFixes())&&(J=!0,V=r.ClassMemberSnippet)}if(h&&p(h)&&(L=h.insertText,B=h.isSnippet,U=h.labelDetails,C.useLabelDetailsInCompletionEntries||(g+=U.detail,U=void 0),V=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),P&&!I&&C.includeCompletionsWithSnippetText&&C.jsxAttributeCompletionStyle&&"none"!==C.jsxAttributeCompletionStyle){var Y="braces"===C.jsxAttributeCompletionStyle,Z=K.getTypeOfSymbolAtLocation(n,s);"auto"!==C.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,(function(e){return!!(528&e.flags)}))||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,(function(e){return!!(402686084&e.flags)}))?(L="".concat(e.escapeSnippetText(g),"=").concat(e.quote(d,C,"$1")),B=!0):Y=!0),Y&&(L="".concat(e.escapeSnippetText(g),"={$1}"),B=!0)}if(void 0===L||C.includeCompletionsWithInsertText)return(c(h)||l(h))&&(R=k(h),J=!x),{name:g,kind:e.SymbolDisplay.getSymbolKind(K,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(K,n),sortText:i,source:V,hasAction:!!J||void 0,isRecommended:F(n,y,K)||void 0,insertText:L,replacementSpan:z,sourceDisplay:j,labelDetails:U,isSnippet:B,isPackageJsonImport:u(h)||void 0,isImportStatementCompletion:!!x||void 0,data:R}}function T(t,r,n,i,a,o,s,c,l){var u,d,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var _,f=a,g=r.getTypeChecker(),m=s.getSourceFile(),h=E({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),y=e.codefix.createImportAdder(m,r,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var v=e.factory.createEmptyStatement();_=e.factory.createBlock([v],!0),e.setSnippetElement(v,{kind:0,order:0})}else _=e.factory.createBlock([],!0);var b=0,x=function(t){if(!t)return{modifiers:0};var r,n,i=0;(n=function(t){if(e.isModifier(t))return t.kind;if(e.isIdentifier(t)&&t.originalKeywordKind&&e.isModifierKind(t.originalKeywordKind))return t.originalKeywordKind;return}(t))&&(i|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t));e.isPropertyDeclaration(t.parent)&&(i|=126975&e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent));return{modifiers:i,span:r}}(c),D=x.modifiers,S=x.span,T=!!(256&D),C=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,m,{program:r,host:t},i,y,(function(t){var r=0;T&&(r|=256),e.isClassElement(t)&&1===g.getMemberOverrideModifierStatus(p,t)&&(r|=16384),C.length||(b=t.modifierFlagsCache|r|D),t=e.factory.updateModifiers(t,b),C.push(t)}),_,2,T),C.length){var k=131073;d=S,f=l?h.printAndFormatSnippetList(k,e.factory.createNodeArray(C),m,l):h.printSnippetList(k,e.factory.createNodeArray(C),m)}return{insertText:f,isSnippet:u,importAdder:y,replacementSpan:d}}function C(t,r,n,i,a,o,s,c){var l=s.includeCompletionsWithSnippetText||void 0,u=r,d=n.getSourceFile(),p=function(t,r,n,i,a,o){var s=t.getDeclarations();if(!s||!s.length)return;var c=i.getTypeChecker(),l=s[0],u=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l),!1),d=c.getWidenedType(c.getTypeOfSymbolAtLocation(t,r)),p=e.getQuotePreference(n,o),_=33554432|(0===p?268435456:0);switch(l.kind){case 169:case 170:case 171:case 172:var f=1048576&d.flags&&d.types.length<10?c.getUnionType(d.types,2):d;if(1048576&f.flags){var g=e.filter(f.types,(function(e){return c.getSignaturesOfType(e,0).length>0}));if(1!==g.length)return;f=g[0]}if(1!==c.getSignaturesOfType(f,0).length)return;var m=c.typeToTypeNode(f,r,_,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var h=void 0;if(o.includeCompletionsWithSnippetText){var y=e.factory.createEmptyStatement();h=e.factory.createBlock([y],!0),e.setSnippetElement(y,{kind:0,order:0})}else h=e.factory.createBlock([],!0);var v=m.parameters.map((function(t){return e.factory.createParameterDeclaration(void 0,t.dotDotDotToken,t.name,void 0,void 0,t.initializer)}));return e.factory.createMethodDeclaration(void 0,void 0,u,void 0,void 0,v,void 0,h);default:return}}(t,n,d,i,a,s);if(p){var _=E({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?_.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),d,c):_.printSnippetList(80,e.factory.createNodeArray([p],!0),d);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),g=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:u,labelDetails:{detail:f.printNode(4,g,d)}}}}function E(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),o=a(a({},n),{write:function(e){return s(e,(function(){return n.write(e)}))},nonEscapingWrite:n.write,writeLiteral:function(e){return s(e,(function(){return n.writeLiteral(e)}))},writeStringLiteral:function(e){return s(e,(function(){return n.writeStringLiteral(e)}))},writeSymbol:function(e,t){return s(e,(function(){return n.writeSymbol(e,t)}))},writeParameter:function(e){return s(e,(function(){return n.writeParameter(e)}))},writeComment:function(e){return s(e,(function(){return n.writeComment(e)}))},writeProperty:function(e){return s(e,(function(){return n.writeProperty(e)}))}});return{printSnippetList:function(t,n,i){var a=c(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList:function(t,n,i,o){var s={text:c(t,n,i),getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},l=e.getFormatCodeSettingsForWriting(o,i),u=e.flatMap(n,(function(t){var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,s,i.languageVariant,0,0,a(a({},o),{options:l}))})),d=r?e.stableSort(e.concatenate(u,r),(function(t,r){return e.compareTextSpans(t.span,r.span)})):u;return e.textChanges.applyChanges(s.text,d)}};function s(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function c(e,t,n){return r=void 0,o.clear(),i.writeList(e,t,n,o),o.getText()}}function k(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return l(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function A(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function N(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function F(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function w(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):l(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function P(r,n,i,a,o,s,c,l,u,_,g,m,h,y,v,b,x,D,T,C,E,k,A,N){for(var F,w=e.timestamp(),P=function(t){var r=e.findAncestor(t,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)}));return r}(o),I=e.probablyUsesSemicolons(s),O=l.getTypeChecker(),M=new e.Map,L=function(_){var w=r[_],L=null==E?void 0:E[_],R=U(w,u,L,g,!!x);if(!R||M.get(R.name)&&(!L||!p(L))||1===g&&k&&!function(r,n){var i=r.flags;if(!e.isSourceFile(o)){if(e.isExportAssignment(o.parent))return!0;if(P&&r.valueDeclaration===P)return!1;var a=e.skipAlias(r,O);if(s.externalModuleIndicator&&!h.allowUmdGlobalAccess&&n[e.getSymbolId(r)]===t.SortText.GlobalsOrKeywords&&(n[e.getSymbolId(a)]===t.SortText.AutoImportSuggestions||n[e.getSymbolId(a)]===t.SortText.LocationPriority))return!1;if(i|=e.getCombinedLocalAndExportSymbolFlags(a),e.isInRightSideOfInternalImportEqualsDeclaration(o))return!!(1920&i);if(v)return ce(r,O)}return!!(111551&i)}(w,k))return"continue";var B=R.name,j=R.needsConvertPropertyAccess,J=null!==(F=null==k?void 0:k[e.getSymbolId(w)])&&void 0!==F?F:t.SortText.LocationPriority,z=function(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}(w,O)?t.SortText.Deprecated(J):J,V=S(w,z,i,a,o,s,c,l,B,j,L,C,b,D,T,I,h,m,g,y,A,N);if(!V)return"continue";var K=(!L||d(L))&&!(void 0===w.parent&&!e.some(w.declarations,(function(e){return e.getSourceFile()===o.getSourceFile()})));if(M.set(B,K),w.getJsDocTags().length>0&&(V.jsDoc=w.getJsDocTags()),w.declarations&&_<50){var W=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(O,w,s,o,o,7),q=e.getContaningConstructorDeclaration(w.valueDeclaration),$=/(Missing)/g;V.displayParts=q&&q.virtual?W.displayParts.map((function(e){return e.text.match($)&&(e.text=e.text.replace($,V.name)),e})):W.displayParts}e.insertSorted(n,V,f,!0)},R=0;R=t.pos;case 24:case 22:return 205===n;case 58:return 206===n;case 20:return 298===n||Me(n);case 18:return 266===n;case 29:return 262===n||230===n||264===n||265===n||e.isFunctionLikeKind(n);case 125:return 170===n&&!e.isClassLike(r.parent);case 25:return 167===n||!!r.parent&&205===r.parent.kind;case 124:case 122:case 123:return 167===n&&!e.isConstructorDeclaration(r.parent);case 129:return 276===n||281===n||274===n;case 138:case 152:return!ee(t);case 79:if(276===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 85:case 93:case 119:case 99:case 114:case 101:case 120:case 86:case 139:return!0;case 155:return 276!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if($(H(t))&&ee(t))return!1;if(Ie(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(H(t))||je(t)))return!1;switch(H(t)){case 127:case 84:case 85:case 86:case 137:case 93:case 99:case 119:case 120:case 122:case 123:case 124:case 125:case 114:return!0;case 133:return e.isPropertyDeclaration(t.parent)}var a=e.findAncestor(t.parent,e.isClassLike);if(a&&t===w&&Oe(t,s))return!1;var o=e.getAncestor(t.parent,170);if(o&&t!==w&&e.isClassLike(w.parent.parent)&&s<=w.end){if(Oe(t,w.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==w||s>w.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(G===e.parent&&(286===G.kind||285===G.kind))return!1;if(286===e.parent.kind)return 286!==G.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(P))return n("Returning an empty list because completion was requested in an invalid position."),X?h(X,N,Pe()):void 0;var oe=P.parent;if(24===P.kind||28===P.kind)switch(B=24===P.kind,J=28===P.kind,oe.kind){case 209:L=(I=oe).expression;var se=e.getLeftmostAccessExpression(I);if(e.nodeIsMissing(se)||(e.isCallExpression(L)||e.isFunctionLike(L)||e.isEtsComponentExpression(L))&&L.end===P.pos&&L.getChildCount(i)&&21!==e.last(L.getChildren(i)).kind&&!L.getLastToken(i))return;if(L.virtual&&20===(null===(f=e.findPrecedingToken(L.pos,i))||void 0===f?void 0:f.kind))return;break;case 164:L=oe.left;break;case 267:L=oe.name;break;case 203:L=oe;break;case 235:L=oe.getFirstToken(i),e.Debug.assert(101===L.kind||104===L.kind);break;default:return}else if(!O){if(oe&&209===oe.kind&&(P=oe,oe=oe.parent),x.parent===G)switch(x.kind){case 31:284!==x.parent.kind&&286!==x.parent.kind||(G=x);break;case 43:285===x.parent.kind&&(G=x)}switch(oe.kind){case 287:43===P.kind&&(V=!0,G=P);break;case 225:if(!te(oe))break;case 285:case 284:case 286:W=!0,29===P.kind&&(z=!0,G=P);break;case 294:case 293:19===w.kind&&31===x.kind&&(W=!0);break;case 291:if(oe.initializer===w&&w.end0&&c.forEach((function(e){e.forEach((function(e){Ae(e,!1,r)}))}))}(d,n))}}else ge.push.apply(ge,e.filter(Y(t,m),(function(e){return m.isValidPropertyAccessForCompletions(i,t,e)})));if(r&&c.includeCompletionsWithInsertText){var _=m.getPromisedTypeOfPromise(t);if(_)for(var f=0,g=_.getApparentProperties();f0){var b=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a90))&&(!!l||le(t,o))}),(function(n,i,a,o){var s;if(!l||e.some(n,(function(t){return l.source===e.stripQuotes(t.moduleSymbol.name)}))){var c=e.find(n,h);if(c){var u=r.tryResolve(n,i,a)||{};if("failed"!==u){var d,p=c;"skipped"!==u&&(p=void 0===(s=u.exportInfo)?c:s,d=u.moduleSpecifier);var _=1===p.exportKind;!function(r,n){var i=e.getSymbolId(r);if(he[i]===t.SortText.GlobalsOrKeywords)return;me[ge.length]=n,he[i]=O?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,ge.push(r)}(_&&e.getLocalSymbolForExportDefault(p.symbol)||p.symbol,{kind:d?32:4,moduleSpecifier:d,symbolName:i,exportMapKey:o,exportName:2===p.exportKind?"export=":p.symbol.name,fileName:p.moduleFileName,isDefaultExport:_,moduleSymbol:p.moduleSymbol,isFromPackageJson:p.isFromPackageJson})}}}})),fe=r.skippedAny(),ie|=r.resolvedAny()?8:0,ie|=r.resolvedBeyondLimit()?16:0}))}function h(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!m||m.allowsImportingAmbientModule(t.moduleSymbol,be(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?g:r,i,n,c,m,be(t.isFromPackageJson),d)}}function Pe(){if(P){var e=P.parent.kind,t=H(P);switch(t){case 27:return 211===e||174===e||212===e||207===e||225===e||182===e||208===e;case 20:return 211===e||174===e||212===e||215===e||194===e;case 22:return 207===e||179===e||165===e;case 143:case 144:case 101:return!0;case 24:return 267===e;case 18:return 262===e||263===e||208===e;case 63:return 259===e||225===e;case 15:return 227===e;case 16:return 238===e;case 133:return 172===e||303===e;case 41:return 172===e}if($(t))return!0}return!1}function Ie(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Oe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function Me(t){return e.isFunctionLikeKind(t)&&174!==t}function Le(e,t){var r=e.expression,n=m.getSymbolAtLocation(r),i=n&&m.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function Re(){ge.forEach((function(r){var n;if(16777216&r.flags){var i=e.getSymbolId(r);he[i]=null!==(n=he[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Be(r,n){if(0!==r.size)for(var i=0,a=n;i");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}return}(h,r);if(L)return L}var R=e.createSortedArray(),B=v(r,a);if(B&&!m&&(!d||0===d.length)&&0===S)return;var j=P(d,R,void 0,p,h,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,A,x,N,k,w,E,C,O,N,F);if(0!==S)for(var J=0,U=K(S,!I&&e.isSourceFileJS(r));J=0&&!l(r,n[i],116);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&l(r,e.getFirstToken(),81,87)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 247:case 248:case 249:case 245:case 246:return u(t);case 254:return p(t)}}function p(t){var r=[];return l(r,t.getFirstToken(),108),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,89),e.forEach(a(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function _(t,r){var n=[];(l(n,t.getFirstToken(),112),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock)&&l(n,e.findChildOfKind(t,97,r),97);return n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||311===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,110,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,106,r))})),a}}function g(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,106,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,110,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){l(n,e,133)})),e.forEachChild(r,(function(t){h(t,(function(t){e.isAwaitExpression(t)&&l(n,t.getFirstToken(),134)}))})),n}}function h(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return h(e,r)}))}t.getDocumentHighlights=function(t,n,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var y=c.parent.parent,v=[y.openingElement,y.closingElement].map((function(e){return r(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}(o,c,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 100:case 92:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){var n=[];for(;e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);l(n,i[0],100);for(var a=i.length-1;a>=0&&!l(n,i[a],92);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 106:return c(t.parent,e.isReturnStatement,g);case 110:return c(t.parent,e.isThrowStatement,f);case 112:case 83:case 97:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,_);case 108:return c(t.parent,e.isSwitchStatement,p);case 82:case 89:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,p):void 0;case 81:case 87:return c(t.parent,e.isBreakOrContinueStatement,d);case 98:case 116:case 91:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 136:return s(e.isConstructorDeclaration,[136]);case 138:case 152:return s(e.isAccessor,[138,152]);case 134:return c(t.parent,e.isAwaitExpression,m);case 133:return y(m(t));case 126:return y(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){h(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),126)}))})),n}(t));case 102:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 268:case 311:case 240:case 295:case 296:return 256&r&&e.isClassDeclaration(t)?i(i([],t.members,!0),[t],!1):n.statements;case 174:case 172:case 261:return i(i([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 262:case 230:case 263:case 264:case 185:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(256&r)return i(i([],a,!0),[n],!1);return a;case 208:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(r,i){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function t(e){return!!e.sourceFile}function r(r,n,o){void 0===n&&(n="");var s=new e.Map,c=e.createGetCanonicalFileName(!!r);function l(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function u(e,t,r,n,i,a,o,s){return _(e,t,r,n,i,a,!0,o,s)}function d(e,t,r,n,i,a,o,s){return _(e,t,l(r),n,i,a,!1,o,s)}function p(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function _(r,n,i,c,u,d,_,f,g){var m,h,y,v;f=e.ensureScriptKind(r,f);var b=l(i),x=i===b?void 0:i,D=6===f?100:e.getEmitScriptTarget(b),S="object"==typeof g?g:{languageVersion:D,impliedNodeFormat:x&&e.getImpliedNodeFormatForFile(n,null===(v=null===(y=null===(h=null===(m=x.getCompilerHost)||void 0===m?void 0:m.call(x))||void 0===h?void 0:h.getModuleResolutionCache)||void 0===y?void 0:y.call(h))||void 0===v?void 0:v.getPackageJsonInfoCache(),x,b),setExternalModuleIndicator:e.getSetExternalModuleIndicator(b)};S.languageVersion=D;var T=s.size,C=a(c,S.impliedNodeFormat),E=e.getOrUpdate(s,C,(function(){return new e.Map}));if(e.tracing){s.size>T&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:b.configFilePath,key:C});var k=!e.isDeclarationFileName(n)&&e.forEachEntry(s,(function(e,t){return t!==C&&e.has(n)&&t}));k&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:k,key2:C})}var A=E.get(n),N=A&&p(A,f);!N&&o&&((F=o.getDocument(C,n))&&(e.Debug.assert(_),N={sourceFile:F,languageServiceRefCount:0},w()));if(N)N.sourceFile.version!==d&&(N.sourceFile=e.updateLanguageServiceSourceFile(N.sourceFile,u,d,u.getChangeRange(N.sourceFile.scriptSnapshot),void 0,b),o&&o.setDocument(C,n,N.sourceFile)),_&&N.languageServiceRefCount++;else{var F=e.createLanguageServiceSourceFile(r,u,S,d,!1,f,b);o&&o.setDocument(C,n,F),N={sourceFile:F,languageServiceRefCount:1},w()}return e.Debug.assert(0!==N.languageServiceRefCount),N.sourceFile;function w(){if(A)if(t(A)){var r=new e.Map;r.set(A.sourceFile.scriptKind,A),r.set(f,N),E.set(n,r)}else A.set(f,N);else E.set(n,N)}}function f(r,n,i,o){var c=e.Debug.checkDefined(s.get(a(n,o))),l=c.get(r),u=p(l,i);u.languageServiceRefCount--,e.Debug.assert(u.languageServiceRefCount>=0),0===u.languageServiceRefCount&&(t(l)?c.delete(r):(l.delete(i),1===l.size&&c.set(r,e.firstDefinedIterator(l.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,s,d){return u(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,d)},acquireDocumentWithKey:u,updateDocument:function(t,r,a,o,s,u){return d(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,u)},updateDocumentWithKey:d,releaseDocument:function(t,r,a,o){return f(e.toPath(t,n,c),i(r),a,o)},releaseDocumentWithKey:f,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(s.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&p(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(s.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=s.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(function(e){return n(e)})))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasProperty(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return n(e.getCompilerOptionValue(t,r))})).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function a(e,t){return t?"".concat(e,"|").concat(t):e}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(d||(d={})),function(e){!function(t){function r(t,r){return e.forEach(311===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function y(e){return 0===e.kind?e.textSpan:h(e.node,e.node.getSourceFile())}function v(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(16777216&t.flags)return!0;switch(t.kind){case 225:case 206:case 262:case 230:case 263:case 89:case 266:case 305:case 281:case 273:case 271:case 276:case 264:case 344:case 351:case 291:case 267:case 270:case 274:case 280:case 167:case 303:case 265:case 166:return!0;case 302:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 261:case 216:case 174:case 172:case 175:case 176:return!!t.body;case 259:case 170:return!!t.initializer||e.isCatchClause(t.parent);case 171:case 169:case 353:case 346:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||89===t.kind||e.isWriteAccess(t)}function b(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(89===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||136===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((function(e){return e===i||e===a}))))}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference"}(t.DefinitionKind||(t.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(t.EntryKind||(t.EntryKind={})),t.nodeEntry=n,t.isContextWithStartAndEndNode=o,t.getContextNode=c,t.toContextSpan=l,function(e){e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename"}(t.FindReferencesUse||(t.FindReferencesUse={})),t.findReferencedSymbols=function(t,n,i,o,s){var u=e.getTouchingPropertyName(o,s),d={use:1},p=r.getReferencedSymbolsForNode(s,u,t,i,n,d),m=t.getTypeChecker(),h=r.getAdjustedNode(u,d),y=function(t){return 89===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||136===t.kind&&e.isConstructorDeclaration(t.parent)}(h)?m.getSymbolAtLocation(h):void 0;return p&&p.length?e.mapDefined(p,(function(t){var r=t.definition,i=t.references;return r&&{definition:m.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=f(g=t.symbol,r,n),o=i.displayParts,s=i.kind,l=o.map((function(e){return e.text})).join(""),u=g.declarations&&e.firstOrUndefined(g.declarations),d=u?e.getNameOfDeclaration(u)||u:n;return a(a({},_(d)),{name:l,kind:s,displayParts:o,context:c(u)});case 1:d=t.node;return a(a({},_(d)),{name:d.text,kind:"label",displayParts:[e.displayPart(d.text,e.SymbolDisplayPartKind.text)]});case 2:d=t.node;var p=e.tokenToString(d.kind);return a(a({},_(d)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:d=t.node;var g,m=(g=r.getSymbolAtLocation(d))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,g,d.getSourceFile(),e.getContainerNode(d),d).displayParts||[e.textPart("this")];return a(a({},_(d)),{name:"this",kind:"var",displayParts:m});case 4:d=t.node;return a(a({},_(d)),{name:d.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(d),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.sourceFile,s=i.textSpan,u=i.name,d=i.kind,p=i.displayParts,g=i.context;return a({containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:u,textSpan:s,displayParts:p},l(s,o,g))}(r,t,u)})),references:i.map((function(e){return function(e,t){var r=g(e);return t?a(a({},r),{isDefinition:0!==e.kind&&b(e.node,t)}):r}(e,y)}))}})):void 0},t.getImplementationsAtPosition=function(t,r,n,o,s){var c,l=e.getTouchingPropertyName(o,s),d=u(t,r,n,l,s);if(209===l.parent.kind||206===l.parent.kind||210===l.parent.kind||107===l.kind)c=d&&i([],d,!0);else if(d)for(var p=e.createQueue(d),_=new e.Map;!p.isEmpty();){var g=p.dequeue();if(e.addToSeen(_,e.getNodeId(g.node))){c=e.append(c,g);var h=u(t,r,n,g.node,g.node.pos);h&&p.enqueue.apply(p,h)}}var y=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=m(t);if(0!==t.kind){var i=t.node;return a(a({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?f(n,r,t):208===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:230===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return a(a({},n),{kind:"",displayParts:[]})}(t,y)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(p(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=d,t.toRenameLocation=function(t,r,n,i){return a(a({},m(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=g,t.toHighlightSpan=function(e){var t=m(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=v(e.node),n=a({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=y,t.isDeclarationOfSymbol=b,function(r){function i(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function a(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function T(t,r){var i=t.getSourceFile(),a=r.text,o=e.mapDefined(D(i,a,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,a)===r?n(t):void 0}));return[{definition:{type:1,node:r},references:o}]}function C(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=S(t,r.text,e);a0;o--){S(t,i=n[o])}return[n.length-1,n[0]]}function S(e,t){var r=v(e,t);m(o,r),u.push(o),d.push(s),s=void 0,o=r}function T(){o.children&&(N(o.children,o),M(o.children)),o=u.pop(),s=d.pop()}function C(e,t,r){S(e,r),A(t),T()}function E(t){t.initializer&&function(e){switch(e.kind){case 217:case 216:case 230:return!0;default:return!1}}(t.initializer)?(S(t),e.forEachChild(t.initializer,A),T()):C(t,t.initializer)}function k(t){return!e.hasDynamicName(t)||225!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function A(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 174:var i=t;C(i,i.body);for(var a=0,o=i.parameters;a0&&(S(J,L),e.forEachChild(J.right,A),T()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,L):(S(J,L),C(t,J.right,I.name),T()),void x(M);case 7:case 9:var R=t,B=(L=7===P?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=D(t,L);M=j[0];return S(t,j[1]),S(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),A(t.arguments[2]),T(),T(),void x(M);case 5:var J,U=(I=(J=t).left).expression;if(e.isIdentifier(U)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(U.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,U):e.isBindableStaticAccessExpression(I)&&(S(J,U),C(J.left,J.right,e.getNameOrArgument(I)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,A)}}function N(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&f(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c0)return Q(n)}switch(t.kind){case 311:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"";case 277:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 217:case 261:case 216:case 262:case 230:case 263:return 1024&e.getSyntacticModifierFlags(t)?"default":G(t);case 174:return"constructor";case 178:return"new()";case 177:return"()";case 179:return"[]";default:return""}}function j(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),nameSpan:t.name&&q(t.name),childItems:e.map(t.children,j)}}function J(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),childItems:e.map(t.children,(function(t){return{text:B(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:U(t),childItems:p,indent:0,bolded:!1,grayed:!1}}))||p,indent:t.indent,bolded:!1,grayed:!1}}function U(e){var t=[q(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return Q(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return Q(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return f(r.left).replace(c,"");if(e.isPropertyAssignment(r))return f(r.name);if(1024&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=H(r.expression);if(void 0!==n){if((n=Q(n)).length>l)return"".concat(n," callback");var a=Q(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "));return"".concat(n,"(").concat(a,") callback")}}return""}function H(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=H(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function Q(e){return(e=e.length>l?e.substring(0,l)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),function(e){!function(t){function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s=2)return!0}return!1}function i(t,r,n){for(var i=n.getTypeChecker(),o=n.getCompilerOptions(),s=i.getJsxNamespace(r),c=i.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),d=[],p=0,_=t;p<_.length;p++){var f=_[p],g=f.importClause,m=f.moduleSpecifier;if(g){var h=g.name,y=g.namedBindings;if(h&&!b(h)&&(h=void 0),y)if(e.isNamespaceImport(y))b(y.name)||(y=void 0);else{var v=y.elements.filter((function(e){return b(e.name)}));v.length0?g[0]:y[0],A=0===E.length?D?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(y[0].importClause.namedBindings,E);f&&D&&A?(s.push(l(k,D,void 0)),s.push(l(null!==(r=y[0])&&void 0!==r?r:k,void 0,A))):s.push(l(k,D,A))}}else{var N=g[0];s.push(l(N,N.importClause.name,m[0].importClause.namedBindings))}}return s}function c(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}function d(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...")}function p(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}function _(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}function m(t){return t.length?l(e.createTextSpanFromRange(t),"code"):void 0}function h(t){if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return l(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))}}(i,t);p&&n.push(p),u--,e.isCallExpression(i)?(u++,m(i.expression),u--,i.arguments.forEach(m),null===(d=i.typeArguments)||void 0===d||d.forEach(m)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(m(i.expression),m(i.thenStatement),u++,m(i.elseStatement),u--):i.forEachChild(m),u++}}}(t,r,u),function(t,r){for(var i=[],a=t.getLineStarts(),o=0,s=a;o1&&a.push(s(c,l,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(d||(d={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=y(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,(function(t,n){return p(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,_=n(i,o);d<_.length;d++){var f=_[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!l(i,g,a,!1)||!l(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(C(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){return u(e)||d(e)||_(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:h(e)}}function h(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;at.length)return;for(var l=n.length-2,u=t.length-1;l>=0;l-=1,u-=1)s=o(s,a(t[u],n[l],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=h,e.breakIntoWordSpans=y}(d||(d={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(u=!0)}function g(){var t=e.scanner.getToken();return 137===t&&(143===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(101===t){if(20===(t=d())){if(10===(t=d())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(155===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 159!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=d())}if(79===t||e.isKeyword(t))if(159===(t=d())){if(10===(t=d()))return _(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&159===(t=d())&&10===(t=d())&&_()}else 41===t&&129===(t=d())&&(79===(t=d())||e.isKeyword(t))&&159===(t=d())&&10===(t=d())&&_()}return!0}return!1}function h(){var t=e.scanner.getToken();if(94===t){if(f(),155===(t=d())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&159===(t=d())&&10===(t=d())&&_()}else if(41===t)159===(t=d())&&10===(t=d())&&_();else if(101===t){if(155===(t=d())){r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)}));r&&(t=d())}if((79===t||e.isKeyword(t))&&63===(t=d())&&y(!0))return!0}return!0}return!1}function y(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 148===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&_(),!0)}function v(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||_(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()];e:for(;e.length(r);){var i=e.scanner.scan();switch(i){case 1:break e;case 101:m();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}}d()}g()||m()||h()||n&&(y(!1,!0)||v())||d()}e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var b=0,x=i;bt)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,h.end));if(v&&2===v.kind&&C(v.pos,v.end),r(n,t,h)){if(e.isFunctionBody(h)&&e.isFunctionLikeDeclaration(_)&&!e.positionsAreOnSameLine(h.getStart(n),h.getEnd(),n)&&T(h.getStart(n),h.getEnd()),e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||m&&e.isTemplateHead(m)||e.isVariableDeclarationList(h)&&e.isVariableStatement(_)||e.isSyntaxList(h)&&e.isVariableDeclarationList(_)||e.isVariableDeclaration(h)&&e.isSyntaxList(_)&&1===f.length||e.isJSDocTypeExpression(h)||e.isJSDocSignature(h)||e.isJSDocTypeLiteral(h)){_=h;break}if(e.isTemplateSpan(_)&&y&&e.isTemplateMiddleOrTemplateTail(y))T(h.getFullStart()-2,y.getStart()+1);var b=e.isSyntaxList(h)&&(d=void 0,18===(d=(c=m)&&c.kind)||22===d||20===d||286===d)&&l(y)&&!e.positionsAreOnSameLine(m.getStart(),y.getStart(),n),x=b?m.getEnd():h.getStart(),D=b?y.getStart():u(n,h);if(e.hasJSDocNodes(h)&&(null===(o=h.jsDoc)||void 0===o?void 0:o.length)&&T(e.first(h.jsDoc).getStart(),D),e.isSyntaxList(h)){var S=h.getChildren()[0];S&&e.hasJSDocNodes(S)&&(null===(s=S.jsDoc)||void 0===s?void 0:s.length)&&S.getStart()!==h.pos&&(x=Math.min(x,e.first(S.jsDoc).getStart()))}T(x,D),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&T(x+1,D-1),_=h;break}if(g===f.length-1)break e}}return p;function T(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!p||!e.textSpansEqual(i,p.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(p=a({textSpan:i},p&&{parent:p}))}}function C(e,t){T(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;T(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){var r;if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var i=t.getChildren(),a=i[0],l=i.slice(1),u=e.Debug.checkDefined(l.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(u.kind,19);var d=o(l,(function(e){return e===t.readonlyToken||147===e.kind||e===t.questionToken||57===e.kind})),p=o(d,(function(e){var t=e.kind;return 22===t||166===t||23===t}));return[a,c(s(p,(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t)){var _=326===(null===(r=(l=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})))[0])||void 0===r?void 0:r.kind)?l[0]:void 0,f=s(_?l.slice(1):l,(function(e){return 58===e.kind}));return _?[_,c(f)]:f}if(e.isParameter(t)){var g=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(g,(function(e){return e===g[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(n).kind&&i++;return i}(a,e.isInString(n,r,t));0!==o&&e.Debug.assertLessThan(o,s);var c=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(a,n);return{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?p(i,0,n):void 0;if(e.isTemplateHead(t)&&213===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(227===_.kind),p(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;l=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n);return p(f,l,n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,h-m),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function d(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function g(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,d){var p=t.getTypeChecker(),_=e.findTokenOnLeftOfPosition(r,n);if(_){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(r,n,_)&&!e.isInComment(r,n)){var h=!!i&&"invoked"===i.kind,b=function(t,r,n,i,a){for(var d=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n,i){if(20!==t.kind&&27!==t.kind)return;var a=t.parent;switch(a.kind){case 215:case 172:case 216:case 217:var s=o(t,n,r);if(!s)return;var u=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan,_=e.isMethodDeclaration(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return _&&{contextualType:_,argumentIndex:u,argumentCount:d,argumentsSpan:p};case 225:var f=c(a),g=i.getContextualType(f),m=20===t.kind?0:l(a)-1,h=l(f);return g&&{contextualType:g,argumentIndex:m,argumentCount:h,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}(t,n,r,i);if(!a)return;var s=a.contextualType,d=a.argumentIndex,p=a.argumentCount,_=a.argumentsSpan,f=s.getNonNullableType(),g=f.symbol;if(void 0===g)return;var m=e.lastOrUndefined(f.getCallSignatures());if(void 0===m)return;var h={kind:2,signature:m,node:t,symbol:u(g)};return{isTypeParameterList:!1,invocation:h,argumentsSpan:_,argumentIndex:d,argumentCount:p}}(t,r,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},p=t;!e.isSourceFile(p)&&(a||!e.isBlock(p));p=p.parent){var _=d(p);if("object"==typeof _)return _.value}return}(_,n,r,p,h);if(b){d.throwIfCancellationRequested();var x=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,p,r,_,f);return d.throwIfCancellationRequested(),x?p.runWithCancellationToken(d,(function(e){return 0===x.kind?y(x.candidates,x.resolvedSignature,b,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!c)return;var l=[v(e,c,n,m(o),r)];return{items:l,applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}}(x.symbol,b,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=g(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}(b,t,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var h=70246400;function y(t,r,n,a,o,s){var c,l=n.isTypeParameterList,u=n.argumentCount,d=n.argumentsSpan,p=n.invocation,_=n.argumentIndex,f=m(p),h=2===p.kind?p.symbol:o.getSymbolAtLocation(g(p))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),y=h?e.symbolToDisplayParts(o,h,s?a:void 0,void 0):e.emptyArray,v=e.map(t,(function(t){return function(t,r,n,a,o,s){var c=(n?x:D)(t,a,o,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,d=i(i([],r,!0),l,!0),p=i(i([],u,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a),!0),_=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:b,parameters:c,documentation:_,tags:f}}))}(t,y,l,o,f,a)}));0!==_&&e.Debug.assertLessThan(_,u);for(var S=0,T=0,C=0;C1))for(var k=0,A=0,N=E;A=u){S=T+k;break}k++}T+=E.length}e.Debug.assert(-1!==S);var w={items:e.flatMapToMutable(v,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:_,argumentCount:u},P=w.items[S];if(P.isVariadic){var I=e.findIndex(P.parameters,(function(e){return!!e.isRest}));-1t?e.substr(0,t-3)+"...":e}function x(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}function D(t){if((e.isParameterDeclaration(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&t.initializer){var r=e.skipParentheses(t.initializer);return!(y(r)||e.isNewExpression(r)||e.isObjectLiteralExpression(r)||e.isAssertionExpression(r))}return!0}}}(e.InlayHints||(e.InlayHints={}))}(d||(d={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===d)return;var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p},toLineColumnOffset:function(e,t){return u(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),l=a.get(c);if(l)return l;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=u(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function u(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||l(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=u;p<_.length;p++){var f=_[p],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),m=o(g,d);if(e.isString(m))return r(n,m,g);if(void 0!==m)return m||void 0}}}(d||(d={})),function(e){var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 272:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&274===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 271:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((function(e){return l(e,r)})))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((function(e){return l(e,r)})))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var _,f,g,m,h=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",D=!1,S=109===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),T=!1;if(109===l.kind&&!S)return{displayParts:[e.keywordPart(109)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){if("getter"===x||"setter"===x)if(q=e.find(o.declarations,(function(e){return e.name===l})))switch(q.kind){case 175:x="getter";break;case 176:x="setter";break;case 170:x="accessor";break;default:e.Debug.assertNever(q)}else x="property";var C=void 0;if(_=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&209===l.parent.kind){var E=l.parent.name;(E===l||E&&0===E.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){C=a.getResolvedSignature(k);var A=212===k.kind||e.isCallExpression(k)&&107===k.expression.kind,N=A?_.getConstructSignatures():_.getCallSignatures();if(!C||e.contains(N,C.target)||e.contains(N,C)||(C=N.length?N[0]:void 0),C){switch(A&&32&b?(x="constructor",te(_.symbol,x)):2097152&b?(re(x="alias"),h.push(e.spacePart()),A&&(4&C.flags&&(h.push(e.keywordPart(127)),h.push(e.spacePart())),h.push(e.keywordPart(104)),h.push(e.spacePart())),ee(o)):te(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(58)),h.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(h,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),h.push(e.lineBreakPart())),A&&(4&C.flags&&(h.push(e.keywordPart(127)),h.push(e.spacePart())),h.push(e.keywordPart(104)),h.push(e.spacePart())),ne(C,N,262144);break;default:ne(C,N)}D=!0,T=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||136===l.kind&&174===l.parent.kind){var F=l.parent,w=o.declarations&&e.find(o.declarations,(function(e){return e===(136===l.kind?F.parent:F)}));if(w){N=174===F.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures();C=a.isImplementationOfOverload(F)?N[0]:a.getSignatureFromDeclaration(F),174===F.kind?(x="constructor",te(_.symbol,x)):te(177!==F.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,x),C&&ne(C,N),D=!0,T=N.length>1}}}if(32&b&&!D&&!S&&(Y(),e.getDeclarationOfKind(o,230)?re("local class"):e.getDeclarationOfKind(o,263)?h.push(e.keywordPart(85)):h.push(e.keywordPart(84)),h.push(e.spacePart()),ee(o),ie(o,s)),64&b&&2&u&&(X(),h.push(e.keywordPart(119)),h.push(e.spacePart()),ee(o),ie(o,s)),524288&b&&2&u&&(X(),h.push(e.keywordPart(155)),h.push(e.spacePart()),ee(o),ie(o,s),h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(X(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(h.push(e.keywordPart(86)),h.push(e.spacePart())),h.push(e.keywordPart(93)),h.push(e.spacePart()),ee(o)),1536&b&&!S){X();var P=(q=e.getDeclarationOfKind(o,267))&&q.name&&79===q.name.kind;h.push(e.keywordPart(P?144:143)),h.push(e.spacePart()),ee(o)}if(262144&b&&2&u)if(X(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),ee(o),o.parent)Z(),ee(o.parent,c),ie(o.parent,c);else{var I=e.getDeclarationOfKind(o,166);if(void 0===I)return e.Debug.fail();if(q=I.parent)if(e.isFunctionLikeKind(q.kind)){Z();C=a.getSignatureFromDeclaration(q);178===q.kind?(h.push(e.keywordPart(104)),h.push(e.spacePart())):177!==q.kind&&q.name&&ee(q.symbol),e.addRange(h,e.signatureToDisplayParts(a,C,s,32))}else 265===q.kind&&(Z(),h.push(e.keywordPart(155)),h.push(e.spacePart()),ee(q.symbol),ie(q.symbol,s))}if(8&b&&(x="enum member",te(o,"enum member"),305===(null==(q=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:q.kind))){var O=a.getConstantValue(q);void 0!==O&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(X(),!D){var M=a.getAliasedSymbol(o);if(M!==o&&M.declarations&&M.declarations.length>0){var L=M.declarations[0],R=e.getNameOfDeclaration(L);if(R){var B=e.isModuleWithStringLiteralName(L)&&e.hasSyntacticModifier(L,2),j="default"!==o.name&&!B,J=t(a,M,e.getSourceFileOfNode(L),L,R,u,j?o:M);h.push.apply(h,J.displayParts),h.push(e.lineBreakPart()),g=J.documentation,m=J.tags}else g=M.getContextualDocumentationComment(L,a),m=M.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 270:h.push(e.keywordPart(94)),h.push(e.spacePart()),h.push(e.keywordPart(144));break;case 277:h.push(e.keywordPart(94)),h.push(e.spacePart()),h.push(e.keywordPart(o.declarations[0].isExportEquals?63:89));break;case 281:h.push(e.keywordPart(94));break;default:h.push(e.keywordPart(101))}h.push(e.spacePart()),ee(o),e.forEach(o.declarations,(function(t){if(271===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),h.push(e.keywordPart(148)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(63)),h.push(e.spacePart()),ee(n,c))}return!0}}))}if(!D)if(""!==x){if(_)if(S?(X(),h.push(e.keywordPart(109))):te(o,x),"property"===x||"accessor"===x||"getter"===x||"setter"===x||"JSX attribute"===x||3&b||"local var"===x||"index"===x||S){if(h.push(e.punctuationPart(58)),h.push(e.spacePart()),_.symbol&&262144&_.symbol.flags&&"index"!==x){var U=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(_,c,r);Q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(h,U)}else e.addRange(h,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var z=o.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.textPart(e.idText(z.name))),h.push(e.punctuationPart(21))}}else if(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x){(N=_.getNonNullableType().getCallSignatures()).length&&(ne(N[0],N),T=N.length>1)}}else x=n(a,o,l);if(0!==y.length||T||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 311===e.kind})))for(var V=0,K=o.declarations;V0))break}}if(0===y.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var q,$=(q=o.valueDeclaration).parent;if(e.isIdentifier(q.name)&&e.isObjectBindingPattern($)){var G=e.getTextOfIdentifierOrLiteral(q.name),H=a.getTypeAtLocation($);y=e.firstDefined(H.isUnion()?H.types:[H],(function(e){var t=e.getProperty(G);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==v.length||T||(v=o.getContextualJsDocTags(c,a)),0===y.length&&g&&(y=g),0===v.length&&m&&(v=m),{displayParts:h,documentation:y,symbolKind:x,tags:0===v.length?void 0:v};function Q(){return f||(f=e.createPrinter({removeComments:!0})),f}function X(){h.length&&h.push(e.lineBreakPart()),Y()}function Y(){d&&(re("alias"),h.push(e.spacePart()))}function Z(){h.push(e.spacePart()),h.push(e.keywordPart(102)),h.push(e.spacePart())}function ee(t,r){var n;d&&t===o&&(t=d),"index"===x&&(n=a.getIndexInfosOfIndexSymbol(t));var i=[];131072&t.flags&&n?(t.parent&&(i=e.symbolToDisplayParts(a,t.parent)),i.push(e.punctuationPart(22)),n.forEach((function(t,r){i.push.apply(i,e.typeToDisplayParts(a,t.keyType)),r!==n.length-1&&(i.push(e.spacePart()),i.push(e.punctuationPart(51)),i.push(e.spacePart()))})),i.push(e.punctuationPart(23))):i=e.symbolToDisplayParts(a,t,r||s,void 0,7),e.addRange(h,i),16777216&o.flags&&h.push(e.punctuationPart(57))}function te(t,r){X(),r&&(re(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(h.push(e.spacePart()),ee(t)))}function re(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function ne(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(39)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===y.length&&0===v.length&&(y=r[0].getDocumentationComment(a),v=r[0].getJsDocTags().filter((function(e){return"deprecated"!==e.name})))}function ie(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);Q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(h,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=s;return r}(f,_),0,n),a[l]=(p=1+((u=f)>>(d=_)&c),e.Debug.assert((p&c)===p,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(c<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter((function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)})).sort((function(e,t){return e.start-t.start}));if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)}))}function p(r,n,i,a,o,s,c,l,u){var d,p,f,g,m,h,y=s.options,v=s.getRules,b=s.host,x=new t.FormattingContext(u,c,y),D=-1,S=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(n.getStart(u)).line,C=T;e.hasDecorators(n)&&(C=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,d,_){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd()))return;var g=F(i,s,d,_),m=a;e.forEachChild(i,(function(e){b(e,-1,i,g,s,c,!1)}),(function(e){x(e,i,s,g)}));for(;o.isOnToken()&&o.getStartPos()Math.min(i.end,r.end))break;S(v,i,g,i)}function b(a,s,c,l,d,p,_,f){if(e.Debug.assert(!e.nodeIsSynthesized(a)),e.nodeIsMissing(a))return s;var g=a.getStart(u),v=u.getLineAndCharacterOfPosition(g).line,b=v;e.hasDecorators(a)&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var x=-1;if(_&&e.rangeContainsRange(r,c)&&(x=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,y);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(y);return d>l?d:l}}return-1}(g,a.end,d,r,s),-1!==x&&(s=x)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endr.end)return s;if(T.token.end>g){T.token.pos>g&&o.skipToStartOf(a);break}S(T,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)return s;if(e.isToken(a)){var T=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(T.token.end===a.end,"Token end is child end"),S(T,i,l,a),s}var C=168===a.kind?v:p,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===h?D:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===h?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,x,i,l,C);return n(a,m,v,b,E.indentation,E.delta),m=i,f&&207===c.kind&&-1===s&&(s=E.indentation),s}function x(n,a,s,c){e.Debug.assert(e.isNodeArray(n)),e.Debug.assert(!e.nodeIsSynthesized(n));var l=function(e,t){switch(e.kind){case 174:case 261:case 216:case 172:case 171:case 217:case 177:case 178:case 182:case 183:case 175:case 176:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 211:case 212:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 262:case 230:case 264:case 265:if(e.typeParameters===t)return 29;break;case 181:case 213:case 184:case 232:case 203:if(e.typeArguments===t)return 29;break;case 185:return 18}return 0}(a,n),d=c,p=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()n.pos)break;if(h.token.kind===l){p=u.getLineAndCharacterOfPosition(h.token.pos).line,S(h,a,c,a);var _=void 0;if(-1!==D)_=D;else{var f=e.getLineStartPositionForPosition(h.token.pos,u);_=t.SmartIndenter.findFirstNonWhitespaceColumn(f,h.token.pos,u,y)}d=F(a,s,_,y.indentSize)}else S(h,a,c,a)}for(var g=-1,m=0;m=r.end){var A=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(A&&A.pos===p){var N=(null===(d=e.findPrecedingToken(A.end,u,n))||void 0===d?void 0:d.parent)||g;O(A,u.getLineAndCharacterOfPosition(A.pos).line,N,f,m,g,N,void 0)}}return S;function F(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 92:case 116:case 59:return!1;case 43:case 31:switch(a.kind){case 286:case 287:case 285:return!1}break;case 22:case 23:if(198!==a.kind)return!1}return n!==t&&!(e.hasDecorators(r)&&i===function(t){if(e.canHaveModifiers(t)){var r=e.find(t.modifiers,e.isModifier,e.findIndex(t.modifiers,e.isDecorator));if(r)return r.kind}switch(t.kind){case 262:return 84;case 263:return 85;case 264:return 119;case 261:return 99;case 266:return 266;case 175:return 138;case 176:return 152;case 172:if(t.asteriskToken)return 41;case 170:case 167:var n=e.getNameOfDeclaration(t);if(n)return n.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,u,!0)?a:0}}function w(t,n,i,a){for(var o=0,s=t;o0){var S=_(D,y);U(b,x.character,S)}else J(b,x.character)}}}else i||M(r.pos,n,!1)}function R(t,r,n){for(var i=t;io)){var s=B(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),J(s,o+1-s))}}}function B(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function j(e,t,r){R(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function J(t,r){r&&S.push(e.createTextChangeFromStartLength(t,r,""))}function U(t,r,n){(r||n)&&S.push(e.createTextChangeFromStartLength(t,r,n))}}function _(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return u(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return u(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return p(s,e,i,a,t,o,1,(function(e){return!1}),r)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var v=s(g,e,i),b=v.line===t.line||p(g,e,t.line,i);if(h){var x=null===(f=_(e,i))||void 0===f?void 0:f[0],S=m(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,b,i,l)))return S+n}D(l,g,e,i,o)&&!b&&(n+=l.indentSize);var T=d(g,e,t.line,i);g=(e=g).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}function s(e,t,r){var n=_(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(311===r.kind||!i)?y(n,a,o):-1}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function p(t,r,n,i){if(244===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,92,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 181:return a(n.typeArguments);case 208:return a(n.properties);case 207:case 275:case 279:case 204:case 205:return a(n.elements);case 185:return a(n.members);case 261:case 216:case 217:case 172:case 171:case 177:case 174:case 183:case 178:return a(n.typeParameters)||a(n.parameters);case 175:return a(n.parameters);case 262:case 230:case 263:case 264:case 265:case 350:return a(n.typeParameters);case 212:case 211:return a(n.typeArguments)||a(n.arguments);case 260:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=u(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;if(0===l)return l;var d=t.text.charCodeAt(s+u);return 42===d?l-1:l}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}var o=e.getLineStartPositionForPosition(i,t);return b(o,i,t,n)}(n,r,i);if(27===c.kind&&225!==c.parent.kind){var x=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==x)return x}var S=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);if(S&&!e.rangeContainsRange(S,c)){var T=-1!==[216,217].indexOf(_.parent.kind)?0:i.indentSize;return g(S,n,i)+T}return function(t,r,n,i,s,c){var d,p=n;for(;p;){if(e.positionBelongsToNode(p,r,t)&&D(c,p,d,t,!0)){var _=u(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var g=m(p,t,c,!0);if(-1!==g)return g;d=p,p=p.parent}return a(c)}(n,r,c,p,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,l;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function _(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var l=r.getStart(t),d=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,d)?d:l}if(s===c.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var g=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===g)return s===c.IncludeAll?_:f;if(i){var m=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,_))||void 0===o?void 0:o[0]);if(m)return e.skipTrivia(t.text,m.end,!0,!0)}var h=_>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+h,t);return y=u(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),c=null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var u=g(t,r,n);if(u)return u;var d=e.skipTrivia(t.text,a,!0);return d===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(d-1))?a:d}function h(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&208===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,v=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length)if(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var a=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,D(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=D(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=v,t.getNewFileText=function(e,t,r,n){return y.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map((function(e){return 4===e?"":n(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=A(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,i,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))}))},u=0;u0?{fileName:s.fileName,textChanges:p}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(y||(y={})),t.applyChanges=S;var T,C=a(a({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function E(t){var n=e.visitEachChild(t,E,C,k,E),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function k(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),o(t)),l}function A(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}function N(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function F(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=m(t,r,n);e.deleteRange(t,{pos:i,end:a})}function w(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?m(n,i,{}):x(n,i,a[o-1],a[o+1])})):F(t,n,i)}t.assignPositionsToNode=E,t.createWriter=A,t.isValidLocationToAddComment=N,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{F(t,r,e.getAncestor(n,272))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 167:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):w(t,n,i,a);break;case 272:case 271:F(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 206:var s=a.parent;205===s.kind&&a!==e.last(s.elements)?F(t,i,a):w(t,n,i,a);break;case 259:!function(t,r,n,i){var a=i.parent;if(298===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void w(t,r,n,i);var o=a.parent;switch(o.kind){case 249:case 248:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 247:F(t,n,a);break;case 242:F(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 166:w(t,n,i,a);break;case 276:var u=a.parent;1===u.elements.length?r(t,i,u):w(t,n,i,a);break;case 274:r(t,i,a);break;case 26:F(t,i,a,{trailingTriviaOption:l.Exclude});break;case 99:F(t,i,a,{leadingTriviaOption:c.Exclude});break;case 262:case 263:case 261:F(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else F(t,r,n.name)}else F(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?w(t,n,i,a):F(t,i,a):F(t,i,a)}}}(T||(T={})),t.deleteNode=F}(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function s(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=u(t);i1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=s,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return s(e.textChanges.ChangeTracker.with(t,(function(e){return l(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(d||(d={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(158)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(158),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(512|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u){return[i(t,u,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l){return i(r,l,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],a,!0);function s(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&function(t,r,n,i,a){var o=a.getTypeChecker(),s=o.getDiagnostics(t,i);return e.some(s,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(o)?o:void 0}function c(r,n,i,a,s,c){var l=r.sourceFile,p=r.program,_=r.cancellationToken,f=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;170!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,137,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function a(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var i=r.getSymbolAtLocation(t.parent.expression);if(!(null==i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=a(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getTypeChecker(),s=function(t,r,n){var i,o,s=a(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(t,r,n){return e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType()}(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);if(null===(o=null===(i=u.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some((function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)})))return e.emptyArray;return n.getExactOptionalProperties(u)}(n.sourceFile,n.span,o);if(s.length){var c=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r){for(var n=0,a=r;n1?(t.delete(r,u),t.insertNodeAfter(r,p,d)):t.replaceNode(r,p,d)}}function _(n){var i=[];return n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(125)],i)})),n.members&&n.members.forEach((function(a,s){var c,u,d,p;if("constructor"===s&&a.valueDeclaration){var _=null===(p=null===(d=null===(u=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===p?void 0:p.parent;_&&e.isBinaryExpression(_)&&e.isObjectLiteralExpression(_.right)&&e.some(_.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var u,d,p=n.valueDeclaration,_=p.parent,f=_.right;if(u=p,d=f,e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))if(!e.some(l,(function(t){var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var g=_.parent&&243===_.parent.kind?_.parent:_;if(t.delete(r,g),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),h=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;if(e.isNumericLiteral(i))return i;if(e.isStringLiteralLike(i))return e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i;return}(p,c,m);h&&v(l,f,h)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,(function(t){(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&v(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(p)){var y=e.factory.createPropertyDeclaration(i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,y,r),void l.push(y)}}else l.push(e.factory.createPropertyDeclaration(i,n.name,void 0,void 0,void 0))}}function v(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,133)),c=e.factory.createMethodDeclaration(s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),void t.push(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=240===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,133)),u=e.factory.createMethodDeclaration(l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(_,u,r),t.push(u)}(t,n,o)}}}}function a(t,r){return e.canHaveModifiers(t)?e.filter(t.modifiers,(function(e){return e.kind===r})):void 0}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(a),u=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")||c(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=T(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=a.get(u);if(d&&d.some((function(e){return e!==s}))){var _=p(o,a);i.set(l,_.identifier),n.set(l,_),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,A(f)),a.add(u,s)}}}else{var g=e.firstOrUndefined(c.parameters),m=(null==g?void 0:g.valueDeclaration)&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),h=p(m,a);n.set(l,h),a.add(m.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var m=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,h={checker:i,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(m.length){var y=e.skipTrivia(r.text,e.moveRangePastModifiers(a).pos);t.insertModifierAt(r,y,133,{suffix:" "});for(var v=function(n){if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=g(a,a,h,!1);if(_())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),_()))return!0})),_())return{value:void 0}},b=0,x=m;b0)return w;if(h){A=S(o.checker,h,m);if(O(a,o))return x(A,u(a,t,o.checker));var P=b(n,A,void 0);return n&&n.types.push(o.checker.getAwaitedType(h)||h),P}return f();default:return f()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function T(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function C(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=g(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function E(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||A(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function A(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function N(e){return e.hasBeenReferenced=!0,e.identifier}function F(e){return I(e)?P(e):w(e)}function w(e){for(var t=0,r=e.elements;t1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(94),e.factory.createToken(86)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(94),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,h,i,d,_)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,p=!1,m=e.map(d.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return p=!0,h([]);if(e.isRequireCall(u,!0))return p=!0,function(r,n,i,a,o,s){switch(r.kind){case 204:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return h([e.makeImport(void 0,c,n,s)]);case 205:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return h([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d0||u.length>0||p.size>0||_.size>0}};function f(t){var r,n,i=t.fix,a=t.symbolName;switch(i.kind){case 0:c.push(i);break;case 1:u.push(i);break;case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,l=i.addAsTypeOnly,d=String(e.getNodeId(o));if((h=p.get(d))||p.set(d,h={importClauseOrBindingPattern:o,defaultImport:void 0,namedImports:new e.Map}),0===s){var f=null==h?void 0:h.namedImports.get(a);h.namedImports.set(a,y(f,l))}else e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),h.defaultImport={name:a,addAsTypeOnly:y(null===(r=h.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,l)};break;case 3:var g=i.moduleSpecifier,m=(s=i.importKind,i.useRequire),h=function(e,t,r,n){var i=v(e,!0),a=v(e,!1),o=_.get(i),s=_.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};if(1===t&&2===n)return o||(_.set(i,c),c);if(1===n&&(o||s))return o||s;if(s)return s;return _.set(a,c),c}(g,s,m,l=i.addAsTypeOnly);switch(e.Debug.assert(h.useRequire===m,"(Add new) Tried to add an `import` and a `require` for the same module"),s){case 1:e.Debug.assert(void 0===h.defaultImport||h.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),h.defaultImport={name:a,addAsTypeOnly:y(null===(n=h.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,l)};break;case 0:f=(h.namedImports||(h.namedImports=new e.Map)).get(a);h.namedImports.set(a,y(f,l));break;case 3:case 2:e.Debug.assert(void 0===h.namespaceLikeImport||h.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),h.namespaceLikeImport={importKind:s,name:a,addAsTypeOnly:l}}break;case 4:break;default:e.Debug.assertNever(i,"fix wasn't never - got kind ".concat(i.kind))}function y(e,t){return Math.max(null!=e?e:0,t)}function v(e,t){return"".concat(t?1:0,"|").concat(e)}}}function l(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return v(_(r,a,o,s,i,t,c,l).fixes,t,i,u,c)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i,a,o,s,c){var l=h(a,o);return e.getExportInfoMap(t,o,a,s,c).search(t.path,i,(function(e){return e===n}),(function(t){if(e.skipAlias(t[0].symbol,l(t[0].isFromPackageJson))===r)return t}))}function p(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function _(t,r,n,a,o,s,c,l,u,d){void 0===u&&(u=g(o.getTypeChecker(),s,o.getCompilerOptions()));var p=o.getTypeChecker(),_=e.flatMap(t,u.getImportsForExportInfo),m=r&&function(t,r,n,i){return e.firstDefined(t,(function(t){var a,o=t.declaration,s=function(t){var r,n,i;switch(t.kind){case 259:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 271:return t.name.text;case 272:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=function(t,r){var n;switch(t.kind){case 259:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 271:return r.getAliasedSymbol(t.symbol);case 272:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}}))}(_,r.symbolName,r.position,p),y=function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&271!==a.kind){if(259===a.kind)return 0!==o&&1!==o||204!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var p=f(r,!1,s,c,n,i);if(!(1===o&&(u||2===p&&d)||0===o&&274===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:p}}}}}))}(_,n,p,o.getCompilerOptions());if(y)return{computedWithoutCacheCount:0,fixes:i(i([],m?[m]:e.emptyArray,!0),[y],!1)};var v=function(t,r,n,i,a,o,s,c,l,u){var d=e.firstDefined(r,(function(t){return function(t,r,n,i,a){var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d){return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:n?4:f(r,!0,l,u,i,a),useRequire:n}}}(t,o,s,n.getTypeChecker(),n.getCompilerOptions())}));return d?{fixes:[d]}:function(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),d=t.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(t,s),_=h(t,s),g=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),m=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,p,c),computedWithoutCache:!1}}:function(t,n){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,d,r,p,c)},y=0,v=e.flatMap(o,(function(t,o){var s=_(t.isFromPackageJson),c=m(t.moduleSymbol,s),l=c.computedWithoutCache,p=c.moduleSpecifiers,h=!!(111551&t.targetFlags),v=f(i,!0,t.symbol,t.targetFlags,s,d);return y+=l?1:0,e.mapDefined(p,(function(i){return g&&e.pathContainsNodeModules(i)?void 0:!h&&u&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:D(r,t.exportKind,d),useRequire:a,addAsTypeOnly:v,exportInfo:t,isReExport:o>0}}))}));return{computedWithoutCacheCount:y,fixes:v}}(n,i,a,o,s,t,c,l,u)}(t,_,o,s,null==r?void 0:r.position,n,a,c,l,d),b=v.fixes,x=v.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===x?0:x,fixes:i(i([],m?[m]:e.emptyArray,!0),b,!0)}}function f(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function g(t,r,n){for(var i,a=0,o=r.imports;a=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 273:return c(r),r;case 274:return c(r.parent),r.parent;case 271:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&276===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(86)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixImportNonExportedMember",n=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];function a(t,r,n){var i,a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)){var o=e.findAncestor(a,e.isImportDeclaration);if(void 0===o)return;var s=e.isStringLiteral(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(void 0===s)return;var c=e.getResolvedModule(t,s,void 0);if(void 0===c)return;var l=n.getSourceFile(c.resolvedFileName);if(void 0===l||e.isSourceFileFromLibrary(n,l))return;var u=null===(i=l.symbol.valueDeclaration)||void 0===i?void 0:i.locals;if(void 0===u)return;var d=u.get(a.escapedText);if(void 0===d)return;var p=function(t){if(void 0===t.valueDeclaration)return e.firstOrUndefined(t.declarations);var r=t.valueDeclaration,n=e.isVariableDeclaration(r)?e.tryCast(r.parent.parent,e.isVariableStatement):void 0;return n&&1===e.length(n.declarationList.declarations)?n:r}(d);if(void 0===p)return;return{exportName:{node:a,isTypeOnly:e.isTypeDeclaration(p)},node:p,moduleSourceFile:l,moduleSpecifier:s}}}function o(t,r,n,i,a){e.length(i)&&(a?c(t,r,n,a,i):l(t,r,n,i))}function s(t,r){return e.findLast(t.statements,(function(t){return e.isExportDeclaration(t)&&(r&&t.isTypeOnly||!t.isTypeOnly)}))}function c(t,r,n,a,o){var s=a.exportClause&&e.isNamedExports(a.exportClause)?a.exportClause.elements:e.factory.createNodeArray([]),c=!(a.isTypeOnly||!r.getCompilerOptions().isolatedModules&&!e.find(s,(function(e){return e.isTypeOnly})));t.replaceNode(n,a,e.factory.updateExportDeclaration(a,a.modifiers,a.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(i(i([],s,!0),u(o,c),!0),s.hasTrailingComma)),a.moduleSpecifier,a.assertClause))}function l(t,r,n,i){t.insertNodeAtEndOfScope(n,n,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(u(i,!!r.getCompilerOptions().isolatedModules)),void 0,void 0))}function u(t,r){return e.factory.createNodeArray(e.map(t,(function(t){return e.factory.createExportSpecifier(r&&t.isTypeOnly,void 0,t.node)})))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var i=n.sourceFile,o=n.span,u=n.program,d=a(i,o.start,u);if(void 0!==d){var p=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){var i=n.exportName,a=n.node,o=n.moduleSourceFile,u=s(o,i.isTypeOnly);u?c(t,r,o,u,[i]):e.canHaveExportModifier(a)?t.insertExportModifier(o,a):l(t,r,o,[i])}(t,u,d)}));return[t.createCodeFixAction(r,p,[e.Diagnostics.Export_0_from_module_1,d.exportName.node.text,d.moduleSpecifier],r,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(r){var c=r.program;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(l){var u=new e.Map;t.eachDiagnostic(r,n,(function(t){var r=a(t.file,t.start,c);if(void 0!==r){var n=r.exportName,i=r.node,o=r.moduleSourceFile;if(void 0===s(o,n.isTypeOnly)&&e.canHaveExportModifier(i))l.insertExportModifier(o,i);else{var d=u.get(o)||{typeOnlyExports:[],exports:[]};n.isTypeOnly?d.typeOnlyExports.push(n):d.exports.push(n),u.set(o,d)}}})),u.forEach((function(e,t){var r=s(t,!0);r&&r.isTypeOnly?(o(l,c,t,e.typeOnlyExports,r),o(l,c,t,e.exports,s(t,!1))):o(l,c,t,i(i([],e.exports,!0),e.typeOnlyExports,!0),r)}))})))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 200===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(!n)return;var i=n.type,a=!1,o=!1;for(;188===i.kind||189===i.kind||194===i.kind;)188===i.kind?a=!0:189===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);if(s===n)return;t.replaceNode(r,n,s)}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&102===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var g=e.findAncestor(a,e.isClassLike),m=g?e.getEffectiveBaseTypeNode(g):void 0,h=m?c.getTypeAtLocation(m):void 0;h&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,d)}));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]);if(u(t,n,c(t,l.label,l.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,512)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 259:case 167:case 206:case 170:case 302:return t.initializer;case 291:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 303:case 169:case 305:case 353:case 346:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function _(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([g(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[m(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,n,i,a,o){var s=e.getTokenAtPosition(t,n),c=s.parent;if(i===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!e.isObjectLiteralExpression(c)||!e.isCallExpression(c.parent))return;var l=e.findIndex(c.parent.arguments,(function(e){return e===c}));if(l<0)return;if(!((f=a.getResolvedSignature(c.parent))&&f.declaration&&f.parameters[l]))return;var u=f.parameters[l].valueDeclaration;if(!(u&&e.isParameter(u)&&e.isIdentifier(u.name)))return;var d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c),a.getParameterType(f,l),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:u.name,properties:d,parentDeclaration:c}}if(e.isMemberName(s)){if(e.isIdentifier(s)&&e.hasInitializer(c)&&c.initializer&&e.isObjectLiteralExpression(c.initializer)){d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c.initializer),a.getTypeAtLocation(s),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:s,properties:d,parentDeclaration:c.initializer}}if(e.isIdentifier(s)&&e.isJsxOpeningLikeElement(s.parent)){var p=function(t,r,n){var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}));a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 95===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(118)),2===i.length&&95===i[0].token&&118===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions:function(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,function(n,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(function(e){return e.filterJSDocTags(n.sourceFile,o,(function(e){return e!==s}))}));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)}(i,s)),e.append(o,function(r,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(!e.length(o.parameters))return;for(var c=r.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,p=l;dl,v=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 261:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||y(c,n,s);case 216:case 217:return y(c,n,s);case 176:return!1;case 175:return!0;default:return e.Debug.failBadSyntaxKind(c)}}(i,r,n,a,o,s,c))if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r)))for(var l=0,u=n.modifiers;li}))}function y(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,h=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles(),D=e.getTokenAtPosition(h,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(T=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,h,D)})),e.Diagnostics.Remove_type_parameters)];var S=p(D);if(S){var T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,S)}));return[t.createCodeFixAction(r,T,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(D)&&(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(h,D,e,b,x,y,v,!1)}))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(h)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,E=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(h)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,h,D.parent)})),E)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(h,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(h,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,h,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(139===D.kind){T=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,h,D)}));var A=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;if((N=e.textChanges.ChangeTracker.with(i,(function(e){return m(h,D,e,b,x,y,v,!1)}))).length){A=e.isComputedPropertyName(D.parent)?D.parent:D;k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(h)]))}}var F=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,h,D)}));return F.length&&k.push(t.createCodeFixAction(r,F,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(h)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,y=r.program,v=r.cancellationToken,b=y.getTypeChecker(),x=y.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:g(t,s.code,l,D);break;case a:var S=p(D);S?t.delete(l,S):d(D)&&m(l,D,t,b,x,y,v,!0);break;case i:if(139===D.kind||d(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!h(D.parent.parent,b,x)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;_(l,D)?f(t,l,D.parent):m(l,D,t,b,x,y,v,!0)}break;case o:139===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 244:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 246:case 247:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nz.length)W(F,b.getSignatureFromDeclaration(h[h.length-1]),E,q(S),$(p,F));else e.Debug.assert(h.length===z.length,"Declarations and signatures should match count"),l(function(t,n,i,a,o,s,c,l,p){for(var _=a[0],f=a[0].minArgumentCount,g=!1,m=0,h=a;m=_.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(_))&&(_=y)}var v=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((function(e){return e.name})),x=u(v,b,void 0,f,!1);if(g){var D=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(158)),void 0);x.push(D)}return function(t,r,n,i,a,o,s,c){return e.factory.createMethodDeclaration(t,void 0,r,n?e.factory.createToken(57):void 0,i,a,o,c||d(s))}(c,o,s,void 0,x,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),l,p)}(b,o,n,z,q(S),A&&!!(1&_),E,F,p))}function W(e,t,r,a,s){var u=i(172,o,e,t,s,a,r,A&&!!(1&_),n,c);u&&l(u)}function q(t){return e.getSynthesizedDeepClone(t,!1)}function $(t,r,n){return n?void 0:e.getSynthesizedDeepClone(t,!1)||d(r)}function G(t){return e.getSynthesizedDeepClone(t,!1)}}function i(t,n,i,a,o,s,c,l,u,d){var p=n.program,_=p.getTypeChecker(),f=e.getEmitScriptTarget(p.getCompilerOptions()),g=524545|(0===i?268435456:0),h=_.signatureToSignatureDeclaration(a,t,u,g,r(n));if(h){var v=h.typeParameters,b=h.parameters,x=h.type;if(d){if(v){var D=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;n&&((r=m(n,f))&&(n=r.typeNode,y(d,r.symbols)));i&&((r=m(i,f))&&(i=r.typeNode,y(d,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));v!==D&&(v=e.setTextRange(e.factory.createNodeArray(D,v.hasTrailingComma),v))}var S=e.sameMap(b,(function(t){var r=m(t.type,f),n=t.type;return r&&(n=r.typeNode,y(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var T=m(x,f);T&&(x=T.typeNode,y(d,T.symbols))}}var C=l?e.factory.createToken(57):void 0,E=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,x,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,c,E,null!=s?s:e.factory.createIdentifier(""),C,v,b,x,o):e.isFunctionDeclaration(h)?e.factory.updateFunctionDeclaration(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):void 0}}function a(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function o(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=m(c,a);l&&(y(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function s(e){return e.isUnionOrIntersection()?e.types.some(s):262144&e.flags}function c(t,r,n,i,c,u,d){for(var p,_=[],f=new e.Map,g=0;g=i?e.factory.createToken(57):void 0,a?void 0:(null==n?void 0:n[c])||e.factory.createKeywordTypeNode(158),void 0);o.push(d)}return o}function d(t){return p(e.Diagnostics.Method_not_implemented.message,t)}function p(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function _(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=g(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(101===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(203===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function o(t,r,n){var a,o,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(void 0,e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(147):void 0,d,void 0,s.questionToken,s.type,void 0),_=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[p],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(a=c,o=_,e.factory.createTypeAliasDeclaration(a.modifiers,a.name,a.typeParameters,o)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 134===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&104!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];function i(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r));if(void 0!==a){var o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,86,t);if(void 0!==s)return{symbol:a,token:s}}}}function a(t,r,n){t.replaceNode(r,n,e.factory.createToken(120))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.program,l=i(o,s.start,c);if(void 0!==l){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l.token)}));return[t.createCodeFixActionMaybeFixAll(r,u,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(r){var o=r.program,s=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(c){t.eachDiagnostic(r,n,(function(t){var r=i(t.file,t.start,o);if(r&&e.addToSeen(s,e.getSymbolId(r.symbol)))return a(c,t.file,r.token)}))})))},fixIds:[r]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(115)]).types[0]);p&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!g||3&g.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,l.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!(s&&(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=i.getTypeChecker(),l=function(t,r){var n=t.parent;if(e.isSourceFile(n))return n.symbol;var i=n.parent.symbol;if(i.valueDeclaration&&e.isExternalModuleAugmentation(i.valueDeclaration))return r.getMergedSymbol(i);return i}(s,c),u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?1025:0),d=!!(1024&u);if(!(1&u)||!d&&l.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var p=function(t){return e.isIdentifier(t)&&c.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 261:case 262:case 264:case 266:case 265:case 267:if(!(g=s).name)return;return p(g.name)||{exportNode:g,exportName:g.name,wasDefault:d,exportingModuleSymbol:l};case 242:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!d,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:d,exportingModuleSymbol:l};case 277:var g;if((g=s).isExportEquals)return;return p(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:d,exportingModuleSymbol:l};default:return}}function s(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},n),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,89),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,94),"Should find an export keyword in modifier list");switch(o.kind){case 261:case 262:case 264:n.insertNodeAfter(t,d,e.factory.createToken(89));break;case 242:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,o.text,a,(function(t){if(o!==t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 209:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 276:case 281:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 273:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref");o=s(i,r.text);var l=c.namedBindings;if(l)if(274===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;case 203:var p=a;n.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,p.assertions,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 209:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 276:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 281:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(r,t,n)}}))}(r,n,i,a)}(r.file,r.program,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(o,o.parent,n);if(!(l&&c>l.getStart())){var u=o.importClause;return u?u.namedBindings?274===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:s(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&function(e,t){var r=t.resolveExternalModuleName(e);if(!r)return!1;var n=t.resolveExternalModuleSymbol(r);return r!==n}(r.parent.moduleSpecifier,t.getTypeChecker())}function c(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function l(t,r,n,i,a){void 0===a&&(a=s(r,i.parent));var o=r.getTypeChecker(),c=i.parent.parent,l=c.moduleSpecifier,d=new e.Set;i.elements.forEach((function(e){var t=o.getSymbolAtLocation(e.name);t&&d.add(t)}));var p=l&&e.isStringLiteral(l)?e.codefix.moduleSpecifierToValidIdentifier(l.text,99):"module";for(var _=i.elements.some((function(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(t){var r=o.resolveName(p,t,67108863,!0);return!!r&&(!d.has(r)||e.isExportSpecifier(t.parent))}))}))?e.getUniqueName(p,t):p,f=new e.Set,g=function(r){var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(a){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(r):n.replaceNode(t,a,o)}))},m=0,h=i.elements;m=d.pos?_.getEnd():d.getEnd()),g=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(d):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(d,f),m=g&&s(g)?function(t){if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var h=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&u(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,h):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=u(t,r);return a&&n.push(a),n.length>0?n:void 0}function u(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function _(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=_(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r,n){var i=c(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i){var a=i.finalExpression,o=i.occurrences,s=i.expression,c=o[o.length-1],l=_(r,a,o);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(s)?n.replaceNodeRange(t,c,a,l):e.isConditionalExpression(s)&&n.replaceNode(t,s,e.factory.createBinaryExpression(l,e.factory.createToken(60),s.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(o){var s=c(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s))return[{name:r,description:n,actions:[i]}];if(o.preferences.provideRefactorNotApplicableReason)return[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:s.error})]}];return e.emptyArray}})}(t.convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(){var r="Convert overload list to single signature",n=e.Diagnostics.Convert_overload_list_to_single_signature.message,i={name:r,description:n,kind:"refactor.rewrite.function.overloadList"};function a(e){switch(e.kind){case 171:case 172:case 177:case 174:case 178:case 261:return!0}return!1}function o(t,r,n){var i=e.getTokenAtPosition(t,r),o=e.findAncestor(i,a);if(o&&!(e.isFunctionLikeDeclaration(o)&&o.body&&e.rangeContainsPosition(o.body,r))){var s=n.getTypeChecker(),c=o.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&a(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.modifiers||!e.isIdentifier(t.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===_})))return d}}}}}}}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=o(r,n,i);if(!a)return;var s=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 171:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 172:l=e.factory.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 177:l=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 174:l=e.factory.updateConstructorDeclaration(c,c.modifiers,d(a),c.body);break;case 178:l=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 261:l=e.factory.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l===c)return;var u=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}));return{renameFilename:void 0,renameLocation:void 0,edits:u};function d(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,p)))])}function p(t){var r=e.map(t.parameters,_);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function _(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(132)),t),n=t.symbol&&t.symbol.getDocumentationComment(s);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var a=t.file,s=t.startPosition,c=t.program;return o(a,s,c)?[{name:r,description:n,actions:[i]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var n=r.kind,i=_(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,n)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:A(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:A(i.errors)})]}),s}var d=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 174:return"constructor";case 216:case 261:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 217:return"arrow function";case 172:return"method '".concat(t.name.getText(),"'");case 175:return"'get ".concat(t.name.getText(),"'");case 176:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 262===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 268===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}));return c}(o,r);if(void 0===d)return e.emptyArray;for(var p,f,g=[],h=new e.Map,y=[],v=new e.Map,b=0,x=0,D=d;x0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,p).slice();if(s&&!a&&e.isStatement(t)){var d=v(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0};function p(t){if(!c&&e.isReturnStatement(t)&&s){var a=v(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,p)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var l=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var u=i.get(e.getNodeId(t).toString()),d=u?e.getSynthesizedDeepClone(u):e.visitEachChild(t,p,e.nullTransformationContext);return c=l,d}}(t,a,l,p,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var M=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var L=D?[]:[e.factory.createModifier(122)];o.facts&i.InStaticRegion&&L.push(e.factory.createModifier(125)),o.facts&i.IsAsyncFunction&&L.push(e.factory.createModifier(133)),w=e.factory.createMethodDeclaration(L.length?L:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,void 0,A,C,c,I)}else M&&C.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(o.thisNode),r,1),void 0)),w=e.factory.createFunctionDeclaration(o.facts&i.IsAsyncFunction?[e.factory.createToken(133)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,A,C,c,I);var R=e.textChanges.ChangeTracker.fromContext(s),B=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((b(o.range)?e.last(o.range):o.range).end,r);B?R.insertNodeBefore(s.file,B,w,!0):R.insertNodeAtEndOfScope(s.file,r,w);g.writeFixes(R);var j=[],J=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x);M&&E.unshift(e.factory.createIdentifier("this"));var U=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(J,"call"):J,N,E);o.facts&i.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U));o.facts&i.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U));S(t)&&(U=e.factory.createJsxExpression(void 0,U));if(a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var z=a[0];j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),U)],z.parent.flags)))}else{for(var V=[],K=[],W=a[0].parent.flags,q=!1,$=0,G=a;$0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,b,y,!0),m.replaceNode(o.file,t,v)}else{var x=e.factory.createVariableDeclaration(d,void 0,_,f),T=function(t,r){var n;for(;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T){m.insertNodeBefore(o.file,T,x);v=e.factory.createIdentifier(d);m.replaceNode(o.file,t,v)}else if(243===t.parent.kind&&r===e.findAncestor(t,g)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,C)}else{C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)g(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(D(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===b.pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,b,C,!1),243===t.parent.kind)m.delete(o.file,t.parent);else{v=e.factory.createIdentifier(d);S(t)&&(v=e.factory.createJsxExpression(void 0,v)),m.replaceNode(o.file,t,v)}}}var E=m.getChanges(),k=t.getSourceFile().fileName,A=e.getRenameLocation(E,k,d,!0);return{renameFilename:k,renameLocation:A,edits:E};function N(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis,s=a;break;case 217:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 262:case 261:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 230:case 216:case 172:case 174:case 175:case 176:return!1}var p=u;switch(a.kind){case 244:u&=-5;break;case 257:u=0;break;case 240:a.parent&&257===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 296:case 295:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 195:case 109:g|=i.UsesThis,s=a;break;case 255:var _=a.label;(l||(l=[])).push(_.escapedText),e.forEachChild(a,t),l.pop();break;case 251:case 250:(_=a.label)?e.contains(l,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(251===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 222:g|=i.IsAsyncFunction;break;case 228:g|=i.IsGenerator;break;case 252:4&u?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=p}(t),g&i.UsesThis){var d=e.getThisContainer(t,!1);(261===d.kind||172===d.kind&&208===d.parent.kind||216===d.kind)&&(g|=i.UsesThisInFunction)}return o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:T(t)?t:void 0}function g(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var a=r.file,o=function(t){var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(167===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),g(r)&&(o.push(r),311===r.kind))return o}(t),s=function(t,r){return b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,d=new e.Map,p=[],_=[],f=[],g=[],m=[],h=new e.Map,y=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,n.uselessConstantType));for(var T=0,C=r;T0){for(var P=new e.Map,I=0,O=F;void 0!==O&&I0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;g[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&f[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(p[a].usages.forEach((function(t){2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===y.length,"No variable declarations expected if something was extracted"),u&&!b(t.range)){var d=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[a].push(d),g[a].push(d)}else if(c&&a>0){d=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);f[a].push(d),g[a].push(d)}else if(l){d=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity);f[a].push(d),g[a].push(d)}},U=0;U=l)return m;if(A.set(m,l),h){for(var y=0,v=p;y=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();h.has(a)||(y.push(i),h.set(a,!0))}else l=l||i}e.forEachChild(r,$)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function H(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=H(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,s,a,r.program.getTypeChecker(),r.cancellationToken);return{scopes:o,readsAndWrites:c}}function h(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;nn.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)=n&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 261:return m(t)&&g(t,r);case 172:if(e.isObjectLiteralExpression(t.parent)){var a=s(t.name,r);return 1===(null===(i=null==a?void 0:a.declarations)||void 0===i?void 0:i.length)&&g(t,r)}return g(t,r);case 174:return e.isClassDeclaration(t.parent)?m(t.parent)&&g(t,r):h(t.parent.parent)&&g(t,r);case 216:case 217:return h(t.parent)}return!1}(o,i)&&e.rangeContainsRange(o,a))||o.body&&e.rangeContainsRange(o.body,a)?void 0:o}function f(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function g(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,89)}function h(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function v(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function b(t,r){var n=v(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=D(n[r]),s=(i=o,a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(t,s),s}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(D(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function x(t,r,n){var i,a,o,s=r.getTypeChecker(),c=v(t.parameters),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,D(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer);return r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,g),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,u,void 0,d,o);if(y(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function g(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,D(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c}function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function D(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(r,{kinds:[o.kind],getEditsForAction:function(t,n){e.Debug.assert(n===r,"Unexpected action name");var a=t.file,o=t.startPosition,g=t.program,m=t.cancellationToken,h=t.host,y=_(a,o,g.getTypeChecker());if(!y||!m)return;var v=function(t,r,n){var a=function(t){switch(t.kind){case 261:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,89),"Nameless function declaration should be a default export")];case 172:return[t.name];case 174:var r=e.Debug.checkDefined(e.findChildOfKind(t,136,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 230===t.parent.kind?[t.parent.parent.name,r]:[r];case 217:return[t.parent.name];case 216:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),o=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 262:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,89),"Nameless class declaration should be a default export")];case 230:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],_=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),g=r.getTypeChecker(),m=e.flatMap(_,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})),h=y(m);e.every(h.declarations,(function(t){return e.contains(_,t)}))||(h.valid=!1);return h;function y(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},_=e.map(a,v),m=e.map(o,v),h=e.isConstructorDeclaration(t),y=e.map(a,(function(e){return s(e,g)})),b=0,x=r;b0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}};function p(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function _(t,r){for(var n=[],i="",a="";t1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(o,a);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,a,1);return c?{declaration:a,returnTypeNode:c}:void 0}}t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n)){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),l=e.isArrowFunction(o)&&void 0===c,void((u=l?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}}return},getAvailableActions:function(s){var c=o(s);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c))return[{name:r,description:n,actions:[i]}];if(s.preferences.provideRefactorNotApplicableReason)return[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:c.error})]}];return e.emptyArray}})}(t.inferFunctionReturnType||(t.inferFunctionReturnType={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new u(79,n,i):80===t?new d(80,n,i):new c(t,n,i);return o.parent=a,o.flags=1124462592&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;var o=i?i.fileName:r.getSourceFile().fileName;o&&8===e.getScriptKindFromFileName(o)&&e.scanner.setEtsContext(!0);e.scanner.setText((i||r.getSourceFile()).text);var s=r.pos,c=function(e){n(a,s,e.pos,r),a.push(e),s=e.end},l=function(e){n(a,s,e.pos,r),a.push(function(e,r){var i=t(354,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o353}));return n.kind<164?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<164?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){if(!a.virtual)for(e.scanner.setTextPos(n);n=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 261:case 216:case 172:case 171:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 262:case 230:case 263:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 175:case 176:case 185:r(a),e.forEachChild(a,i);break;case 167:if(!e.hasSyntacticModifier(a,16476))break;case 259:case 206:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 305:case 170:case 169:r(a);break;case 278:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 272:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(274===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 225:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),v=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function b(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!x(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[x(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function x(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D(){return{target:1,jsx:1}}e.toEditorSettings=b,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=D,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,p=e.getScriptKind(t,this.host),_=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=C(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},_,!0,p,this.host.getCompilationSettings());else if(this.currentFileVersion!==_){var f=u.getChangeRange(this.currentFileScriptSnapshot);d=E(this.currentSourceFile,u,_,f,void 0,this.host.getCompilationSettings())}return d&&(this.currentFileVersion=_,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function T(e,t,r){e.version=r,e.scriptSnapshot=t}function C(t,r,n,i,a,o,s){var c=e.createSourceFile(t,e.getSnapshotText(r),n,a,o,s);return T(c,r,i),c}function E(t,r,n,i,a,o){if(i&&n!==t.version){var s=void 0,c=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)s=c&&l?c+l:c||l;else{var u=r.getText(i.span.start,i.span.start+i.newLength);s=c&&l?c+u+l:c?c+u:u+l}var d=e.updateSourceFile(t,s,i,a,o);return T(d,r,n),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}var p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return C(t.fileName,r,p,n,!0,t.scriptKind,o)}e.createLanguageServiceSourceFile=C,e.updateLanguageServiceSourceFile=E;var k={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},A=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),N=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=N;var F=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],w=i(i([],F,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function P(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(165===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||208!==t.parent.parent.kind&&292!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var o,s,c;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),c=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var l,u,d=new S(t),p=0,_=t.getCancellationToken?new A(t.getCancellationToken()):k,f=t.getCurrentDirectory();function g(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(s=t.getLocalizedDiagnosticMessages)||void 0===s?void 0:s.bind(t));var m=e.hostUsesCaseSensitiveFileNames(t),h=e.createGetCanonicalFileName(m),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return m},getCurrentDirectory:function(){return f},getProgram:D,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:g});function v(e){var t=l.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=l.getSourceFiles().map((function(e){return e.fileName})),r}return t}function x(){var n,a,o;if(e.Debug.assert(c!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var s=t.getProjectVersion();if(s){if(u===s&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;u=s}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;p!==d&&(g("TypeRoots version has changed; provide new program"),l=void 0,p=d);var v,b=t.getScriptFileNames().slice(),x=t.getCompilationSettings()||{target:1,jsx:1},D=t.hasInvalidatedResolutions||e.returnFalse,S=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(a=t.getProjectReferences)||void 0===a?void 0:a.call(t),C={getSourceFile:I,getSourceFileByPath:O,getCancellationToken:function(){return _},getCanonicalFileName:h,useCaseSensitiveFileNames:function(){return m},getNewLine:function(){return e.getNewLineCharacter(x,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile&&t.readFile(e)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:P,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&P(r.sourceFile,n)},hasInvalidatedResolutions:D,hasChangedAutomaticTypeDirectiveNames:S,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w,getJsDocNodeCheckedConfig:e.maybeBind(t,t.getJsDocNodeCheckedConfig),getJsDocNodeConditionCheckedResult:e.maybeBind(t,t.getJsDocNodeConditionCheckedResult),getFileCheckedModuleInfo:e.maybeBind(t,t.getFileCheckedModuleInfo)},E=C.getSourceFile,k=e.changeCompilerHostLikeToUseCache(C,(function(t){return e.toPath(t,f,h)}),(function(){for(var e=[],t=0;t0?E-m.length:0;v=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:E-v}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&B(n)}function j(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:D(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i,triggerReason:o,kind:s}}E.forEach((function(e,t){return E.set(e.toString(),Number(t))}));var J={dispose:function(){if(l){var n=r.getKeyForCompilationSettings(l.getCompilerOptions());e.forEach(l.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat)})),l=void 0}t=void 0},cleanupSemanticCache:function(){l=void 0},getSyntacticDiagnostics:function(e){return x(),l.getSyntacticDiagnostics(v(e),_).slice()},getSemanticDiagnostics:function(t){x();var r=v(t),n=l.getSemanticDiagnostics(r,_);if(!e.getEmitDeclarations(l.getCompilerOptions()))return n.slice();var a=l.getDeclarationDiagnostics(r,_);return i(i([],n,!0),a,!0)},getSuggestionDiagnostics:function(t){return x(),e.computeSuggestionDiagnostics(v(t),l,_)},getCompilerOptionsDiagnostics:function(){return x(),i(i([],l.getOptionsDiagnostics(_),!0),l.getGlobalDiagnostics(_),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return x(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(l,_,v(t),r):e.getSemanticClassifications(l.getTypeChecker(),_,v(t),l.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return x(),"original"===(n||"original")?e.getEncodedSemanticClassifications(l.getTypeChecker(),_,v(t),l.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(l,_,v(t),r)},getCompletionsAtPosition:function(r,n,i,o){void 0===i&&(i=e.emptyOptions);var s=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return x(),e.Completions.getCompletionsAtPosition(t,l,g,v(r),n,s,i.triggerCharacter,i.triggerKind,_,o&&e.formatting.getFormatContext(o,t))},getCompletionEntryDetails:function(r,n,i,a,o,s,c){return void 0===s&&(s=e.emptyOptions),x(),e.Completions.getCompletionEntryDetails(l,g,v(r),n,{name:i,source:o,data:c},t,a&&e.formatting.getFormatContext(a,t),s,_)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),x(),e.Completions.getCompletionEntrySymbol(l,g,v(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;x();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(l,a,r,i,_)},getQuickInfoAtPosition:function(t,r){x();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=l.getTypeChecker(),o=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;if(e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos)return t.parent;if(e.isImportMeta(t.parent)&&t.parent.name===t)return t.parent;return t}(i),s=function(t,r){var n=P(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 209:case 164:return!e.isInComment(t,n);case 109:case 195:case 107:case 200:return!0;case 235:return e.isImportMeta(r);default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(_,(function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(o))})),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),d=u.symbolKind,p=u.displayParts,f=u.documentation,g=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r,n,i){return x(),e.GoToDefinition.getDefinitionAtPosition(l,v(t),r,n,i)},getDefinitionAndBoundSpan:function(t,r){return x(),e.GoToDefinition.getDefinitionAndBoundSpan(l,v(t),r)},getImplementationAtPosition:function(t,r){return x(),e.FindAllReferences.getImplementationsAtPosition(l,_,l.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return x(),e.GoToDefinition.getTypeDefinitionAtPosition(l.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return x(),C(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return x(),e.FindAllReferences.findReferencedSymbols(l,_,l.getSourceFiles(),v(t),r)},getFileReferences:function(t){return x(),e.FindAllReferences.Core.getReferencesForFileName(t,l,l.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(T(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 209:case 164:case 10:case 96:case 111:case 105:case 107:case 109:case 195:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(267!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=d.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),x();var a=n?[v(n)]:l.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,l.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return x(),e.Rename.getRenameInfo(l,v(t),r,n||{})},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,d.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){x();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return C(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(d.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(d.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=d.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){x();var n=v(t);_.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/"))&&!function(t){return e.stringContains(t,"/oh_modules/")}(n.fileName))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")",i=t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source;return new RegExp(i,"gim")}(),l=void 0;l=c.exec(o);){_.throwIfCancellationRequested();e.Debug.assert(l.length===r.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var g=l[2];s.push({descriptor:p,message:g,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?E.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=b(n),o=d.getCurrentSourceFile(t);g("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return g("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=d.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(d.getCurrentSourceFile(r),e.formatting.getFormatContext(b(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=d.getCurrentSourceFile(r),s=e.formatting.getFormatContext(b(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),d.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=d.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&R(a))return{newText:"")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&B(o)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),x();var c=v(r),u=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:c,span:u,program:l,host:t,cancellationToken:_,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:l,host:t,cancellationToken:_,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return N(e)}))):N(n)},organizeImports:function(r,n,i){var a;void 0===i&&(i=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=v(r.fileName),s=e.formatting.getFormatContext(n,t),c=null!==(a=r.mode)&&void 0!==a?a:r.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(o,s,t,l,i,c)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(D(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){x();var a=v(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(l,a,!!n,_,o,i)},getNonBoundSourceFile:function(e){return d.getCurrentSourceFile(e)},getProgram:D,getCurrentProgram:function(){return l},getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},updateIsDefinitionOfReferencedSymbols:function(r,n){var i=l.getTypeChecker(),a=function(){for(var a=0,o=r;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return d(n)}function o(r,n){var i=e.canHaveDecorators(r)?e.findLast(r.modifiers,e.isDecorator):void 0,a=i?e.skipTrivia(t.text,i.end):r.getStart(t);return e.createTextSpanFromBounds(a,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 242:return h(r.declarationList.declarations[0]);case 259:case 170:case 169:return h(r);case 167:return function t(r){if(e.isBindingPattern(r.name))return x(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 261:case 172:case 171:case 175:case 176:case 174:case 216:case 217:return function(e){if(!e.body)return;if(y(e))return o(e);return d(e.body)}(r);case 240:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(y(e.parent))return c(e.parent,t);return d(t)}(r);case 268:return v(r);case 298:return v(r.block);case 243:return o(r.expression);case 252:return o(r.getChildAt(0),r.expression);case 246:return s(r,r.expression);case 245:return d(r.statement);case 258:return o(r.getChildAt(0));case 244:return s(r,r.expression);case 255:return d(r.statement);case 251:case 250:return o(r.getChildAt(0),r.label);case 247:return function(e){if(e.initializer)return b(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(r);case 248:return s(r,r.expression);case 249:return b(r);case 254:return s(r,r.expression);case 295:case 296:return d(r.statements[0]);case 257:return v(r.tryBlock);case 256:case 277:return o(r,r.expression);case 271:return o(r,r.moduleReference);case 272:case 278:return o(r,r.moduleSpecifier);case 267:if(1!==e.getModuleInstanceState(r))return;case 262:case 266:case 305:case 206:return o(r);case 253:return d(r.statement);case 168:return function(r,n,i){if(r){var a=r.indexOf(n);if(a>=0){for(var s=a,c=a+1;s>0&&i(r[s-1]);)s--;for(;c0?d(t.declarations[0]):void 0}function x(t){var r=e.forEach(t.elements,(function(e){return 231!==e.kind?e:void 0}));return r?d(r):206===t.parent.kind?o(t.parent):m(t.parent)}function D(t){e.Debug.assert(205!==t.kind&&204!==t.kind);var r=207===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 231!==e.kind?e:void 0}));return n?d(n):o(225===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(d||(d={}));var d,p=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var o=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function s(e,t,r,n){return u(e,t,!0,r,n)}function u(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=_;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p&&p.CollectGarbage&&(p.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return _(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getCompletionsAtPosition(e,t,r,n)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.uncommentSelection(e,t)}))},r}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return l(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(311===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})}(d||(d={})),function(e){e.isTypeAssertion=e.Debug.deprecate((function(e){return 214===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(d||(d={})),function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(d||(d={})),function(e){function t(t){var r=t.createConstructorTypeNode,n=t.updateConstructorTypeNode;t.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(e){return 4===e.length},1:function(e){return 3===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(e){return 5===e.length},1:function(e){return 4===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){function t(t){var r=t.createImportTypeNode,n=t.updateImportTypeNode;t.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(e,t,n,i,a){return r(e,t,n,i,a)},1:function(e,t,n,i){return r(e,void 0,t,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),t.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(e,t,r,i,a,o){return n(e,t,r,i,a,o)},1:function(e,t,r,i,a){return n(e,t,e.assertions,r,i,a)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){function t(t){var r=t.createTypeParameterDeclaration,n=t.updateTypeParameterDeclaration;t.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(t){var r=t[0];return void 0===r||e.isArray(r)},1:function(t){var r=t[0];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(t){var r=t[1];return void 0===r||e.isArray(r)},1:function(t){var r=t[1];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(d||(d={})),function(e){var t={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function i(i){var a=i.createParameterDeclaration,o=i.updateParameterDeclaration,s=i.createPropertyDeclaration,c=i.updatePropertyDeclaration,l=i.createMethodDeclaration,u=i.updateMethodDeclaration,d=i.createConstructorDeclaration,p=i.updateConstructorDeclaration,_=i.createGetAccessorDeclaration,f=i.updateGetAccessorDeclaration,g=i.createSetAccessorDeclaration,m=i.updateSetAccessorDeclaration,h=i.createIndexSignature,y=i.updateIndexSignature,v=i.createClassStaticBlockDeclaration,b=i.updateClassStaticBlockDeclaration,x=i.createClassExpression,D=i.updateClassExpression,S=i.createFunctionDeclaration,T=i.updateFunctionDeclaration,C=i.createClassDeclaration,E=i.updateClassDeclaration,k=i.createInterfaceDeclaration,A=i.updateInterfaceDeclaration,N=i.createTypeAliasDeclaration,F=i.updateTypeAliasDeclaration,w=i.createEnumDeclaration,P=i.updateEnumDeclaration,I=i.createModuleDeclaration,O=i.updateModuleDeclaration,M=i.createImportEqualsDeclaration,L=i.updateImportEqualsDeclaration,R=i.createImportDeclaration,B=i.updateImportDeclaration,j=i.createExportAssignment,J=i.updateExportAssignment,U=i.createExportDeclaration,z=i.updateExportDeclaration;i.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(e,t,r,n,i,o){return a(e,t,r,n,i,o)},1:function(t,r,n,i,o,s,c){return a(e.concatenate(t,r),n,i,o,s,c)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(e,t,r,n,i,a,s){return o(e,t,r,n,i,a,s)},1:function(t,r,n,i,a,s,c,l){return o(t,e.concatenate(r,n),i,a,s,c,l)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(e,t,r,n,i){return s(e,t,r,n,i)},1:function(t,r,n,i,a,o){return s(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(e,t,r,n,i,a){return c(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return c(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return l(e,t,r,n,i,a,o,s)},1:function(t,r,n,i,a,o,s,c,u){return l(e.concatenate(t,r),n,i,a,o,s,c,u)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s,c){return u(e,t,r,n,i,a,o,s,c)},1:function(t,r,n,i,a,o,s,c,l,d){return u(t,e.concatenate(r,n),i,a,o,s,c,l,d)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return void 0===t[9]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(e,t,r){return d(e,t,r)},1:function(e,t,r,n){return d(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return!(void 0!==t[3]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(e,t,r,n){return p(e,t,r,n)},1:function(e,t,r,n,i){return p(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return!(void 0!==t[4]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(e,t,r,n,i){return _(e,t,r,n,i)},1:function(t,r,n,i,a,o){return _(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(e,t,r,n,i,a){return f(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return f(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(e,t,r,n){return g(e,t,r,n)},1:function(t,r,n,i,a){return g(e.concatenate(t,r),n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(e,t,r,n,i){return m(e,t,r,n,i)},1:function(t,r,n,i,a,o){return m(t,e.concatenate(r,n),i,a,o)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(e,t,r){return h(e,t,r)},1:function(e,t,r,n){return h(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(e,t,r,n){return y(e,t,r,n)},1:function(e,t,r,n,i){return y(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(e){return v(e)},1:function(e,t,r){return v(r)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[0],n=t[1],i=t[2];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(e,t){return b(e,t)},1:function(e,t,r,n){return b(e,n)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(e,t,r,n,i){return x(e,t,r,n,i)},1:function(t,r,n,i,a,o){return x(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(e,t,r,n,i,a){return D(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return D(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o){return S(e,t,r,n,i,a,o)},1:function(e,t,r,n,i,a,o,s){return S(t,r,n,i,a,o,s)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return T(e,t,r,n,i,a,o,s)},1:function(e,t,r,n,i,a,o,s,c){return T(e,r,n,i,a,o,s,c)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(e,t,r,n,i){return C(e,t,r,n,i)},1:function(t,r,n,i,a,o){return C(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(){return!0}}).deprecate({1:t}).finish(),i.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(e,t,r,n,i,a){return E(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return E(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:t}).finish(),i.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(e,t,r,n,i){return k(e,t,r,n,i)},1:function(e,t,r,n,i,a){return k(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(e,t,r,n,i,a){return A(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return A(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(e,t,r,n){return N(e,t,r,n)},1:function(e,t,r,n,i){return N(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(e,t,r,n,i){return F(e,t,r,n,i)},1:function(e,t,r,n,i,a){return F(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(e,t,r){return w(e,t,r)},1:function(e,t,r,n){return w(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(e,t,r,n){return P(e,t,r,n)},1:function(e,t,r,n,i){return P(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(e,t,r,n){return I(e,t,r,n)},1:function(e,t,r,n,i){return I(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)&&(void 0===i||e.isModuleBody(i))&&(void 0===a||"number"==typeof a)},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||"object"==typeof a)&&(void 0===o||"number"==typeof o)}}).deprecate({1:r}).finish(),i.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(e,t,r,n){return O(e,t,r,n)},1:function(e,t,r,n,i){return O(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isModuleBody(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||e.isModuleBody(a))}}).deprecate({1:r}).finish(),i.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(e,t,r,n){return M(e,t,r,n)},1:function(e,t,r,n,i){return M(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(e,t,r,n,i){return L(e,t,r,n,i)},1:function(e,t,r,n,i,a){return L(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(e,t,r,n){return R(e,t,r,n)},1:function(e,t,r,n,i){return R(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&void 0!==i&&e.isExpression(i)&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(e,t,r,n,i){return B(e,t,r,n,i)},1:function(e,t,r,n,i,a){return B(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isExpression(i))&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(e,t,r){return j(e,t,r)},1:function(e,t,r,n){return j(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"object"==typeof i},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&void 0!==a&&e.isExpression(a)}}).deprecate({1:r}).finish(),i.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(e,t,r){return J(e,t,r)},1:function(e,t,r,n){return J(e,r,n)}}).bind({0:function(t){var r=t[1],n=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isExpression(i)}}).deprecate({1:r}).finish(),i.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(e,t,r,n,i){return U(e,t,r,n,i)},1:function(e,t,r,n,i,a){return U(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish(),i.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(e,t,r,n,i,a){return z(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return z(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish()}var a=e.createNodeFactory;e.createNodeFactory=function(e,t){var r=a(e,t);return i(r),r},i(e.factory)}(d||(d={})),function(e){e.cookBookMsg=[],e.cookBookTag=[];for(var t=0;t<=151;t++)e.cookBookMsg[t]="";e.cookBookTag[1]="Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)",e.cookBookTag[2]='"Symbol()" API is not supported (arkts-no-symbol)',e.cookBookTag[3]='Private "#" identifiers are not supported (arkts-no-private-identifiers)',e.cookBookTag[4]="Use unique names for types and namespaces. (arkts-unique-names)",e.cookBookTag[5]='Use "let" instead of "var" (arkts-no-var)',e.cookBookTag[6]="",e.cookBookTag[7]="",e.cookBookTag[8]='Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)',e.cookBookTag[9]="",e.cookBookTag[10]="",e.cookBookTag[11]="",e.cookBookTag[12]="",e.cookBookTag[13]="",e.cookBookTag[14]='Use "class" instead of a type with call signature (arkts-no-call-signatures)',e.cookBookTag[15]='Use "class" instead of a type with constructor signature (arkts-no-ctor-signatures-type)',e.cookBookTag[16]="Only one static block is supported (arkts-no-multiple-static-blocks)",e.cookBookTag[17]="Indexed signatures are not supported (arkts-no-indexed-signatures)",e.cookBookTag[18]="",e.cookBookTag[19]="Use inheritance instead of intersection types (arkts-no-intersection-types)",e.cookBookTag[20]="",e.cookBookTag[21]='Type notation using "this" is not supported (arkts-no-typing-with-this)',e.cookBookTag[22]="Conditional types are not supported (arkts-no-conditional-types)",e.cookBookTag[23]="",e.cookBookTag[24]="",e.cookBookTag[25]='Declaring fields in "constructor" is not supported (arkts-no-ctor-prop-decls)',e.cookBookTag[26]="",e.cookBookTag[27]="Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)",e.cookBookTag[28]="Indexed access types are not supported (arkts-no-aliases-by-index)",e.cookBookTag[29]="Indexed access is not supported for fields (arkts-no-props-by-index)",e.cookBookTag[30]="Structural typing is not supported (arkts-no-structural-typing)",e.cookBookTag[31]="",e.cookBookTag[32]="",e.cookBookTag[33]="",e.cookBookTag[34]="Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)",e.cookBookTag[35]="",e.cookBookTag[36]="",e.cookBookTag[37]="RegExp literals are not supported (arkts-no-regexp-literals)",e.cookBookTag[38]="Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)",e.cookBookTag[39]="",e.cookBookTag[40]="Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)",e.cookBookTag[41]="",e.cookBookTag[42]="",e.cookBookTag[43]="Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)",e.cookBookTag[44]="",e.cookBookTag[45]="",e.cookBookTag[46]="Use arrow functions instead of function expressions (arkts-no-func-expressions)",e.cookBookTag[47]="",e.cookBookTag[48]="",e.cookBookTag[49]="Use generic functions instead of generic arrow functions (arkts-no-generic-lambdas)",e.cookBookTag[50]="Class literals are not supported (arkts-no-class-literals)",e.cookBookTag[51]='Classes cannot be specified in "implements" clause (arkts-implements-only-iface)',e.cookBookTag[52]="Reassigning object methods is not supported (arkts-no-method-reassignment)",e.cookBookTag[53]='Only "as T" syntax is supported for type casts (arkts-as-casts)',e.cookBookTag[54]="JSX expressions are not supported (arkts-no-jsx)",e.cookBookTag[55]='Unary operators "+", "-" and "~" work only on numbers (arkts-no-polymorphic-unops)',e.cookBookTag[56]="",e.cookBookTag[57]="",e.cookBookTag[58]="",e.cookBookTag[59]='"delete" operator is not supported (arkts-no-delete)',e.cookBookTag[60]='"typeof" operator is allowed only in expression contexts (arkts-no-type-query)',e.cookBookTag[61]="",e.cookBookTag[62]="",e.cookBookTag[63]="",e.cookBookTag[64]="",e.cookBookTag[65]='"instanceof" operator is partially supported (arkts-instanceof-ref-types)',e.cookBookTag[66]='"in" operator is not supported (arkts-no-in)',e.cookBookTag[67]="",e.cookBookTag[68]="",e.cookBookTag[69]="Destructuring assignment is not supported (arkts-no-destruct-assignment)",e.cookBookTag[70]="",e.cookBookTag[71]='The comma operator "," is supported only in "for" loops (arkts-no-comma-outside-loops)',e.cookBookTag[72]="",e.cookBookTag[73]="",e.cookBookTag[74]="Destructuring variable declarations are not supported (arkts-no-destruct-decls)",e.cookBookTag[75]="",e.cookBookTag[76]="",e.cookBookTag[77]="",e.cookBookTag[78]="",e.cookBookTag[79]="Type annotation in catch clause is not supported (arkts-no-types-in-catch)",e.cookBookTag[80]='"for .. in" is not supported (arkts-no-for-in)',e.cookBookTag[81]="",e.cookBookTag[82]="",e.cookBookTag[83]="Mapped type expression is not supported (arkts-no-mapped-types)",e.cookBookTag[84]='"with" statement is not supported (arkts-no-with)',e.cookBookTag[85]="",e.cookBookTag[86]="",e.cookBookTag[87]='"throw" statements cannot accept values of arbitrary types (arkts-limited-throw)',e.cookBookTag[88]="",e.cookBookTag[89]="",e.cookBookTag[90]="Function return type inference is limited (arkts-no-implicit-return-types)",e.cookBookTag[91]="Destructuring parameter declarations are not supported (arkts-no-destruct-params)",e.cookBookTag[92]="Nested functions are not supported (arkts-no-nested-funcs)",e.cookBookTag[93]='Using "this" inside stand-alone functions is not supported (arkts-no-standalone-this)',e.cookBookTag[94]="Generator functions are not supported (arkts-no-generators)",e.cookBookTag[95]="",e.cookBookTag[96]='Type guarding is supported with "instanceof" and "as" (arkts-no-is)',e.cookBookTag[97]="",e.cookBookTag[98]="",e.cookBookTag[99]="It is possible to spread only arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)",e.cookBookTag[100]="",e.cookBookTag[101]="",e.cookBookTag[102]="Interface can not extend interfaces with the same method (arkts-no-extend-same-prop)",e.cookBookTag[103]="Declaration merging is not supported (arkts-no-decl-merging)",e.cookBookTag[104]="Interfaces cannot extend classes (arkts-extends-only-class)",e.cookBookTag[105]="",e.cookBookTag[106]="Constructor function type is not supported (arkts-no-ctor-signatures-funcs)",e.cookBookTag[107]="",e.cookBookTag[108]="",e.cookBookTag[109]="",e.cookBookTag[110]="",e.cookBookTag[111]="Enumeration members can be initialized only with compile time expressions of the same type (arkts-no-enum-mixed-types)",e.cookBookTag[112]="",e.cookBookTag[113]='"enum" declaration merging is not supported (arkts-no-enum-merging)',e.cookBookTag[114]="Namespaces cannot be used as objects (arkts-no-ns-as-obj)",e.cookBookTag[115]="",e.cookBookTag[116]="Non-declaration statements in namespaces are not supported (single semicolons are considered as empty non-delcaration statements) (arkts-no-ns-statements)",e.cookBookTag[117]="",e.cookBookTag[118]="Special import type declarations are not supported (arkts-no-special-imports)",e.cookBookTag[119]="Importing a module for side-effects only is not supported (arkts-no-side-effects-imports)",e.cookBookTag[120]='"import default as ..." is not supported (arkts-no-import-default-as)',e.cookBookTag[121]='"require" and "import" assignment are not supported (arkts-no-require)',e.cookBookTag[122]="",e.cookBookTag[123]="",e.cookBookTag[124]="",e.cookBookTag[125]="",e.cookBookTag[126]='"export = ..." assignment is not supported (arkts-no-export-assignment)',e.cookBookTag[127]='Special "export type" declarations are not supported (arkts-no-special-exports)',e.cookBookTag[128]="Ambient module declaration is not supported (arkts-no-ambient-decls)",e.cookBookTag[129]="Wildcards in module names are not supported (arkts-no-module-wildcards)",e.cookBookTag[130]="Universal module definitions (UMD) are not supported (arkts-no-umd)",e.cookBookTag[131]="",e.cookBookTag[132]='"new.target" is not supported (arkts-no-new-target)',e.cookBookTag[133]="",e.cookBookTag[134]="Definite assignment assertions are not supported (arkts-no-definite-assignment)",e.cookBookTag[135]="",e.cookBookTag[136]="Prototype assignment is not supported (arkts-no-prototype-assignment)",e.cookBookTag[137]='"globalThis" is not supported (arkts-no-globalthis)',e.cookBookTag[138]="Some of utility types are not supported (arkts-no-utility-types)",e.cookBookTag[139]="Declaring properties on functions is not supported (arkts-no-func-props)",e.cookBookTag[140]='"Function.apply", "Function.bind", "Function.call" are not supported (arkts-no-func-apply-bind-call)',e.cookBookTag[141]="",e.cookBookTag[142]='"as const" assertions are not supported (arkts-no-as-const)',e.cookBookTag[143]="Import assertions are not supported (arkts-no-import-assertions)",e.cookBookTag[144]="Usage of standard library is restricted (arkts-limited-stdlib)",e.cookBookTag[145]="Strict type checking is enforced (arkts-strict-typing)",e.cookBookTag[146]="Switching off type checks with in-place comments is not allowed (arkts-strict-typing-required)",e.cookBookTag[147]="No dependencies on TypeScript code are currently allowed (arkts-no-ts-deps)",e.cookBookTag[148]="No decorators except ArkUI decorators are currently allowed (arkts-no-decorators-except-arkui)",e.cookBookTag[149]="Classes cannot be used as objects (arkts-no-classes-as-obj)",e.cookBookTag[150]='"import" statements after other statements are not allowed (arkts-no-misplaced-imports)',e.cookBookTag[151]='Usage of "ESObject" type is restricted (arkts-limited-esobj)'}(d||(d={})),function(e){!function(e){e.TYPE_0_IS_NOT_ASSIGNABLE_TO_TYPE_1_ERROR_CODE=2322,e.TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type '(.*)\bunknown\b(.*)' is not assignable to type '.*'\.$/,e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type 'null' is not assignable to type '.*'\.$/,e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE=/^Type 'undefined' is not assignable to type '.*'\.$/,e.ARGUMENT_OF_TYPE_0_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_ERROR_CODE=2345,e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE=/^Argument of type 'null' is not assignable to parameter of type '.*'\.$/,e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE=/^Argument of type 'undefined' is not assignable to parameter of type '.*'\.$/,e.NO_OVERLOAD_MATCHES_THIS_CALL_ERROR_CODE=2769;var t=function(){function t(e){this.inLibCall=!1,this.filteredDiagnosticMessages=[],this.filteredDiagnosticMessages=e}return t.prototype.configure=function(e,t){this.inLibCall=e,this.diagnosticMessages=t},t.prototype.checkMessageText=function(t){return!this.inLibCall||!(t.match(e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE)||t.match(e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE)||t.match(e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE)||t.match(e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))},t.prototype.checkMessageChain=function(t){if(t.code==e.TYPE_0_IS_NOT_ASSIGNABLE_TO_TYPE_1_ERROR_CODE){if(t.messageText.match(e.TYPE_UNKNOWN_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.TYPE_NULL_IS_NOT_ASSIGNABLE_TO_TYPE_1_RE))return!1}if(t.code==e.ARGUMENT_OF_TYPE_0_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_ERROR_CODE){if(this.inLibCall&&t.messageText.match(e.ARGUMENT_OF_TYPE_UNDEFINED_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE))return!1;if(this.inLibCall&&t.messageText.match(e.ARGUMENT_OF_TYPE_NULL_IS_NOT_ASSIGNABLE_TO_PARAMETER_OF_TYPE_1_RE))return!1}return null==t.next||this.checkMessageChain(t.next[0])},t.prototype.checkFilteredDiagnosticMessages=function(e){if(0==this.filteredDiagnosticMessages.length)return!0;if("string"!=typeof e&&this.filteredDiagnosticMessages.includes(e))return!1;for(var t=0,r=this.filteredDiagnosticMessages;t=63&&e.kind<=78}function a(r){return!(void 0===r||!e.isTypeReferenceNode(r))&&t.TYPED_ARRAYS.includes(s(r.typeName))}function o(t,r){return!(void 0===t||!e.isTypeReferenceNode(t))&&s(t.typeName)===r}function s(t){return e.isIdentifier(t)?t.escapedText.toString():s(t.left)+s(t.right)}function c(e){if(e.isUnion()){for(var t=0,r=e.types;t0)return e.declarations[0]}function k(t){if(e.isParenthesizedExpression(t)||e.isAsExpression(t)&&149===t.type.kind)return k(t.expression);switch(t.kind){case 223:return function(e){return t=e.operator,(39===t||40===t||54===t)&&k(e.operand);var t}(t);case 215:case 225:return function(e){return t=e.operatorToken,(41===t.kind||43===t.kind||44===t.kind||40===t.kind||39===t.kind||47===t.kind||48===t.kind||56===t.kind||49===t.kind||50===t.kind||52===t.kind||51===t.kind||55===t.kind)&&k(e.left)&&k(e.right);var t}(t);case 226:return function(e){return k(e.whenTrue)&&k(e.whenFalse)}(t);case 79:return function(t){var n=r.getSymbolAtLocation(t),i=E(n);return!!i&&(function(t){return e.isVariableDeclaration(t)&&e.isVariableDeclarationList(t.parent)}(i)&&A(i.parent)||305===i.kind)}(t);case 8:case 10:return!0;case 209:var n=t;if(N(n))return!0;var i=r.getSymbolAtLocation(n.expression);if(!i)return!1;var a=i.getDeclarations();return!(!a||1!==a.length)&&e.isEnumDeclaration(a[0]);default:return!1}}function A(t){return!!(2&e.getCombinedNodeFlags(t))}function N(e){var t=8===e.kind?Number(e.getText()):r.getConstantValue(e);return void 0!==t&&"number"==typeof t}function F(e){var t=r.getConstantValue(e);return void 0!==t&&"string"==typeof t}function w(t,r){if(S(t)&&t.target!==t&&(t=t.target),S(r)&&r.target!==r&&(r=r.target),t===r||O(r))return!0;if(!t.symbol||!t.symbol.declarations)return!1;for(var n=0,i=t.symbol.declarations;n0&&0===e.declarations[0].parameters.length)&&(r=!0)})),!t||r}(t)&&!function(t){if(void 0===t.symbol.members)return!1;var r=!1;return t.symbol.members.forEach((function(t){void 0!==t.declarations&&t.declarations.length>0&&e.isPropertyDeclaration(t.declarations[0])&&f(e.getModifiers(t.declarations[0]),147)&&(r=!0)})),r}(t)&&!function(t){if(t.isClass()&&t.symbol.declarations&&t.symbol.declarations.length>0){var r=t.symbol.declarations[0];if(f(e.getModifiers(r),127))return!0}return!1}(t))}function L(e){return 263===e}function R(e){return L(e.kind)}function B(e){var t=r.getPropertiesOfType(e);if(null==t?void 0:t.length)for(var n=0,i=t;n0}function K(e){var t=e.getSymbol();return t&&"Function"===t.getName()&&G(t)}function W(e){return 524288&e.getFlags()&&4&e.objectFlags?e.target:e}function q(t,n){for(var i,a=0,o=n.properties;a0){var i=r.declarations[0].getSourceFile();if(!i)return!1;var a=i.fileName,o=e.getAnyExtensionFromPath(a),s=t.ARKTS_IGNORE_DIRS.some((function(t){return re(e.normalizePath(a),t)}))||t.ARKTS_IGNORE_FILES.some((function(t){return e.getBaseFileName(a)===t})),c=".ets"===o,l=".ts"===o&&!i.isDeclarationFile;return!((c||l&&n)&&!s)&&!t.STANDARD_LIBRARIES.includes(e.getBaseFileName(i.fileName).toLowerCase())}return!1}function re(t,r){for(var n=0,i=e.getPathComponents(t);n0){var n=r.declarations[0].getSourceFile();return n&&t.STANDARD_LIBRARIES.includes(e.getBaseFileName(n.fileName).toLowerCase())}return!1}function ae(e){return!!(67108864&e.flags)}function oe(e){if(void 0===e)return!1;if((e=e.getNonNullableType()).isUnion()){for(var t=0,r=e.types;t=0;i--){var a=n[i];if(21===a.kind&&a.getEnd()0?e.cookBookMsg[m]:"",rule:m>0&&""!==h?h:f||g,ruleTag:m,autofixable:o,autofix:s};c.problemsInfos.push(v),c.reportDiagnostics||n.logEvent("Warning: ".concat(this.sourceFile.fileName," (").concat(p,", ").concat(_,"): ").concat(f||g)),c.lineCounters[a]++,r[a].warning?p!==this.currentWarningLine&&(this.currentWarningLine=p,++c.totalWarningLines,c.warningLineNumbersString+=p+", "):p!==this.currentErrorLine&&(this.currentErrorLine=p,++c.totalErrorLines,c.errorLineNumbersString+=p+", ")}},c.prototype.visitTSNode=function(t){var r=this;!function t(n){if(null===n||null===n.kind)return;if(c.totalVisitedNodes++,e.isStructDeclaration(n))return void r.handleStructDeclaration(n);if(r.handleComments(n),e.LinterConfig.terminalTokens.has(n.kind))return;var i=e.LinterConfig.incrementOnlyTokens.get(n.kind);if(void 0!==i)r.incrementCounters(n,i);else{var a=r.handlersMap.get(n.kind);void 0!==a&&a.call(r,n)}e.forEachChild(n,t)}(t)},c.prototype.countInterfaceExtendsDifferentPropertyTypes=function(e,r,n,i){if(i){var a=i.getText(),o=r.get(n);o?o!==a&&this.incrementCounters(e,t.IntefaceExtendDifProps):r.set(n,a)}},c.prototype.countDeclarationsWithDuplicateName=function(r,n,i){var a=c.tsTypeChecker.getSymbolAtLocation(r);a&&e.Utils.symbolHasDuplicateName(a,null!=i?i:n.kind)&&this.incrementCounters(n,t.DeclWithDuplicateName)},c.prototype.countClassMembersWithDuplicateName=function(r){for(var n=0,i=r.members;n1&&this.incrementCounters(r,t.EnumMerging)}}},c.prototype.handleInterfaceDeclaration=function(r){var n=r,i=e.Utils.trueSymbolAtLocation(n.name),a=i?i.getDeclarations():null;if(a){for(var o=0,s=0,c=a;s1&&this.incrementCounters(r,t.InterfaceMerging)}n.heritageClauses&&this.interfaceInheritanceLint(r,n.heritageClauses),this.countDeclarationsWithDuplicateName(n.name,n)},c.prototype.handleThrowStatement=function(r){var n=r,i=c.tsTypeChecker.getTypeAtLocation(n.expression);i.isClassOrInterface()&&e.Utils.isDerivedFrom(i,e.Utils.CheckType.Error)||this.incrementCounters(r,t.ThrowStatement)},c.prototype.handleForStatement=function(r){var n=r.initializer;n&&(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment)},c.prototype.handleForInStatement=function(r){var n=r.initializer;(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment),this.incrementCounters(r,t.ForInStatement)},c.prototype.handleForOfStatement=function(r){var n=r.initializer;(e.isArrayLiteralExpression(n)||e.isObjectLiteralExpression(n))&&this.incrementCounters(n,t.DestructuringAssignment)},c.prototype.handleImportDeclaration=function(r){for(var n=r,i=0,a=n.parent.statements;in.end))}));this.tscStrictDiagnostics.set(o,c)}}},c.prototype.checkInRange=function(e,t){for(var r=0;r=e[r].begin&&t0,l=this.handleMissingReturnType(i),u=l[0],d=l[1],p=!(c||a||o||u);p&&e.Autofixer.shouldAutofix(r,t.FunctionExpression)&&(n=[e.Autofixer.fixFunctionExpression(i,i.parameters,d)]),this.incrementCounters(r,t.FunctionExpression,p,n),c&&this.incrementCounters(i,t.LambdaWithTypeParameters),a&&this.incrementCounters(i,t.GeneratorFunction),o&&!s&&this.incrementCounters(i,t.FunctionContainsThis),u&&this.incrementCounters(i,t.LimitedReturnTypeInference)},c.prototype.handleArrowFunction=function(r){var n=r,i=this.functionContainsThis(n.body),a=e.Utils.hasPredecessor(n,e.isClassLike)||e.Utils.hasPredecessor(n,e.isInterfaceDeclaration);i&&!a&&this.incrementCounters(n,t.FunctionContainsThis);var o=c.tsTypeChecker.getContextualType(n);o&&e.Utils.isLibraryType(o)||(n.type||this.handleMissingReturnType(n),n.typeParameters&&n.typeParameters.length>0&&this.incrementCounters(r,t.LambdaWithTypeParameters))},c.prototype.handleClassExpression=function(e){this.incrementCounters(e,t.ClassExpression)},c.prototype.handleFunctionDeclaration=function(r){var n=r;n.type||this.handleMissingReturnType(n),n.name&&this.countDeclarationsWithDuplicateName(n.name,n),n.body&&this.functionContainsThis(n.body)&&this.incrementCounters(r,t.FunctionContainsThis),e.isSourceFile(n.parent)||e.isModuleBlock(n.parent)||this.incrementCounters(n,t.LocalFunction),n.asteriskToken&&this.incrementCounters(r,t.GeneratorFunction)},c.prototype.handleMissingReturnType=function(r){if(!r.body)return[!1,void 0];var n,i,a=!1,o=e.isFunctionExpression(r),s=this.hasLimitedTypeInferenceFromReturnExpr(r.body),l=c.tsTypeChecker.getSignatureFromDeclaration(r);if(l){var u=c.tsTypeChecker.getReturnTypeOfSignature(l);!u||e.Utils.isUnsupportedType(u)?s=!0:s&&(a=!!(i=c.tsTypeChecker.typeToTypeNode(u,r,0)),!o&&i&&e.Autofixer.shouldAutofix(r,t.LimitedReturnTypeInference)&&(n=[e.Autofixer.fixReturnType(r,i)]))}return s&&!o&&this.incrementCounters(r,t.LimitedReturnTypeInference,a,n),[s&&!i,i]},c.prototype.hasLimitedTypeInferenceFromReturnExpr=function(t){var r=!1;if(e.isBlock(t))!function t(n){r||(e.isReturnStatement(n)&&n.expression&&e.Utils.isCallToFunctionWithOmittedReturnType(e.Utils.unwrapParenthesized(n.expression))?r=!0:e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.isMethodDeclaration(n)||e.isAccessor(n)||e.isArrowFunction(n)||n.forEachChild(t))}(t);else{var n=e.Utils.unwrapParenthesized(t);r=e.Utils.isCallToFunctionWithOmittedReturnType(n)}return r},c.prototype.handlePrefixUnaryExpression=function(r){var n=r,i=n.operator;39!==i&&40!==i&&54!==i||(2344&c.tsTypeChecker.getTypeAtLocation(n.operand).getFlags()&&(54!==i||8!==n.operand.kind||e.Utils.isIntegerConstantValue(n.operand))||this.incrementCounters(r,t.UnaryArithmNotNumber))},c.prototype.handleBinaryExpression=function(r){var n=r,i=n.left,a=n.right;if(e.Utils.isAssignmentOperator(n.operatorToken)&&((e.isObjectLiteralExpression(i)||e.isArrayLiteralExpression(i))&&this.incrementCounters(r,t.DestructuringAssignment),e.isPropertyAccessExpression(i))){var o=e.Utils.trueSymbolAtLocation(i),s=e.Utils.trueSymbolAtLocation(i.expression);o&&8192&o.flags&&this.incrementCounters(i,t.NoUndefinedPropAccess),e.Utils.isMethodAssignment(o)&&s&&16&s.flags&&this.incrementCounters(i,t.PropertyDeclOnFunction)}var l=c.tsTypeChecker.getTypeAtLocation(i),u=c.tsTypeChecker.getTypeAtLocation(a);if(39===n.operatorToken.kind)if(e.Utils.isEnumMemberType(l)&&e.Utils.isEnumMemberType(u)){if(296&l.flags&&296&u.getFlags()||402653316&l.flags&&402653316&u.getFlags())return}else{if(e.Utils.isNumberType(l)&&e.Utils.isNumberType(u))return;if(e.Utils.isStringLikeType(l)||e.Utils.isStringLikeType(u))return}else if(50===n.operatorToken.kind||51===n.operatorToken.kind||52===n.operatorToken.kind||47===n.operatorToken.kind||48===n.operatorToken.kind||49===n.operatorToken.kind){if(!e.Utils.isNumberType(l)||!e.Utils.isNumberType(u)||8===i.kind&&!e.Utils.isIntegerConstantValue(i)||8===a.kind&&!e.Utils.isIntegerConstantValue(a))return}else if(27===n.operatorToken.kind){for(var d=n,p=d.parent;p&&225===p.kind;)p=(d=p).parent;if(p&&247===p.kind){var _=p;if(d===_.initializer||d===_.incrementor)return}this.incrementCounters(r,t.CommaOperator)}else if(103===n.operatorToken.kind){var f=e.Utils.unwrapParenthesized(n.left),g=e.Utils.trueSymbolAtLocation(f);if(109===i.kind)return;(e.Utils.isPrimitiveType(l)||e.isTypeNode(f)||e.Utils.isTypeSymbol(g))&&this.incrementCounters(r,t.InstanceofUnsupported)}else if(63===n.operatorToken.kind){e.Utils.needToDeduceStructuralIdentity(u,l)&&this.incrementCounters(n,t.StructuralIdentity);var m=e.Utils.getVariableDeclarationTypeNode(i);this.handleEsObjectAssignment(n,m,a)}},c.prototype.handleVariableDeclarationList=function(r){3&e.getCombinedNodeFlags(r)||this.incrementCounters(r,t.VarDeclaration)},c.prototype.handleVariableDeclaration=function(r){var n=this,i=r;(e.isArrayBindingPattern(i.name)||e.isObjectBindingPattern(i.name))&&this.incrementCounters(r,t.DestructuringDeclaration);var a=function(t){if(e.isIdentifier(t))n.countDeclarationsWithDuplicateName(t,t,t.parent.kind);else for(var r=0,i=t.elements;r1&&e.isObjectLiteralExpression(n[1]))for(var i=0,a=n[1].properties;i{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=9953,e.exports=t},9844:e=>{"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const r=[],n=[],i=new Map;if(i.set(Date,(e=>new Date(e))),i.set(Map,((e,t)=>new Map(o(Array.from(e),t)))),i.set(Set,((e,t)=>new Set(o(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){const s=Object.keys(e),c=new Array(s.length);for(let l=0;lnew Date(e))),r.set(Map,((e,t)=>new Map(i(Array.from(e),t)))),r.set(Set,((e,t)=>new Set(i(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)r.set(t[0],t[1]);let n=null;return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return i(a,e);if(a.constructor!==Object&&(n=r.get(a.constructor)))return n(a,e);const o={};for(const i in a){const s=a[i];"object"!=typeof s||null===s?o[i]=s:s.constructor!==Object&&(n=r.get(s.constructor))?o[i]=n(s,e):ArrayBuffer.isView(s)?o[i]=t(s):o[i]=e(s)}return o}:function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return i(a,e);if(a.constructor!==Object&&(n=r.get(a.constructor)))return n(a,e);const o={};for(const i in a){if(!1===Object.hasOwnProperty.call(a,i))continue;const s=a[i];"object"!=typeof s||null===s?o[i]=s:s.constructor!==Object&&(n=r.get(s.constructor))?o[i]=n(s,e):ArrayBuffer.isView(s)?o[i]=t(s):o[i]=e(s)}return o};function i(e,i){const a=Object.keys(e),o=new Array(a.length);for(let s=0;s{e=r.nmd(e);var n,i=r(9665).SourceMapConsumer,a=r(6928);try{(n=r(9896)).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r(2746);function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,d="auto",p={},_={},f=/^data:application\/json[^,]+base64,/,g=[],m=[];function h(){return"browser"===d||"node"!==d&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function y(e){return function(t){for(var r=0;r";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"")}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=T,t}function E(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!h()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(p={},_={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+E(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function A(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=p[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function N(e){var t=A(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),function(e){if("object"==typeof process&&null!==process&&"function"==typeof process.exit)process.exit(e)}(1)}m.push((function(e){var t,r=function(e){var t;if(h())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=v(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=v(r);return t?{url:r,map:t}:null}));var F=g.slice(0),w=m.slice(0);t.wrapCallSite=E,t.getErrorSource=A,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(d=t.environment,-1===["node","browser","auto"].indexOf(d)))throw new Error("environment "+d+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!h()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return p[t]=e,_[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return N(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=F.slice(0),m=w.slice(0),x=y(m),v=y(g)}},735:(e,t,r)=>{var n=r(251),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{var n=r(2364);t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<>1,1&~o?s:-s),r.rest=t}},2364:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},3302:(e,t,r)=>{var n=r(251);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;t=this._last,r=e,i=t.generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.P=i},3801:(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i{var n=r(251),i=r(1163),a=r(735).C,o=r(7092),s=r(3801).g;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new d(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),d=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=g+a[1],g+=a[1],r.originalLine=_+a[2],_=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=m+a[4],m+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t{var n=r(7092),i=r(251),a=r(735).C,o=r(3302).P;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,d=0,p="",_=this._mappings.toArray(),f=0,g=_.length;f0){if(!i.compareByGeneratedPositionsInflated(t,_[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-d),d=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.x=s},1683:(e,t,r)=>{var n=r(4041).x,i=r(251),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)||r||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},9665:(e,t,r)=>{r(4041).x,t.SourceMapConsumer=r(7446).SourceMapConsumer,r(1683)},4202:(e,t,r)=>{const n=r(2667);e.exports=class extends n{constructor(e,t,r){t&&"object"==typeof t&&(r=t,t=null),r||(r={}),t||(t="yyyy-MM-dd"),r.pattern=t,r.numBackups||0===r.numBackups?r.daysToKeep=r.numBackups:(r.daysToKeep||0===r.daysToKeep?process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001"):r.daysToKeep=1,r.numBackups=r.daysToKeep),super(e,r),this.mode=this.options.mode}get theStream(){return this.currentFileStream}}},5814:(e,t,r)=>{const n=r(2667);e.exports=class extends n{constructor(e,t,r,n){n||(n={}),t&&(n.maxSize=t),n.numBackups||0===n.numBackups||(r||0===r||(r=1),n.numBackups=r),super(e,n),this.backups=n.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}}},2667:(e,t,r)=>{const n=r(5753)("streamroller:RollingFileWriteStream"),i=r(1605),a=r(6928),o=r(857),s=r(6301),c=r(3011),{Writable:l}=r(2203),u=r(2072),d=r(655),p=r(4777);e.exports=class extends l{constructor(e,t){if(n(`constructor: creating RollingFileWriteStream. path=${e}`),"string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(a.sep))throw new Error(`Filename is a directory: ${e}`);0===e.indexOf(`~${a.sep}`)&&(e=e.replace("~",o.homedir())),super(t),this.options=this._parseOption(t),this.fileObject=a.parse(e),""===this.fileObject.dir&&(this.fileObject=a.parse(a.join(process.cwd(),e))),this.fileFormatter=u({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize 0`)}else delete r.maxSize;if(r.numBackups||0===r.numBackups){if(r.numBackups<0)throw new Error(`options.numBackups (${r.numBackups}) should be >= 0`);if(r.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${r.numBackups}) should be < Number.MAX_SAFE_INTEGER`);r.numToKeep=r.numBackups+1}else if(r.numToKeep<=0)throw new Error(`options.numToKeep (${r.numToKeep}) should be > 0`);return n(`_parseOption: creating stream with option=${JSON.stringify(r)}`),r}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,r){this._shouldRoll().then((()=>{n(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length,r(t)}))}))}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(n(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==c(this.options.pattern,s())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return n("_roll: closing the current stream"),new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();for(let t=(this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e).length;t>=0;t--){n(`_moveOldFiles: i = ${t}`);const e=this.fileFormatter({date:this.state.currentDate,index:t}),r=this.fileFormatter({date:this.state.currentDate,index:t+1}),i={compress:this.options.compress&&0===t,mode:this.options.mode};await p(e,r,i)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?c(this.options.pattern,s()):null,n(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await i.readdir(this.fileObject.dir).catch((()=>[]));n(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e)),r=e=>(e.timestamp?e.timestamp:s().getTime())-e.index;return t.sort(((e,t)=>r(e)-r(t))),t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0}),t=e=>{try{return i.mkdirSync(e,{recursive:!0})}catch(r){if("ENOENT"===r.code)return t(a.dirname(e)),t(e);if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;try{if(i.statSync(e).isDirectory())return e;throw r}catch(e){throw r}}};t(this.fileObject.dir);const r={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};var n,o;i.appendFileSync(e,"",(n={...r},o="flags",n["flag"]=n[o],delete n[o],n)),this.currentFileStream=i.createWriteStream(e,r),this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();if(n(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),n("_clean: existing files are: ",e),this._tooManyFiles(e.length)){const r=e.slice(0,e.length-this.options.numToKeep).map((e=>a.format({dir:this.fileObject.dir,base:e.filename})));await(t=r,n(`deleteFiles: files to delete: ${t}`),Promise.all(t.map((e=>i.unlink(e).catch((t=>{n(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))))))}var t}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}}},2072:(e,t,r)=>{const n=r(5753)("streamroller:fileNameFormatter"),i=r(6928);e.exports=({file:e,keepFileExt:t,needsIndex:r,alwaysIncludeDate:a,compress:o,fileNameSep:s})=>{let c=s||".";const l=i.join(e.dir,e.name),u=t=>t+e.ext,d=(e,t,n)=>!r&&n||!t?e:e+c+t,p=(e,t,r)=>(t>0||a)&&r?e+c+r:e,_=(e,t)=>t&&o?e+".gz":e,f=t?[p,d,u,_]:[u,p,d,_];return({date:e,index:t})=>(n(`_formatFileName: date=${e}, index=${t}`),f.reduce(((r,n)=>n(r,t,e)),l))}},655:(e,t,r)=>{const n=r(5753)("streamroller:fileNameParser"),i=r(3011);e.exports=({file:e,keepFileExt:t,pattern:r,fileNameSep:a})=>{let o=a||".";const s="__NOT_MATCHING__";let c=[(e,t)=>e.endsWith(".gz")?(n("it is gzipped"),t.isCompressed=!0,e.slice(0,-3)):e,t?t=>t.startsWith(e.name)&&t.endsWith(e.ext)?(n("it starts and ends with the right things"),t.slice(e.name.length+1,-1*e.ext.length)):s:t=>t.startsWith(e.base)?(n("it starts with the right things"),t.slice(e.base.length+1)):s,r?(e,t)=>{const a=e.split(o);let s=a[a.length-1];n("items: ",a,", indexStr: ",s);let c=e;void 0!==s&&s.match(/^\d+$/)?(c=e.slice(0,-1*(s.length+1)),n(`dateStr is ${c}`),r&&!c&&(c=s,s="0")):s="0";try{const n=i.parse(r,c,new Date(0,0));return i.asString(r,n)!==c?e:(t.index=parseInt(s,10),t.date=c,t.timestamp=n.getTime(),"")}catch(t){return n(`Problem parsing ${c} as ${r}, error was: `,t),e}}:(e,t)=>e.match(/^\d+$/)?(n("it has an index"),t.index=parseInt(e,10),""):e];return e=>{let t={filename:e,index:0,isCompressed:!1};return c.reduce(((e,r)=>r(e,t)),e)?null:t}}},1129:(e,t,r)=>{e.exports={RollingFileWriteStream:r(2667),RollingFileStream:r(5814),DateRollingFileStream:r(4202)}},4777:(e,t,r)=>{const n=r(5753)("streamroller:moveAndMaybeCompressFile"),i=r(1605),a=r(3106);e.exports=async(e,t,r)=>{if(r=function(e){const t={mode:parseInt("0600",8),compress:!1},r=Object.assign({},t,e);return n(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(r)}`),r}(r),e!==t){if(await i.pathExists(e))if(n(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${r.compress?"with":"without"} compress`),r.compress)await new Promise(((o,s)=>{let c=!1;const l=i.createWriteStream(t,{mode:r.mode,flags:"wx"}).on("open",(()=>{c=!0;const t=i.createReadStream(e).on("open",(()=>{t.pipe(a.createGzip()).pipe(l)})).on("error",(t=>{n(`moveAndMaybeCompressFile: error reading ${e}`,t),l.destroy(t)}))})).on("finish",(()=>{n(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`),i.unlink(e).then(o).catch((t=>{n(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t),i.truncate(e).then(o).catch((t=>{n(`moveAndMaybeCompressFile: error truncating ${e}`,t),s(t)}))}))})).on("error",(e=>{c?(n(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e),i.unlink(t).then((()=>{s(e)})).catch((e=>{n(`moveAndMaybeCompressFile: error deleting ${t}`,e),s(e)}))):(n(`moveAndMaybeCompressFile: error creating ${t}`,e),s(e))}))})).catch((()=>{}));else{n(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await i.move(e,t,{overwrite:!0})}catch(r){if(n(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,r),"ENOENT"!==r.code){n("moveAndMaybeCompressFile: trying copy+truncate instead");try{await i.copy(e,t,{overwrite:!0}),await i.truncate(e)}catch(e){n("moveAndMaybeCompressFile: error copy+truncate",e)}}}}}else n("moveAndMaybeCompressFile: source and target are the same, not doing anything")}},6301:e=>{e.exports=()=>new Date},7687:(e,t,r)=>{"use strict";const n=r(857),i=r(2018),a=r(5884),{env:o}=process;let s;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const r=s||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:r;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:r}a("no-color")||a("no-colors")||a("color=false")||a("color=never")?s=0:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=1),"FORCE_COLOR"in o&&(s="true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(parseInt(o.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}},4467:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SceneConfig=t.Config=void 0;const s=o(r(9896)),c=o(r(6928)),l=a(r(7015)),u=r(8089),d=l.default.getLogger();t.Config=class{constructor(e,t,r,n){this.projectName=e,this.project_dir=t,this.sdkName=r,this.sdk_dir=n}};t.SceneConfig=class{constructor(){this.configJsonPath="",this.targetProjectName="",this.targetProjectDirectory="",this.etsSdkPath="",this.sdksObj=[],this.sdkFiles=[],this.sdkFilesMap=new Map,this.logPath="./out/ArkAnalyzer.log",this.logLevel="ERROR",this.projectFiles=[]}buildConfig(e,t,r,n,i,a){r&&(this.logPath=r),n&&(this.logLevel=n),l.default.configure(this.logPath,l.LOG_LEVEL[this.logLevel]),this.sdksObj=i,this.targetProjectName=e,this.targetProjectDirectory=t,a&&this.projectFiles.push(...a)}buildFromProjectDir(e){this.targetProjectDirectory=e,this.targetProjectName=c.default.basename(e),l.default.configure(this.logPath,l.LOG_LEVEL.ERROR),this.projectFiles=(0,u.getAllFiles)(e,[".ets",".ts"])}buildFromJson(e){if(s.default.existsSync(e)){const t=s.default.readFileSync(e,"utf8");d.info(t);const r=JSON.parse(t),n=r.targetProjectName?r.targetProjectName:"",i=r.targetProjectDirectory?r.targetProjectDirectory:"",a=r.logPath?r.logPath:"",o=r.logLevel?r.logLevel:"",c=r.sdks?r.sdks:[];this.buildConfig(n,i,a,o,c)}else d.error(`Your configJsonPath: "${e}" is not exist.`)}getTargetProjectName(){return this.targetProjectName}getTargetProjectDirectory(){return this.targetProjectDirectory}getProjectFiles(){return this.projectFiles}getSdkFiles(){return this.sdkFiles}getSdkFilesMap(){return this.sdkFilesMap}getEtsSdkPath(){return this.etsSdkPath}getSdksObj(){return this.sdksObj}}},6805:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleScene=t.Scene=void 0;const i=n(r(9896)),a=n(r(6928)),o=r(6348),s=r(9045),c=r(1796),l=r(2029),u=r(8596),d=r(6784),p=r(3433),_=r(1812),f=n(r(7015)),g=r(7570),m=r(2293),h=r(8089),y=r(4040),v=r(7733),b=r(732),x=r(9803),D=f.default.getLogger();var S;!function(e){e[e.BUILD_INIT=0]="BUILD_INIT",e[e.CLASS_DONE=1]="CLASS_DONE",e[e.METHOD_DONE=2]="METHOD_DONE"}(S||(S={}));t.Scene=class{constructor(){this.projectName="",this.projectFiles=[],this.moduleScenesMap=new Map,this.modulePath2NameMap=new Map,this.extendedClasses=new Map,this.globalImportInfos=[],this.moduleSdkMap=new Map,this.projectSdkMap=new Map,this.sdkFilesProjectMap=new Map,this.visibleValue=new d.VisibleValue,this.filesMap=new Map,this.namespacesMap=new Map,this.classesMap=new Map,this.methodsMap=new Map,this.sdkArkFilesMap=new Map,this.ohPkgContentMap=new Map,this.ohPkgFilePath="",this.ohPkgContent={},this.buildStage=S.BUILD_INIT}buildSceneFromProjectDir(e){this.buildBasicInfo(e),this.genArkFiles(),this.collectProjectImportInfos()}buildBasicInfo(e){var t;this.projectName=e.getTargetProjectName(),this.realProjectDir=i.default.realpathSync(e.getTargetProjectDirectory()),this.projectFiles=e.getProjectFiles();const r=a.default.join(this.realProjectDir,"./build-profile.json5");if(i.default.existsSync(r)){const e=(0,m.parseJsonText)(i.default.readFileSync(r,"utf-8")).modules;e instanceof Array&&e.forEach((e=>{this.modulePath2NameMap.set(a.default.resolve(this.realProjectDir,a.default.join(e.srcPath)),e.name)}))}else D.warn("There is no build-profile.json5 for this project.");const n=a.default.join(this.realProjectDir,"./oh-package.json5");i.default.existsSync(n)?(this.ohPkgFilePath=n,this.ohPkgContent=(0,m.fetchDependenciesFromFile)(this.ohPkgFilePath),this.ohPkgContentMap.set(n,this.ohPkgContent)):D.warn("This project has no oh-package.json5!"),null===(t=e.getSdksObj())||void 0===t||t.forEach((e=>{if(e.moduleName){let t=this.moduleSdkMap.get(e.moduleName);t?t.push(e):this.moduleSdkMap.set(e.moduleName,[e])}else this.buildSdk(e.name,e.path),this.projectSdkMap.set(e.name,e)}))}buildAllMethodBody(){this.buildStage=S.CLASS_DONE;for(const e of this.getFiles()){for(const t of e.getClasses())for(const e of t.getMethods())e.buildBody();(0,b.generateDefaultClassField)(e.getDefaultClass())}for(const e of this.getNamespacesMap().values()){for(const t of e.getClasses())for(const e of t.getMethods())e.buildBody();(0,b.generateDefaultClassField)(e.getDefaultClass())}this.buildStage=S.METHOD_DONE}genArkFiles(){this.projectFiles.forEach((e=>{D.info("=== parse file:",e);let t=new p.ArkFile;t.setScene(this),t.setProjectName(this.projectName),(0,g.buildArkFileFromFile)(e,this.realProjectDir,t),this.filesMap.set(t.getFileSignature().toString(),t)})),this.buildAllMethodBody(),(0,g.expandImportAll)(this.filesMap)}buildSdk(e,t){(0,h.getAllFiles)(t,[".ets",".ts"]).forEach((r=>{D.info("=== parse sdk file:",r);let n=new p.ArkFile;n.setScene(this),n.setProjectName(e),(0,g.buildArkFileFromFile)(r,a.default.normalize(t),n);const i=n.getFileSignature().toString();this.sdkArkFilesMap.set(i,n)})),(0,g.expandImportAll)(this.sdkArkFilesMap)}buildScene4HarmonyProject(){this.modulePath2NameMap.forEach(((e,t)=>{const r=a.default.resolve(t,"./oh-package.json5");if(i.default.existsSync(r)){const e=(0,m.fetchDependenciesFromFile)(r);this.ohPkgContentMap.set(r,e)}let n=new T;n.ModuleScenBuilder(e,t,this),this.moduleScenesMap.set(e,n)})),this.buildAllMethodBody(),(0,g.expandImportAll)(this.filesMap)}buildModuleScene(e,t){if(this.moduleScenesMap.get(e))return;const r=a.default.resolve(this.realProjectDir,a.default.join(t,"./oh-package.json5"));if(i.default.existsSync(r)){const e=(0,m.fetchDependenciesFromFile)(r);this.ohPkgContentMap.set(r,e)}else D.warn("Module: ",e,"has no oh-package.json5.");const n=this.ohPkgContentMap.get(r);n&&n.dependencies instanceof Object&&Object.entries(n.dependencies).forEach((([e,t])=>{const n=new RegExp("^(\\.\\.\\/|\\.\\/)");if("string"==typeof t){let e="";if(n.test(t))e=a.default.join(r,t);else if(t.startsWith("file:")){const n=a.default.join(r,t.replace(/^file:/,"")),i=(0,y.getFileRecursively)(a.default.dirname(n),"oh-package.json5");e=a.default.dirname(i)}D.info("Dependency path: ",e);const i=this.modulePath2NameMap.get(e);i&&this.buildModuleScene(i,e)}}));let o=new T;o.ModuleScenBuilder(e,t,this),this.moduleScenesMap.set(e,o),this.buildAllMethodBody()}getRealProjectDir(){return this.realProjectDir}getProjectName(){return this.projectName}getProjectFiles(){return this.projectFiles}getFile(e){return this.projectName===e.getProjectName()?this.filesMap.get(e.toString())||null:this.sdkArkFilesMap.get(e.toString())||null}getFiles(){return Array.from(this.filesMap.values())}getSdkArkFilesMap(){return this.sdkArkFilesMap}getModuleSdkMap(){return this.moduleSdkMap}getProjectSdkMap(){return this.projectSdkMap}getFilesMap(){return this.filesMap}getNamespace(e){if(this.projectName===e.getDeclaringFileSignature().getProjectName())return this.getNamespacesMap().get(e.toString())||null;{const t=this.sdkArkFilesMap.get(e.getDeclaringFileSignature().toString());return(null==t?void 0:t.getNamespace(e))||null}}getNamespacesMap(){if(0==this.namespacesMap.size)for(const e of this.getFiles())l.ModelUtils.getAllNamespacesInFile(e).forEach((e=>{this.namespacesMap.set(e.getNamespaceSignature().toString(),e)}));return this.namespacesMap}getNamespaces(){return Array.from(this.getNamespacesMap().values())}getClass(e){var t;if(this.projectName===e.getDeclaringFileSignature().getProjectName())return this.getClassesMap().get(e.toString())||null;{const r=this.sdkArkFilesMap.get(e.getDeclaringFileSignature().toString()),n=e.getDeclaringNamespaceSignature();return n?(null===(t=null==r?void 0:r.getNamespace(n))||void 0===t?void 0:t.getClass(e))||null:(null==r?void 0:r.getClass(e))||null}}getClassesMap(){if(0==this.classesMap.size){for(const e of this.getFiles())for(const t of e.getClasses())this.classesMap.set(t.getSignature().toString(),t);for(const e of this.getNamespacesMap().values())for(const t of e.getClasses())this.classesMap.set(t.getSignature().toString(),t)}return this.classesMap}getClasses(){return Array.from(this.getClassesMap().values())}getMethod(e){var t;return this.projectName===e.getDeclaringClassSignature().getDeclaringFileSignature().getProjectName()?this.getMethodsMap().get(e.toString())||null:(null===(t=this.getClass(e.getDeclaringClassSignature()))||void 0===t?void 0:t.getMethod(e))||null}getMethodsMap(){if(0==this.methodsMap.size)for(const e of this.getClassesMap().values())for(const t of e.getMethods())this.methodsMap.set(t.getSignature().toString(),t);return this.methodsMap}getMethods(){return Array.from(this.getMethodsMap().values())}hasMainMethod(){return!1}getEntryPoints(){return[]}getVisibleValue(){return this.visibleValue}getOhPkgContent(){return this.ohPkgContent}getOhPkgContentMap(){return this.ohPkgContentMap}getOhPkgFilePath(){return this.ohPkgFilePath}makeCallGraphCHA(e){let t;return t=new o.ClassHierarchyAnalysisAlgorithm(this),t.loadCallGraph(e),t}makeCallGraphRTA(e){let t;return t=new s.RapidTypeAnalysisAlgorithm(this),t.loadCallGraph(e),t}makeCallGraphVPA(e){let t;return t=new c.VariablePointerAnalysisAlogorithm(this),t.loadCallGraph(e),t}inferTypes(){this.getClassesMap().forEach((e=>{e.getFields().forEach((e=>u.TypeInference.inferTypeInArkField(e)))})),this.getMethodsMap().forEach((e=>{e.isDefaultArkMethod()||u.TypeInference.inferTypeInMethod(e)})),this.genExtendedClasses()}inferSimpleTypes(){for(let e of this.getFiles())for(let t of e.getClasses())for(let e of t.getMethods())u.TypeInference.inferSimpleTypeInMethod(e)}collectProjectImportInfos(){this.getFiles().forEach((e=>{e.getImportInfos().forEach((e=>{this.globalImportInfos.push(e)}))}))}genExtendedClasses(){this.getClassesMap().forEach((e=>{if(""!==e.getSuperClassName()){const t=u.TypeInference.inferUnclearReferenceType(e.getSuperClassName(),e);let r;t&&t instanceof x.ClassType&&(r=e.getDeclaringArkFile().getScene().getClass(t.getClassSignature())),r&&(e.setSuperClass(r),r.addExtendedClass(e))}}))}getClassMap(){var e,t,r,n;const i=new Map;for(const a of this.getFiles()){const o=[],s=[],c=new Map,l=[];for(const e of a.getClasses())o.push(e);for(const e of a.getNamespaces())s.push(e),c.set(e,a);i.set(a.getFileSignature(),o);for(;s.length>0;){const e=s.shift(),t=[];for(const r of e.getClasses())t.push(r);if(i.set(e.getNamespaceSignature(),t),0==e.getNamespaces().length)l.push(e);else for(const t of e.getNamespaces())s.push(t),c.set(t,e)}for(;l.length>0;){const a=l.shift(),o=[];for(const e of a.getClasses())e.isExported()&&o.push(e);const s=c.get(a);s instanceof _.ArkNamespace?null===(e=i.get(s.getNamespaceSignature()))||void 0===e||e.push(...o):s instanceof p.ArkFile&&(null===(t=i.get(s.getFileSignature()))||void 0===t||t.push(...o));let u=a;for(;!(c.get(u)instanceof p.ArkFile)&&u.isExported();){const e=c.get(c.get(u));if(e instanceof _.ArkNamespace)null===(r=i.get(e.getNamespaceSignature()))||void 0===r||r.push(...o),u=c.get(u);else if(e instanceof p.ArkFile){null===(n=i.get(e.getFileSignature()))||void 0===n||n.push(...o);break}}s instanceof _.ArkNamespace&&!l.includes(s)&&l.push(s)}}for(const e of this.getFiles()){const t=[],r=[];for(const n of e.getImportInfos()){const a=l.ModelUtils.getClassInImportInfoWithName(n.getImportClauseName(),e);a&&!t.includes(a)&&t.push(a);const o=l.ModelUtils.getNamespaceInImportInfoWithName(n.getImportClauseName(),e);if(o&&!r.includes(o))try{const e=i.get(o.getNamespaceSignature());t.push(...e.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}catch(e){}}const n=i.get(e.getFileSignature());n.push(...t.filter((e=>!n.includes(e))));const a=[...e.getNamespaces()];for(const e of a){const t=i.get(e.getNamespaceSignature());t.push(...n.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}for(;a.length>0;){const e=a.shift(),t=i.get(e.getNamespaceSignature());for(const r of e.getNamespaces()){const e=i.get(r.getNamespaceSignature());e.push(...t.filter((t=>!e.includes(t)&&"_DEFAULT_ARK_CLASS"!=t.getName()))),a.push(r)}}}return i}getGlobalVariableMap(){var e,t,r,n;const i=new Map;for(const a of this.getFiles()){const o=[],s=new Map,c=[],l=[];a.getDefaultClass().getDefaultArkMethod().getBody().getLocals().forEach((e=>{e.getDeclaringStmt()&&"this"!=e.getName()&&"$"!=e.getName()[0]&&l.push(e)})),i.set(a.getFileSignature(),l);for(const e of a.getNamespaces())o.push(e),s.set(e,a);for(;o.length>0;){const e=o.shift(),t=[];if(e.getDefaultClass().getDefaultArkMethod().getBody().getLocals().forEach((e=>{e.getDeclaringStmt()&&"this"!=e.getName()&&"$"!=e.getName()[0]&&t.push(e)})),i.set(e.getNamespaceSignature(),t),0==e.getNamespaces().length)c.push(e);else for(const t of e.getNamespaces())o.push(t),s.set(t,e)}for(;c.length>0;){const a=c.shift(),o=[];for(const e of a.getExportInfos())e.getExportClauseType()===v.ExportType.LOCAL&&e.getTypeSignature()&&o.push(e.getTypeSignature());const l=s.get(a);l instanceof _.ArkNamespace?null===(e=i.get(l.getNamespaceSignature()))||void 0===e||e.push(...o):l instanceof p.ArkFile&&(null===(t=i.get(l.getFileSignature()))||void 0===t||t.push(...o));let u=a;for(;!(s.get(u)instanceof p.ArkFile)&&u.isExported();){const e=s.get(s.get(u));if(e instanceof _.ArkNamespace)null===(r=i.get(e.getNamespaceSignature()))||void 0===r||r.push(...o),u=s.get(u);else if(e instanceof p.ArkFile){null===(n=i.get(e.getFileSignature()))||void 0===n||n.push(...o);break}}l instanceof _.ArkNamespace&&!c.includes(l)&&c.push(l)}}for(const e of this.getFiles()){const t=[],r=[];for(const n of e.getImportInfos()){const a=l.ModelUtils.getLocalInImportInfoWithName(n.getImportClauseName(),e);a&&!t.includes(a)&&t.push(a);const o=l.ModelUtils.getNamespaceInImportInfoWithName(n.getImportClauseName(),e);if(o&&!r.includes(o))try{const e=i.get(o.getNamespaceSignature());t.push(...e.filter((e=>!t.includes(e)&&"_DEFAULT_ARK_CLASS"!=e.getName())))}catch(e){}}const n=i.get(e.getFileSignature());n.push(...t.filter((e=>!n.includes(e))));const a=[...e.getNamespaces()];for(const e of a){const t=i.get(e.getNamespaceSignature()),r=new Set(t.map((e=>e.getName())));for(const e of n)r.has(e.getName())||t.push(e)}for(;a.length>0;){const e=a.shift(),t=i.get(e.getNamespaceSignature());for(const r of e.getNamespaces()){const e=i.get(r.getNamespaceSignature()),n=new Set(e.map((e=>e.getName())));for(const r of t)n.has(r.getName())||e.push(r);a.push(r)}}}return i}buildClassDone(){return this.buildStage>=S.CLASS_DONE}getModuleScene(e){return this.moduleScenesMap.get(e)}};class T{constructor(){this.moduleName="",this.modulePath="",this.moduleOhPkgFilePath="",this.otherSdkMap=new Map,this.ohPkgContent={},this.moduleImportInfos=[],this.filesMap=new Map,this.namespacesMap=new Map,this.classesMap=new Map,this.methodsMap=new Map}ModuleScenBuilder(e,t,r,n=!1){this.moduleName=e,this.modulePath=t,this.projectScene=r,this.getModuleOhPkgFilePath(),this.moduleOhPkgFilePath?this.ohPkgContent=(0,m.fetchDependenciesFromFile)(this.moduleOhPkgFilePath):D.warn("This module has no oh-package.json5!"),this.genArkFiles()}getModuleOhPkgFilePath(){const e=a.default.resolve(this.projectScene.getRealProjectDir(),a.default.join(this.modulePath,"./oh-package.json5"));i.default.existsSync(e)&&(this.moduleOhPkgFilePath=e)}getModuleName(){return this.moduleName}getModulePath(){return this.modulePath}getOhPkgFilePath(){return this.moduleOhPkgFilePath}getOhPkgContent(){return this.ohPkgContent}genArkFiles(){(0,h.getAllFiles)(this.modulePath,[".ets",".ts"]).forEach((e=>{D.info("=== parse file:",e);let t=new p.ArkFile;t.setScene(this.projectScene),t.setModuleScene(this),t.setProjectName(this.projectScene.getProjectName()),(0,g.buildArkFileFromFile)(e,this.projectScene.getRealProjectDir(),t);const r=t.getFileSignature().toString();this.filesMap.set(r,t),this.projectScene.getFilesMap().set(r,t)}))}}t.ModuleScene=T},7799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCallGraph=void 0;const n=r(978);t.AbstractCallGraph=class{get signatureManager(){return this._signatureManager}get scene(){return this._scene}constructor(e){this.methods=new Set,this.calls=new Map,this._signatureManager=new n.MethodSignatureManager,this._scene=new n.SceneManager,this._scene.scene=e}loadCallGraph(e){this.processWorkList(e)}processWorkList(e){for(this.signatureManager.workList=e;0!=this.signatureManager.workList.length;){let e=this.signatureManager.workList.shift();if(!this.checkMethodForAnalysis(e))continue;this.preProcessMethod(e);let t=this.processMethod(e);for(let r of t)this.signatureManager.addToWorkList(r),this.addCall(e,r);this.signatureManager.addToProcessedList(e),this.addMethod(e)}}processMethod(e){var t;let r=[],i=null===(t=this.scene.getMethod(e))||void 0===t?void 0:t.getBody().getCfg();if(void 0!==i)for(let t of i.getStmts())if(t.containsInvokeExpr()){let i=this.resolveCall(e,t);for(let e of i)(0,n.isItemRegistered)(e,r,((e,t)=>e.toString()===t.toString()))||r.push(e)}return r}addMethod(e){null==this.getMethod(e)&&this.methods.add(e)}hasMethod(e){for(let t of this.methods)if(e.toString()===t.toString())return!0;return!1}addCall(e,t){this.getCall(e).length>0?(0,n.isItemRegistered)(t,this.getCall(e),((e,t)=>e.toString()===t.toString()))||this.calls.get(e).push(t):this.calls.set(e,[t])}getCalls(){return this.calls}getMethods(){return this.methods}getMethod(e){for(const t of this.methods)if(t.toString()===e.toString())return t;return null}getCall(e){for(const[t,r]of this.calls)if(t.toString()===e.toString())return r;return[]}checkMethodForAnalysis(e){if(void 0===e)return!1;if(this.signatureManager.findInProcessedList(e))return!1;return this.scene.scene.getFiles().some((t=>t.getFileSignature().toString()===e.getDeclaringClassSignature().getDeclaringFileSignature().toString()))}}},6348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassHierarchyAnalysisAlgorithm=void 0;const n=r(3532),i=r(9803),a=r(978),o=r(7799);class s extends o.AbstractCallGraph{resolveCall(e,t){let r,i=null,o=[],s=t.getInvokeExpr();if(void 0===s)return[];let c=this.resolveInvokeExpr(s,e.getDeclaringClassSignature().getDeclaringFileSignature().getFileName(),e);if(0==c.length)return s instanceof n.ArkInstanceInvokeExpr&&"console"==s.getBase().getName()&&"log"==s.getMethodSignature().getMethodSubSignature().getMethodName()&&o.push(s.getMethodSignature()),o;for(let e of c){if(i=e.getSignature(),r=e,null==i)return o;if(s instanceof n.ArkStaticInvokeExpr)return o.push(i),o;{if("constructor"===i.getMethodSubSignature().getMethodName())return o.push(i),o;let e=this.resolveAllCallTargets(i);for(let t of e){let e=this.scene.getMethod(t);null!=e&&(e.getDeclaringArkClass().getModifiers().has("AbstractKeyword")||e.getModifiers().has("AbstractKeyword")||(0,a.isItemRegistered)(e.getSignature(),o,((e,t)=>e.toString()===t.toString()))||o.push(t))}}}return o}resolveAllCallTargets(e){let t,r=[];t=this.scene.getExtendedClasses(e.getDeclaringClassSignature());for(let n of t){let t=n.getMethods();for(let n of t)n.getSubSignature().toString()===e.getMethodSubSignature().toString()&&((0,a.isItemRegistered)(n.getSignature(),r,((e,t)=>e.toString()===t.toString()))||r.push(n.getSignature()))}return r}resolveInvokeExpr(e,t,r){let o=e.getMethodSignature().getMethodSubSignature().getMethodName(),s=(new Set,[]);if(e instanceof n.ArkInstanceInvokeExpr){let t=e.getBase().getType();if(t instanceof i.ClassType){let e=this.scene.getExtendedClasses(t.getClassSignature());for(let t of e)for(let e of t.getMethods())e.getName()===o&&((0,a.isItemRegistered)(e,s,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||s.push(e))}}else if(e instanceof n.ArkStaticInvokeExpr){let t=this.scene.getMethod(e.getMethodSignature());null!=t&&((0,a.isItemRegistered)(t,s,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||s.push(t))}return s}preProcessMethod(e){}}t.ClassHierarchyAnalysisAlgorithm=s},8011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PointerTargetPair=t.StaticFieldPointer=t.InstanceFieldPointer=t.LocalPointer=t.Pointer=t.PointerTarget=void 0;t.PointerTarget=class{constructor(e,t){this.type=e,this.location=t}getType(){return this.type}getLocation(){return this.location}static genLocation(e,t){return e.toString()+t.getOriginPositionInfo()}};class r{constructor(){this.pointerTargetSet=new Set}addPointerTarget(e){for(let t of this.pointerTargetSet)if(t.getLocation()==e.getLocation())return;this.pointerTargetSet.add(e)}getPointerTarget(e){for(let t of this.pointerTargetSet)if(t==e)return t;return null}getAllPointerTargets(){let e=[];for(let t of this.pointerTargetSet)e.push(t);return e}}t.Pointer=r;t.LocalPointer=class extends r{constructor(e){super(),this.identifier=e}getIdentifier(){return this.identifier}toString(){let e="[LocalPointer] ";e+=this.getIdentifier().toString()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.InstanceFieldPointer=class extends r{constructor(e,t){super(),this.basePointerTarget=e,this.fieldSignature=t}getBasePointerTarget(){return this.basePointerTarget}getFieldSignature(){return this.fieldSignature}toString(){let e="[InstanceFieldPointer] ";e+=this.getBasePointerTarget().getType()+"."+this.fieldSignature.getFieldName()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.StaticFieldPointer=class extends r{constructor(e){super(),this.fieldSignature=e}getFieldSignature(){return this.fieldSignature}toString(){let e="[StaticFieldPointer] ";e+=this.fieldSignature.getBaseName()+"."+this.fieldSignature.getFieldName()+" pointer: {";const t=this.getAllPointerTargets();for(let r of t)e+=" "+r.getType()+"."+r.getLocation();return e+"}"}};t.PointerTargetPair=class{constructor(e,t){this.pointer=e,this.pointerTarget=t}getPointer(){return this.pointer}getPointerTarget(){return this.pointerTarget}}},975:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PointerFlowGraph=void 0;const i=r(8011),a=n(r(7015)).default.getLogger();t.PointerFlowGraph=class{constructor(){this.pointerFlowEdges=new Map,this.pointerSet=new Set}proPagate(e,t){const r=[],n=e;this.addPointerSetElement(n,t);const a=this.getPointerFlowEdges(n);for(let e of a)r.push(new i.PointerTargetPair(e,t));return r}getPointerSet(){return this.pointerSet}getPointerSetElement(e,t,r){const n=this.getPointerSet();for(let a of n)if(null!=r){if(null!=t&&a instanceof i.InstanceFieldPointer){if(a.getBasePointerTarget()===t&&a.getFieldSignature().toString()===r.toString())return a}else if(a instanceof i.StaticFieldPointer&&a.getFieldSignature().toString()===r.toString())return a}else if(null!=e&&a instanceof i.LocalPointer&&a.getIdentifier()===e)return a;let a=null;return a=null!=r?null==t?new i.StaticFieldPointer(r):new i.InstanceFieldPointer(t,r):new i.LocalPointer(e),this.pointerSet.add(a),a}addPointerSetElement(e,t){e.addPointerTarget(t)}getPointerFlowEdges(e){return this.pointerFlowEdges.get(e)||[]}addPointerFlowEdge(e,t){let r=[];if(!this.hasPointerFlowEdge(e,t)){const n=this.pointerFlowEdges.get(e)||[];n.push(t),this.pointerFlowEdges.set(e,n);let a=e.getAllPointerTargets();for(let e of a)r.push(new i.PointerTargetPair(t,e))}return r}hasPointerFlowEdge(e,t){if(this.pointerFlowEdges.has(e)){const r=this.pointerFlowEdges.get(e);return!!r&&r.includes(t)}return!1}printPointerFlowGraph(){a.info("PointerFlowGraph Elements: ");for(let e of this.getPointerSet())a.info("\t"+e.toString());a.info("PointerFlowGraph Edges: ");for(let e of this.pointerFlowEdges.keys()){a.info("\t"+e.toString());for(let t of this.getPointerFlowEdges(e))a.info("\t\t"+t.toString())}}}},9045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RapidTypeAnalysisAlgorithm=void 0;const n=r(3532),i=r(9803),a=r(978),o=r(7799);class s extends o.AbstractCallGraph{constructor(){super(...arguments),this.instancedClasses=new Set,this.ignoredCalls=new Map}resolveCall(e,t){let r,i,o=[],s=t.getInvokeExpr();if(void 0===s)return[];let c=this.resolveInvokeExpr(s,e.getDeclaringClassSignature().getDeclaringFileSignature().getFileName(),e);if(null==c)return o;for(let t of c){if(r=t.getSignature(),i=t,null==r)return o;if(s instanceof n.ArkStaticInvokeExpr)return o.push(r),o;{if("constructor"===r.getMethodSubSignature().getMethodName())return o.push(r),o;let t=this.resolveAllCallTargets(r);for(let r of t){let t=this.scene.getMethod(r);null!=t&&(t.getDeclaringArkClass().getModifiers().has("AbstractKeyword")||t.getModifiers().has("AbstractKeyword")||(null!==this.getInstancedClass(t.getDeclaringArkClass().getSignature())?(0,a.isItemRegistered)(t.getSignature(),o,((e,t)=>e.toString()===t.toString()))||o.push(r):this.saveIgnoredCalls(e,t.getSignature())))}}}return o}resolveAllCallTargets(e){let t,r=[];t=this.scene.getExtendedClasses(e.getDeclaringClassSignature());for(let n of t){let t=n.getMethods();for(let n of t)n.getSubSignature().toString()===e.getMethodSubSignature().toString()&&((0,a.isItemRegistered)(n.getSignature(),r,((e,t)=>e.toString()===t.toString()))||r.push(n.getSignature()))}return r}preProcessMethod(e){const t=this.collectInstantiatedClassesInMethod(e).filter((e=>!(null!=this.getInstancedClass(e))));for(let e of t){let t=this.getIgnoredCalls(e);if(0!=t.length){for(let e of t)this.addCall(e[0],e[1]),this.signatureManager.addToWorkList(e[1]);this.ignoredCalls.delete(e)}this.addInstancedClass(e)}}collectInstantiatedClassesInMethod(e){let t,r=this.scene.getMethod(e).getCfg();t=[];for(let e of r.getStmts()){let r=e.getExprs()[0];if(r instanceof n.ArkNewExpr){let e=r.getType().getClassSignature();null!=e&&((0,a.isItemRegistered)(e,t,((e,t)=>e.toString()===t.toString()))||t.push(e))}}return t}resolveInvokeExpr(e,t,r){let o=e.getMethodSignature().getMethodSubSignature().getMethodName(),s=o,c=new Set,l=[];if(e instanceof n.ArkInstanceInvokeExpr){let t=e.getBase().getType();if(t instanceof i.ClassType){let e=this.scene.getExtendedClasses(t.getClassSignature());for(let t of e)for(let e of t.getMethods())e.getName()===o&&((0,a.isItemRegistered)(e,l,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||l.push(e))}}else if(e instanceof n.ArkStaticInvokeExpr)if(o.includes(".")){let e=o.lastIndexOf("."),n=o.substring(0,e);if("this"===n){let e=this.scene.getClass(r.getDeclaringClassSignature());c.add([e.getName(),e.getDeclaringArkFile().getName()])}else c.add([n,t]),s=o.substring(e+1)}else{let t=this.scene.getMethod(e.getMethodSignature());null!=t&&((0,a.isItemRegistered)(t,l,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||l.push(t))}return l}saveIgnoredCalls(e,t){let r=t.getDeclaringClassSignature(),n=this.getIgnoredCalls(r);n.some((r=>r[0].toString()===e.toString()&&r[1].toString()===t.toString()))||(0!=n.length?n.push([e,t]):this.ignoredCalls.set(r,[[e,t]]))}getIgnoredCalls(e){for(let t of this.ignoredCalls.keys())if(t.toString()===e.toString())return this.ignoredCalls.get(t);return[]}deleteIgnoredCalls(e){for(let t of this.ignoredCalls.keys())t.toString()===e.toString()&&this.ignoredCalls.delete(t)}addInstancedClass(e){for(let t of this.instancedClasses)if(t.toString()===e.toString())return;this.instancedClasses.add(e)}getInstancedClass(e){for(let t of this.instancedClasses)if(t.toString()===e.toString())return t;return null}}t.RapidTypeAnalysisAlgorithm=s},1796:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePointerAnalysisAlogorithm=void 0;const i=r(3532),a=r(4576),o=r(9029),s=r(9803),c=r(978),l=r(7799),u=r(8011),d=r(975),p=n(r(7015)),_=r(3938),f=p.default.getLogger();class g extends l.AbstractCallGraph{constructor(e){super(e),this.workList=[],this.reachableStmts=[],this.reachableMethods=[],this.pointerFlowGraph=new d.PointerFlowGraph,this.CHAtool=this.scene.scene.makeCallGraphCHA([])}loadCallGraph(e){this.processWorkList(e),this.pointerFlowGraph.printPointerFlowGraph()}processWorkList(e){for(this.addReachable(e);0!=this.workList.length;){let e,t,r=this.workList.shift(),n=r.getPointer(),i=r.getPointerTarget();if(n instanceof u.LocalPointer?(t=n.getIdentifier(),e=this.pointerFlowGraph.getPointerSetElement(t,null,null)):n instanceof u.InstanceFieldPointer?(t=n.getBasePointerTarget(),e=this.pointerFlowGraph.getPointerSetElement(null,t,n.getFieldSignature())):n instanceof u.StaticFieldPointer&&(e=this.pointerFlowGraph.getPointerSetElement(null,null,n.getFieldSignature())),null!=e.getPointerTarget(i))continue;let o=this.pointerFlowGraph.proPagate(e,i);for(let e of o)this.workList.push(e);t instanceof a.Local&&(this.processFieldReferenceStmt(t,i),this.processInstanceInvokeStmt(t,i))}}resolveCall(e,t){throw new Error("Method not implemented.")}preProcessMethod(e){throw new Error("Method not implemented.")}addReachable(e){for(let t of e){if((0,c.isItemRegistered)(t,this.reachableMethods,((e,t)=>e.toString()===t.toString())))continue;this.reachableMethods.push(t);let e=this.scene.getMethod(t);if(null==e)continue;let r=e.getCfg().getStmts();this.reachableStmts.push(...r);for(let n of r)if(n instanceof o.ArkAssignStmt){let r=n.getLeftOp(),o=n.getRightOp();if(!(r instanceof a.Local))continue;if(o instanceof i.ArkNewExpr){let e=o.getType(),i=new u.PointerTarget(e,u.PointerTarget.genLocation(t,n));this.workList.push(new u.PointerTargetPair(this.pointerFlowGraph.getPointerSetElement(r,null,null),i))}else if(o instanceof a.Local)this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(o,null,null),this.pointerFlowGraph.getPointerSetElement(r,null,null));else if(o instanceof i.ArkStaticInvokeExpr){let t=this.scene.getMethod(o.getMethodSignature());if(null==t)continue;this.addReachable([t.getSignature()]),this.processInvokePointerFlow(e,t,n)}}else if(n instanceof o.ArkInvokeStmt){let t=n.getInvokeExpr();if(t instanceof i.ArkStaticInvokeExpr){let r=this.scene.getMethod(t.getMethodSignature());if(null==r)continue;this.addReachable([t.getMethodSignature()]),this.processInvokePointerFlow(e,r,n)}}}}processInstanceInvokeStmt(e,t){var r;for(let n of this.reachableStmts)if(n.containsInvokeExpr()){let a=n.getInvokeExpr();if(void 0===a)continue;if(a instanceof i.ArkInstanceInvokeExpr){if(e!=a.getBase())continue}else if(a instanceof i.ArkStaticInvokeExpr)continue;let o=null===(r=n.getCfg())||void 0===r?void 0:r.getDeclaringMethod(),s=this.getSpecificCallTarget(a,t);if(null==s)continue;s.getSignature();let c=s.getThisInstance();if(null==c)continue;this.workList.push(new u.PointerTargetPair(this.pointerFlowGraph.getPointerSetElement(c,null,null),t)),this.processInvokePointerFlow(o,s,n)}}processFieldReferenceStmt(e,t){for(let r of this.reachableStmts)if(r instanceof o.ArkAssignStmt&&r.containsFieldRef()){let n;if(null!=(n=this.getFieldRefFromUse(r))){let i=n.getFieldSignature();if(n instanceof _.ArkInstanceFieldRef){if(n.getBase()!==e)continue;this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(null,t,i),this.pointerFlowGraph.getPointerSetElement(r.getLeftOp(),null,null))}else n instanceof _.ArkStaticFieldRef&&this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(null,null,i),this.pointerFlowGraph.getPointerSetElement(r.getLeftOp(),null,null))}else if(null!=(n=this.getFieldFromDef(r))){let i=n.getFieldSignature();if(n instanceof _.ArkInstanceFieldRef){if(n.getBase()!==e)continue;this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(r.getRightOp(),null,null),this.pointerFlowGraph.getPointerSetElement(null,t,i))}else n instanceof _.ArkStaticFieldRef&&this.addEdgeIntoPointerFlowGraph(this.pointerFlowGraph.getPointerSetElement(r.getRightOp(),null,null),this.pointerFlowGraph.getPointerSetElement(null,null,n.getFieldSignature()))}}}processInvokePointerFlow(e,t,r){if((0,c.isItemRegistered)(t.getSignature(),this.getCall(e.getSignature()),((e,t)=>e.toString()===t.toString())))return;let n=r.getInvokeExpr();if(null==n)return;let i=e.getSignature(),a=t.getSignature();this.addCall(i,a),this.addMethod(i),this.addReachable([a]);let s=n.getArgs(),l=t.getParameterInstances();for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Constant=void 0;const n=r(9803);t.Constant=class{constructor(e,t=n.UnknownType.getInstance()){this.value=e,this.type=t}getValue(){return this.value}setValue(e){this.value=e}getUses(){return[]}getType(){return this.type}setType(e){this.type=e}toString(){let e="";return e=this.type instanceof n.StringType?"'"+this.value+"'":this.value,e}}},2222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decorator=void 0;t.Decorator=class{constructor(e){this.kind=e}getKind(){return this.kind}setContent(e){this.content=e}getContent(){return this.content}setParam(e){this.param=e}getParam(){return this.param}}},4243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefUseChain=void 0;t.DefUseChain=class{constructor(e,t,r){this.value=e,this.def=t,this.use=r}}},3532:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLiteralExpr=t.ArrayLiteralExpr=t.ArkUnopExpr=t.ArkPhiExpr=t.ArkCastExpr=t.ArkLengthExpr=t.ArkInstanceOfExpr=t.ArkTypeOfExpr=t.ArkConditionExpr=t.ArkBinopExpr=t.ArkDeleteExpr=t.ArkNewArrayExpr=t.ArkNewExpr=t.ArkStaticInvokeExpr=t.ArkInstanceInvokeExpr=t.AbstractInvokeExpr=t.AbstractExpr=void 0;const i=r(8596),a=r(7125),o=r(4576),s=r(9803),c=r(3938),l=r(2029),u=r(9029),d=n(r(7015)).default.getLogger();class p{inferType(e){return this}}t.AbstractExpr=p;class _ extends p{constructor(e,t){super(),this.methodSignature=e,this.args=t}getMethodSignature(){return this.methodSignature}setMethodSignature(e){this.methodSignature=e}getArg(e){return this.args[e]}getArgs(){return this.args}setArgs(e){this.args=e}getType(){return this.methodSignature.getType()}getUses(){let e=[];e.push(...this.args);for(const t of this.args)e.push(...t.getUses());return e}}t.AbstractInvokeExpr=_;t.ArkInstanceInvokeExpr=class extends _{constructor(e,t,r){super(t,r),this.base=e}getBase(){return this.base}setBase(e){this.base=e}getUses(){let e=[];e.push(this.base),e.push(...this.base.getUses()),e.push(...this.getArgs());for(const t of this.getArgs())e.push(...t.getUses());return e}toString(){let e=[];if(e.push("instanceinvoke "),e.push(this.base.toString()),e.push(".<"),e.push(this.getMethodSignature().toString()),e.push(">("),this.getArgs().length>0){for(const t of this.getArgs())e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}inferType(e){let t=this.base.getType();if(this.base instanceof o.Local&&t instanceof s.UnknownType?t=i.TypeInference.inferBaseType(this.base.getName(),e):t instanceof s.UnclearReferenceType&&(t=i.TypeInference.inferUnclearReferenceType(t.getName(),e)),!t)return d.warn("infer ArkInstanceInvokeExpr base type fail: "+this.toString()),this;this.base instanceof o.Local&&this.base.setType(t);const r=this.getMethodSignature().getMethodSubSignature().getMethodName(),n=e.getDeclaringArkFile().getScene();if("forEach"===r&&t instanceof s.ArrayType){const e=this.getArg(0);if(e.getType()instanceof s.CallableType){const r=e.getType().getMethodSignature(),a=n.getMethod(r);if(null!=a){const e=a.getBody().getCfg().getStmts()[0];if(e instanceof u.ArkAssignStmt&&e.getRightOp()instanceof c.ArkParameterRef){e.getRightOp().setType(t.getBaseType())}i.TypeInference.inferTypeInMethod(a)}}else d.warn("arg of forEach must be callable")}else if("constructor"===r&&t instanceof s.ClassType){const e=new a.MethodSubSignature;e.setMethodName(r),e.setReturnType(new s.ClassType(t.getClassSignature()));const n=new a.MethodSignature;return n.setDeclaringClassSignature(t.getClassSignature()),n.setMethodSubSignature(e),this.setMethodSignature(n),this}let l;if(t instanceof s.UnionType){for(const e of t.getTypes())if(l=this.inferMethod(e,r,n),l)break}else l=this.inferMethod(t,r,n);return l||(d.warn("invoke ArkInstanceInvokeExpr MethodSignature type fail: ",this.toString()),this)}inferMethod(e,t,r){var n,a,o;if(e instanceof s.ClassType){const a=r.getClass(e.getClassSignature());let o=null!==(n=null==a?void 0:a.getMethodWithName(t))&&void 0!==n?n:null==a?void 0:a.getStaticMethodWithName(t);if(o)return i.TypeInference.inferMethodReturnType(o),this.setMethodSignature(o.getSignature()),o.isStatic()?new f(o.getSignature(),this.getArgs()):this}else if(e instanceof s.AnnotationNamespaceType){const n=null===(a=r.getNamespace(e.getNamespaceSignature()))||void 0===a?void 0:a.getDefaultClass();let s=null!==(o=null==n?void 0:n.getMethodWithName(t))&&void 0!==o?o:null==n?void 0:n.getStaticMethodWithName(t);if(s)return i.TypeInference.inferMethodReturnType(s),this.setMethodSignature(s.getSignature()),new f(s.getSignature(),this.getArgs())}return null}};class f extends _{constructor(e,t){super(e,t)}toString(){let e=[];if(e.push("staticinvoke <"),e.push(this.getMethodSignature().toString()),e.push(">("),this.getArgs().length>0){for(const t of this.getArgs())e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}inferType(e){var t;const r=this.getMethodSignature().getMethodSubSignature().getMethodName();let n=l.ModelUtils.getStaticMethodWithName(r,e);if(!n){let i=e.getDeclaringArkFile();const o=l.ModelUtils.getTypeSignatureInImportInfoWithName(r,i);o&&o instanceof a.MethodSignature?n=i.getScene().getMethod(o):o&&o instanceof a.ClassSignature&&(n=(null===(t=i.getScene().getClass(o))||void 0===t?void 0:t.getMethodWithName("constructor"))||null)}return n&&(this.setMethodSignature(n.getSignature()),i.TypeInference.inferMethodReturnType(n)),this}}t.ArkStaticInvokeExpr=f;t.ArkNewExpr=class extends p{constructor(e){super(),this.classType=e}getUses(){return[]}getType(){return this.classType}toString(){return"new "+this.classType}inferType(e){const t=this.classType.getClassSignature().getClassName(),r=i.TypeInference.inferUnclearReferenceType(t,e);return r&&r instanceof s.ClassType&&(this.classType=r),this}};t.ArkNewArrayExpr=class extends p{constructor(e,t){super(),this.baseType=e,this.size=t}getSize(){return this.size}setSize(e){this.size=e}getType(){return new s.ArrayType(this.baseType,1)}getBaseType(){return this.baseType}setBaseType(e){this.baseType=e}inferType(e){if(this.baseType instanceof s.UnionType){const t=this.baseType.getTypes();for(let e=1;e>":case">>>":e===s.NumberType.getInstance()&&t===s.NumberType.getInstance()&&(r=s.NumberType.getInstance());break;case"<":case"<=":case">":case">=":case"==":case"!=":case"===":case"!==":case"&&":case"||":r=s.BooleanType.getInstance();break;case"??":r=e===s.UnknownType.getInstance()||e===s.UndefinedType.getInstance()||e===s.NullType.getInstance()?t:e}this.type=r}inferType(e){return this.inferOpType(this.op1,e),this.inferOpType(this.op2,e),this.setType(),this}}t.ArkBinopExpr=g;t.ArkConditionExpr=class extends g{constructor(e,t,r){super(e,t,r)}};t.ArkTypeOfExpr=class extends p{constructor(e){super(),this.op=e}getOp(){return this.op}setOp(e){this.op=e}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getType(){return s.StringType.getInstance()}toString(){return"typeof "+this.op}};t.ArkInstanceOfExpr=class extends p{constructor(e,t){super(),this.op=e,this.checkType=t}getOp(){return this.op}setOp(e){this.op=e}getType(){return s.BooleanType.getInstance()}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}toString(){return this.op+" instanceof "+this.checkType}};t.ArkLengthExpr=class extends p{constructor(e){super(),this.op=e}getOp(){return this.op}setOp(e){this.op=e}getType(){return s.NumberType.getInstance()}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}toString(){return"lengthof "+this.op}};t.ArkCastExpr=class extends p{constructor(e,t){super(),this.op=e,this.type=t}getOp(){return this.op}setOp(e){this.op=e}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getType(){return this.type}toString(){return"<"+this.type+">"+this.op}};t.ArkPhiExpr=class extends p{constructor(){super(),this.args=[],this.blockToArg=new Map,this.argToBlock=new Map}getUses(){let e=[];return e.push(...this.args),e}getArgs(){return this.args}setArgs(e){this.args=e}getArgToBlock(){return this.argToBlock}setArgToBlock(e){this.argToBlock=e}getType(){return this.args[0].getType()}toString(){let e=[];if(e.push("phi("),this.args.length>0){for(const t of this.args)e.push(t.toString()),e.push(", ");e.pop()}return e.push(")"),e.join("")}};t.ArkUnopExpr=class extends p{constructor(e,t){super(),this.op=e,this.operator=t}getUses(){let e=[];return e.push(this.op),e.push(...this.op.getUses()),e}getOp(){return this.op}getType(){return this.op.getType()}getOperator(){return this.operator}toString(){return this.operator+this.op}};t.ArrayLiteralExpr=class extends p{constructor(e,t){super(),this.elements=[],this.elements=e,this.type=t}getElements(){return this.elements}getUses(){let e=[];return e.push(),e}inferType(e){if(this.type instanceof s.UnionType){const t=this.type.getTypes();for(let e=1;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Local=void 0;const n=r(9803);t.Local=class{constructor(e,t=n.UnknownType.getInstance()){this.name=e,this.type=t,this.originalValue=null,this.declaringStmt=null,this.usedStmts=[]}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getOriginalValue(){return this.originalValue}setOriginalValue(e){this.originalValue=e}getDeclaringStmt(){return this.declaringStmt}setDeclaringStmt(e){this.declaringStmt=e}getUses(){return[]}addUsedStmt(e){this.usedStmts.push(e)}getUsedStmts(){return this.usedStmts}toString(){return this.getName()}}},6356:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LineColPosition=t.LinePosition=t.Position=void 0;const i=n(r(3221));t.Position=class{};t.LinePosition=class{constructor(e){this.lineNo=e}getLineNo(){return this.lineNo}};class a{constructor(e,t){this.lineNo=e,this.colNo=t}getLineNo(){return this.lineNo}getColNo(){return this.colNo}static buildFromNode(e,t){let{line:r,character:n}=i.default.getLineAndCharacterOfPosition(t,e.getStart(t));return new a(r+1,n+1)}}t.LineColPosition=a,a.DEFAULT=new a(-1,-1)},3938:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkCaughtExceptionRef=t.ArkThisRef=t.ArkParameterRef=t.ArkStaticFieldRef=t.ArkInstanceFieldRef=t.AbstractFieldRef=t.ArkArrayRef=t.AbstractRef=void 0;const i=n(r(7015)),a=r(4576),o=r(9803),s=r(8596),c=i.default.getLogger();class l{inferType(e){return this}}t.AbstractRef=l;t.ArkArrayRef=class extends l{constructor(e,t){super(),this.base=e,this.index=t}getBase(){return this.base}setBase(e){this.base=e}getIndex(){return this.index}setIndex(e){this.index=e}getType(){const e=this.base.getType();return e instanceof o.ArrayType?e.getBaseType():(c.warn("the type of base in ArrayRef is not ArrayType"),o.UnknownType.getInstance())}getUses(){let e=[];return e.push(this.base),e.push(...this.base.getUses()),e.push(this.index),e.push(...this.index.getUses()),e}toString(){return this.base+"["+this.index+"]"}};class u extends l{constructor(e){super(),this.fieldSignature=e}getFieldName(){return this.fieldSignature.getFieldName()}getFieldSignature(){return this.fieldSignature}setFieldSignature(e){this.fieldSignature=e}getType(){return this.fieldSignature.getType()}}t.AbstractFieldRef=u;t.ArkInstanceFieldRef=class extends u{constructor(e,t){super(t),this.base=e}getBase(){return this.base}setBase(e){this.base=e}getUses(){let e=[];return e.push(this.base),e.push(...this.base.getUses()),e}toString(){return this.base.toString()+".<"+this.getFieldSignature()+">"}inferType(e){var t;let r=this.base.getType();if(this.base instanceof a.Local&&r instanceof o.UnknownType?r=s.TypeInference.inferBaseType(this.base.getName(),e):r instanceof o.UnclearReferenceType&&(r=s.TypeInference.inferUnclearReferenceType(r.getName(),e)),!r)return c.warn("infer field ref base type fail: "+this.toString()),this;this.base instanceof a.Local&&this.base.setType(r);const n=s.TypeInference.inferFieldType(r,this.getFieldName(),e);return n&&this.getFieldSignature().setType(n),r instanceof o.ClassType?(this.getFieldSignature().setDeclaringSignature(r.getClassSignature()),(null===(t=e.getDeclaringArkFile().getScene().getClass(r.getClassSignature()))||void 0===t?void 0:t.getStaticFieldWithName(this.getFieldName()))?new d(this.getFieldSignature()):this):r instanceof o.AnnotationNamespaceType?(this.getFieldSignature().setDeclaringSignature(r.getNamespaceSignature()),new d(this.getFieldSignature())):(c.warn("infer field ref FieldSignature type fail: "+this.toString()),this)}};class d extends u{constructor(e){super(e)}getUses(){return[]}toString(){return this.getFieldSignature().toString()}}t.ArkStaticFieldRef=d;t.ArkParameterRef=class extends l{constructor(e,t){super(),this.index=e,this.paramType=t}getIndex(){return this.index}getType(){return this.paramType}setType(e){this.paramType=e}getUses(){return[]}toString(){return"parameter"+this.index+": "+this.paramType}};t.ArkThisRef=class extends l{constructor(e){super(),this.type=e}getType(){return this.type}getUses(){return[]}toString(){return"this: "+this.type}};t.ArkCaughtExceptionRef=class extends l{constructor(e){super(),this.type=e}getType(){return this.type}getUses(){return[]}toString(){return"caughtexception: "+this.type}}},9029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkThrowStmt=t.ArkSwitchStmt=t.ArkNopStmt=t.ArkReturnVoidStmt=t.ArkReturnStmt=t.ArkGotoStmt=t.ArkIfStmt=t.ArkInvokeStmt=t.ArkAssignStmt=t.Stmt=void 0;const n=r(8420),i=r(3532),a=r(3938),o=r(6356);class s{constructor(){this.text="",this.def=null,this.uses=[],this.originPosition=o.LineColPosition.DEFAULT,this.position=o.LineColPosition.DEFAULT,this.cfg=null}getUses(){let e=[];for(const t of this.uses)t instanceof i.AbstractExpr||e.push(t);return e}addUse(e){this.uses.push(e)}replaceUse(e,t){new n.StmtUseReplacer(e,t).caseStmt(this)}replaceUses(e){this.uses=Array.from(e)}getDef(){return this.def}setDef(e){this.def=e}getCfg(){return this.cfg}setCfg(e){this.cfg=e}isBranch(){return!1}getExpectedSuccessorCount(){return 1}containsInvokeExpr(){for(const e of this.uses)if(e instanceof i.AbstractInvokeExpr)return!0;return!1}replaceInvokeExpr(e){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationTypeQueryType=t.AnnotationNamespaceType=t.AnnotationType=t.TypeLiteralType=t.ClassAliasType=t.AliasType=t.TupleType=t.ArrayObjectType=t.ArrayType=t.ClassType=t.CallableType=t.NeverType=t.VoidType=t.UnionType=t.LiteralType=t.UndefinedType=t.NullType=t.StringType=t.NumberType=t.BooleanType=t.PrimitiveType=t.UnclearReferenceType=t.TypeParameterType=t.UnknownType=t.AnyType=t.Type=void 0;class r{}t.Type=r;class n extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"any"}}t.AnyType=n,n.INSTANCE=new n;class i extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"unknown"}}t.UnknownType=i,i.INSTANCE=new i;t.TypeParameterType=class extends r{constructor(e,t=i.getInstance()){super(),this.name=e,this.type=t}getName(){return this.name}getType(){return this.type}toString(){return this.name}};t.UnclearReferenceType=class extends r{constructor(e,t=[]){super(),this.name=e,this.genericTypes=t}getName(){return this.name}getGenericTypes(){return this.genericTypes}toString(){this.name;if(this.genericTypes.length>0){this.genericTypes.join(",")}return this.name}};class a extends r{constructor(e){super(),this.name=e}getName(){return this.name}toString(){return this.name}}t.PrimitiveType=a;class o extends a{constructor(){super("boolean")}static getInstance(){return this.INSTANCE}}t.BooleanType=o,o.INSTANCE=new o;class s extends a{constructor(){super("number")}static getInstance(){return this.INSTANCE}}t.NumberType=s,s.INSTANCE=new s;class c extends a{constructor(){super("string")}static getInstance(){return this.INSTANCE}}t.StringType=c,c.INSTANCE=new c;class l extends a{static getInstance(){return this.INSTANCE}constructor(){super("null")}}t.NullType=l,l.INSTANCE=new l;class u extends a{static getInstance(){return this.INSTANCE}constructor(){super("undefined")}}t.UndefinedType=u,u.INSTANCE=new u;t.LiteralType=class extends a{constructor(e){super("literal"),this.literalName=e}getliteralName(){return this.literalName}toString(){return this.getName()+": "+this.literalName}};t.UnionType=class extends r{constructor(e,t=i.getInstance()){super(),this.types=[...e],this.currType=t}getTypes(){return this.types}getCurrType(){return this.currType}setCurrType(e){this.currType=e}toString(){let e=this.types.join("|");return this.currType instanceof i||this.currType==this||(e+="-"+this.currType),e}};class d extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"void"}}t.VoidType=d,d.INSTANCE=new d;class p extends r{static getInstance(){return this.INSTANCE}constructor(){super()}toString(){return"never"}}t.NeverType=p,p.INSTANCE=new p;t.CallableType=class extends r{constructor(e){super(),this.methodSignature=e}getMethodSignature(){return this.methodSignature}toString(){return this.methodSignature.toString()}};t.ClassType=class extends r{constructor(e){super(),this.classSignature=e}getClassSignature(){return this.classSignature}setClassSignature(e){this.classSignature=e}toString(){return this.classSignature.toString()}};class _ extends r{constructor(e,t){super(),this.baseType=e,this.dimension=t}getBaseType(){return this.baseType}setBaseType(e){this.baseType=e}getDimension(){return this.dimension}toString(){const e=[];this.baseType&&e.push(this.baseType.toString());for(let t=0;t[]"}};t.TupleType=class extends r{constructor(e){super(),this.types=e}getTypes(){return this.types}toString(){return"["+this.types.join(", ")+"]"}};class f extends r{constructor(e){super(),this.originalType=e}getOriginalType(){return this.originalType}toString(){return"alias: "+this.originalType}}t.AliasType=f;t.ClassAliasType=class extends f{constructor(e){super(e)}};t.TypeLiteralType=class extends r{constructor(){super(),this.members=[]}getMembers(){return this.members}setMembers(e){this.members=e}addMember(e){this.members.push(e)}toString(){let e=[];return this.members.forEach((t=>{e.push(t.getName().toString())})),"["+e.join(", ")+"]"}};class g extends r{constructor(e){super(),this.originType=e}getOriginType(){return this.originType}toString(){return this.originType}}t.AnnotationType=g;class m extends g{static getInstance(e){const t=new m(e.getNamespaceName());return t.setNamespaceSignature(e),t}getNamespaceSignature(){return this.namespaceSignature}setNamespaceSignature(e){this.namespaceSignature=e}constructor(e){super(e)}getOriginType(){return super.getOriginType()}}t.AnnotationNamespaceType=m;t.AnnotationTypeQueryType=class extends g{constructor(e){super(e)}}},3165:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkIRTransformer=void 0;const s=r(3532),c=r(3938),l=a(r(3221)),u=r(4576),d=r(9029),p=r(9803),_=r(3755),f=r(634),g=r(7125),m=o(r(7015)),h=r(6607),y=r(5482),v=r(8951),b=r(732),x=r(4567),D=r(2142),S=r(2454),T=r(3819),C=r(6356),E=r(2029),k=m.default.getLogger();t.ArkIRTransformer=class{constructor(e,t){this.tempLocalPrefix="$temp",this.tempLocalIndex=0,this.locals=new Map,this.inBuildMethod=!1,this.stmtToOriginalStmt=new Map,this.sourceFile=e,this.declaringMethod=t,this.thisLocal=new u.Local("this",t.getDeclaringArkClass().getSignature().getType()),this.locals.set(this.thisLocal.getName(),this.thisLocal),this.inBuildMethod=E.ModelUtils.isArkUIBuilderMethod(t)}getLocals(){return new Set(this.locals.values())}getThisLocal(){return this.thisLocal}getStmtToOriginalStmt(){return this.stmtToOriginalStmt}prebuildStmts(){const e=[];let t=0;for(const r of this.declaringMethod.getParameters()){const n=new c.ArkParameterRef(t,r.getType());e.push(new d.ArkAssignStmt(this.getOrCreatLocal(r.getName(),n.getType()),n)),t++}const r=new c.ArkThisRef(this.getThisLocal().getType());return e.push(new d.ArkAssignStmt(this.getThisLocal(),r)),e}tsNodeToStmts(e){let t=[];return l.isExpressionStatement(e)?t=this.expressionStatementToStmts(e):l.isBlock(e)?t=this.blockToStmts(e):l.isSwitchStatement(e)?t=this.switchStatementToStmts(e):l.isForStatement(e)?t=this.forStatementToStmts(e):l.isForInStatement(e)||l.isForOfStatement(e)?t=this.rangeForStatementToStmts(e):l.isWhileStatement(e)?t=this.whileStatementToStmts(e):l.isDoStatement(e)?t=this.doStatementToStmts(e):l.isVariableStatement(e)?t=this.variableStatementToStmts(e):l.isVariableDeclarationList(e)?t=this.variableDeclarationListToStmts(e):l.isIfStatement(e)?t=this.ifStatementToStmts(e):l.isBreakStatement(e)||l.isContinueStatement(e)?t=this.gotoStatementToStmts(e):l.isThrowStatement(e)?t=this.throwStatementToStmts(e):l.isCatchClause(e)?t=this.catchClauseToStmts(e):l.isReturnStatement(e)&&(t=this.returnStatementToStmts(e)),this.mapStmtsToTsStmt(t,e),t}returnStatementToStmts(e){const t=[];if(e.expression){let{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);t.push(...n),h.IRUtils.moreThanOneAddress(r)&&(({value:r,stmts:n}=this.generateAssignStmtForValue(r)),t.push(...n)),t.push(new d.ArkReturnStmt(r))}else t.push(new d.ArkReturnVoidStmt);return t}blockToStmts(e){const t=[];for(const r of e.statements)t.push(...this.tsNodeToStmts(r));return t}expressionStatementToStmts(e){const{value:t,stmts:r}=this.tsNodeToValueAndStmts(e.expression);if(t instanceof s.AbstractInvokeExpr){const e=new d.ArkInvokeStmt(t);r.push(e);let n=!1;for(const e of r)if(e instanceof d.ArkAssignStmt&&e.getRightOp()instanceof s.ArkStaticInvokeExpr){const t=e.getRightOp();if(t.getMethodSignature().getMethodSubSignature().getMethodName()===S.COMPONENT_REPEAT){const r=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_REPEAT,S.COMPONENT_CREATE_FUNCTION),i=new s.ArkStaticInvokeExpr(r,t.getArgs());e.setRightOp(i),n=!0}}if(n){const e=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_REPEAT,S.COMPONENT_POP_FUNCTION),t=new s.ArkStaticInvokeExpr(e,[]),n=new d.ArkInvokeStmt(t);r.push(n)}}else if(t instanceof s.ArkDeleteExpr){const{value:e,stmts:n}=this.generateAssignStmtForValue(t);r.push(...n)}return r}switchStatementToStmts(e){const t=[];let{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);if(t.push(...n),h.IRUtils.moreThanOneAddress(r)){const{value:e,stmts:n}=this.generateAssignStmtForValue(r);t.push(...n),r=e}const i=[];for(const n of e.caseBlock.clauses)if(l.isCaseClause(n)){let{value:n,stmts:a}=this.tsNodeToValueAndStmts(e.expression);if(t.push(...a),h.IRUtils.moreThanOneAddress(n)){const{value:e,stmts:i}=this.generateAssignStmtForValue(r);t.push(...i),n=e}i.push(n)}return t}forStatementToStmts(e){const t=[];if(e.initializer&&t.push(...this.tsNodeToValueAndStmts(e.initializer).stmts),e.condition){const{value:r,stmts:n}=this.conditionToValueAndStmts(e.condition);t.push(...n),t.push(new d.ArkIfStmt(r))}return e.incrementor&&t.push(...this.tsNodeToValueAndStmts(e.incrementor).stmts),t}rangeForStatementToStmts(e){const t=[],{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.initializer);t.push(...n);const{value:i,stmts:a}=this.tsNodeToValueAndStmts(e.expression);t.push(...a);const o=this.generateTempLocal(p.NumberType.getInstance());t.push(new d.ArkAssignStmt(o,new s.ArkLengthExpr(i)));const l=this.generateTempLocal(p.NumberType.getInstance());t.push(new d.ArkAssignStmt(l,f.ValueUtil.getOrCreateNumberConst(0)));const u=new s.ArkConditionExpr(l,o,">=");t.push(new d.ArkIfStmt(u));const _=new c.ArkArrayRef(i,l);t.push(new d.ArkAssignStmt(r,_));const g=new s.ArkBinopExpr(l,f.ValueUtil.getOrCreateNumberConst(1),"+");return t.push(new d.ArkAssignStmt(l,g)),t}whileStatementToStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkIfStmt(r)),t}doStatementToStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkIfStmt(r)),t}variableStatementToStmts(e){return this.variableDeclarationListToStmts(e.declarationList)}variableDeclarationListToStmts(e){return this.variableDeclarationListToValueAndStmts(e).stmts}ifStatementToStmts(e){const t=[];if(this.inBuildMethod){const{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression,!1);t.push(...n);const i=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_CREATE_FUNCTION),{value:a,stmts:o}=this.generateAssignStmtForValue(r);t.push(...o);const c=new s.ArkStaticInvokeExpr(i,[a]),{value:l,stmts:u}=this.generateAssignStmtForValue(c);t.push(...u);const p=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_BRANCH_FUNCTION),_=new s.ArkStaticInvokeExpr(p,[f.ValueUtil.getOrCreateNumberConst(0)]),g=new d.ArkInvokeStmt(_);if(t.push(g),t.push(...this.tsNodeToStmts(e.thenStatement)),e.elseStatement){const r=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_BRANCH_FUNCTION),n=new s.ArkStaticInvokeExpr(r,[f.ValueUtil.getOrCreateNumberConst(1)]),i=new d.ArkInvokeStmt(n);t.push(i),t.push(...this.tsNodeToStmts(e.elseStatement))}const m=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_IF,S.COMPONENT_POP_FUNCTION),h=new s.ArkStaticInvokeExpr(m,[]),y=new d.ArkInvokeStmt(h);t.push(y)}else{const{value:r,stmts:n}=this.conditionToValueAndStmts(e.expression);t.push(...n),t.push(new d.ArkIfStmt(r))}return t}gotoStatementToStmts(e){return[new d.ArkGotoStmt]}throwStatementToStmts(e){const t=[],{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.expression);return t.push(...n),t.push(new d.ArkThrowStmt(r)),t}catchClauseToStmts(e){const t=[];if(e.variableDeclaration){const{value:r,stmts:n}=this.tsNodeToValueAndStmts(e.variableDeclaration);t.push(...n);const i=new c.ArkCaughtExceptionRef(p.UnknownType.getInstance());t.push(new d.ArkAssignStmt(r,i))}return t}tsNodeToValueAndStmts(e){return l.isBinaryExpression(e)?this.binaryExpressionToValueAndStmts(e):l.isCallExpression(e)?this.callExpressionToValueAndStmts(e):l.isVariableDeclarationList(e)?this.variableDeclarationListToValueAndStmts(e):l.isIdentifier(e)?this.identifierToValueAndStmts(e):l.isPropertyAccessExpression(e)?this.propertyAccessExpressionToValue(e):l.isPrefixUnaryExpression(e)?this.prefixUnaryExpressionToValueAndStmts(e):l.isPostfixUnaryExpression(e)?this.postfixUnaryExpressionToValueAndStmts(e):l.isTemplateExpression(e)?this.templateExpressionToValueAndStmts(e):l.isAwaitExpression(e)?this.awaitExpressionToValueAndStmts(e):l.isDeleteExpression(e)?this.deleteExpressionToValueAndStmts(e):l.isVoidExpression(e)?this.voidExpressionToValueAndStmts(e):l.isElementAccessExpression(e)?this.elementAccessExpressionToValueAndStmts(e):l.isNewExpression(e)?this.newExpressionToValueAndStmts(e):l.isParenthesizedExpression(e)?this.parenthesizedExpressionToValueAndStmts(e):l.isAsExpression(e)?this.asExpressionToValueAndStmts(e):l.isNonNullExpression(e)?this.nonNullExpressionToValueAndStmts(e):l.isTypeAssertionExpression(e)?this.typeAssertionToValueAndStmts(e):l.isTypeOfExpression(e)?this.typeOfExpressionToValueAndStmts(e):l.isArrayLiteralExpression(e)?this.arrayLiteralExpressionToValueAndStmts(e):this.isLiteralNode(e)?this.literalNodeToValueAndStmts(e):l.isArrowFunction(e)||l.isFunctionExpression(e)?this.callableNodeToValueAndStmts(e):l.isClassExpression(e)?this.classExpressionToValueAndStmts(e):l.isEtsComponentExpression(e)?this.etsComponentExpressionToValueAndStmts(e):l.isObjectLiteralExpression(e)?this.objectLiteralExpresionToValueAndStmts(e):e.kind===l.SyntaxKind.ThisKeyword?this.thisExpressionToValueAndStmts(e):l.isConditionalExpression(e)?this.conditionalExpressionToValueAndStmts(e):{value:new u.Local(e.getText(this.sourceFile)),stmts:[]}}thisExpressionToValueAndStmts(e){return{value:this.getThisLocal(),stmts:[]}}conditionalExpressionToValueAndStmts(e){const t=[],{value:r,stmts:n}=this.conditionToValueAndStmts(e.condition);t.push(...n),t.push(new d.ArkIfStmt(r));const{value:i,stmts:a}=this.tsNodeToValueAndStmts(e.whenTrue);t.push(...a);const{value:o,stmts:s}=this.generateAssignStmtForValue(i);t.push(...s);const{value:c,stmts:l}=this.tsNodeToValueAndStmts(e.whenFalse);return t.push(...l),t.push(new d.ArkAssignStmt(o,c)),{value:o,stmts:t}}objectLiteralExpresionToValueAndStmts(e){return{value:(0,T.tsNode2Value)(e,this.sourceFile,this.declaringMethod.getDeclaringArkClass(),this.declaringMethod),stmts:[]}}createCustomViewStmt(e,t,r){const n=[],i=new g.ClassSignature;i.setClassName(e);const a=new p.ClassType(i),o=new s.ArkNewExpr(a),{value:c,stmts:u}=this.generateAssignStmtForValue(o);n.push(...u);const _=new g.MethodSubSignature;_.setMethodName("constructor");const f=new g.MethodSignature;f.setDeclaringClassSignature(i),f.setMethodSubSignature(_),n.push(new d.ArkInvokeStmt(new s.ArkInstanceInvokeExpr(c,f,t)));let m=[c];if(l.isEtsComponentExpression(r)&&r.body){const e=l.factory.createArrowFunction([],[],[],void 0,void 0,r.body);e.pos=r.body.pos,e.end=r.body.end;const{value:t,stmts:n}=this.callableNodeToValueAndStmts(e);m.push(t)}const h=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_CUSTOMVIEW,S.COMPONENT_CREATE_FUNCTION);let y=new s.ArkStaticInvokeExpr(h,m);const{value:v,stmts:b}=this.generateAssignStmtForValue(y);n.push(...b);const x=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(S.COMPONENT_CUSTOMVIEW,S.COMPONENT_POP_FUNCTION),T=new s.ArkStaticInvokeExpr(x,[]);return n.push(new d.ArkInvokeStmt(T)),{value:v,stmts:n}}etsComponentExpressionToValueAndStmts(e){const t=[],r=e.expression.text,n=[];for(const r of e.arguments){let{value:e,stmts:i}=this.tsNodeToValueAndStmts(r);t.push(...i),h.IRUtils.moreThanOneAddress(e)&&(({value:e,stmts:i}=this.generateAssignStmtForValue(e)),t.push(...i)),n.push(e)}if((0,S.isEtsSystemComponent)(r)){const i=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(r,S.COMPONENT_CREATE_FUNCTION),a=new s.ArkStaticInvokeExpr(i,n),{value:o,stmts:c}=this.generateAssignStmtForValue(a);if(t.push(...c),e.body)for(const r of e.body.statements)t.push(...this.tsNodeToStmts(r));const l=D.ArkSignatureBuilder.buildMethodSignatureFromClassNameAndMethodName(r,S.COMPONENT_POP_FUNCTION),u=new s.ArkStaticInvokeExpr(l,[]),p=new d.ArkInvokeStmt(u);return t.push(p),{value:o,stmts:t}}return this.createCustomViewStmt(r,n,e)}classExpressionToValueAndStmts(e){const t=this.declaringMethod.getDeclaringArkClass(),r=t.getDeclaringArkNamespace(),n=new x.ArkClass;if(r)(0,b.buildNormalArkClassFromArkNamespace)(e,r,n,this.sourceFile,this.declaringMethod),r.addArkClass(n);else{const r=t.getDeclaringArkFile();(0,b.buildNormalArkClassFromArkFile)(e,r,n,this.sourceFile,this.declaringMethod),r.addArkClass(n)}return{value:this.getOrCreatLocal(n.getName(),new p.ClassType(n.getSignature())),stmts:[]}}templateExpressionToValueAndStmts(e){const t=[],r=e.head,n=[f.ValueUtil.createStringConst(r.rawText?r.rawText:"")];for(const r of e.templateSpans){const{value:e,stmts:i}=this.tsNodeToValueAndStmts(r.expression);t.push(...t);const a=r.literal.rawText,o=a||"";n.push(e),n.push(f.ValueUtil.createStringConst(o))}let{value:i,stmts:a}=this.generateAssignStmtForValue(new s.ArkBinopExpr(n[0],n[1],"+"));t.push(...a);for(let e=2;e0){const t=this.resolveTypeNode(e.typeArguments[0]);t instanceof p.AnyType||t instanceof p.UnknownType||(r=t)}let n=0;const i=[];if(e.arguments&&e.arguments.length>0){n=e.arguments.length;for(const r of e.arguments){const{value:e,stmts:n}=this.tsNodeToValueAndStmts(r);i.push(e),t.push(...n)}}let a=f.ValueUtil.getOrCreateNumberConst(n);1===n?a=i[0]:n>1&&!(i[0].getType()instanceof p.AnyType||i[0].getType()instanceof p.UnknownType)&&(r=i[0].getType());const{value:o,stmts:l}=this.generateAssignStmtForValue(new s.ArkNewArrayExpr(r,a));if(t.push(...l),o.setType(new p.ArrayObjectType(r,1)),n>1)for(let e=0;e1&&(a=new p.UnionType(Array.from(r)));const o=new s.ArkNewArrayExpr(a,f.ValueUtil.getOrCreateNumberConst(i)),{value:l,stmts:u}=this.generateAssignStmtForValue(o);t.push(...u);for(let e=0;e"==e||">="==e||"=="==e||"==="==e||"!="==e||"!=="==e}flipOperator(e){let t="";switch(e){case"<":t=">=";break;case"<=":t=">";break;case">":t="<=";break;case">=":t="<";break;case"==":t="!=";break;case"===":t="!==";break;case"!=":t="==";break;case"!==":t="===";break;default:k.warn(`unsupported operator ${e} to flip`)}return t}resolveTypeNode(e){switch(e.kind){case l.SyntaxKind.BooleanKeyword:return p.BooleanType.getInstance();case l.SyntaxKind.NumberKeyword:return p.NumberType.getInstance();case l.SyntaxKind.StringKeyword:return p.StringType.getInstance();case l.SyntaxKind.UndefinedKeyword:return p.UndefinedType.getInstance();case l.SyntaxKind.NullKeyword:return p.NullType.getInstance();case l.SyntaxKind.AnyKeyword:return p.AnyType.getInstance();case l.SyntaxKind.VoidKeyword:return p.VoidType.getInstance();case l.SyntaxKind.NeverKeyword:return p.NeverType.getInstance();case l.SyntaxKind.TypeReference:return new p.UnclearReferenceType(e.getText(this.sourceFile));case l.SyntaxKind.ArrayType:return new p.ArrayType(this.resolveTypeNode(e.elementType),1);case l.SyntaxKind.TupleType:const t=[];return e.elements.forEach((e=>{t.push(this.resolveTypeNode(e))})),new p.TupleType(t)}return p.UnknownType.getInstance()}getTypeOfLiteralNode(e){let t;switch(e.kind){case l.SyntaxKind.NumericLiteral:case l.SyntaxKind.BigIntLiteral:t=p.NumberType.getInstance();break;case l.SyntaxKind.StringLiteral:case l.SyntaxKind.RegularExpressionLiteral:t=p.StringType.getInstance();break;case l.SyntaxKind.NullKeyword:t=p.NullType.getInstance();break;case l.SyntaxKind.UndefinedKeyword:t=p.UndefinedType.getInstance();break;case l.SyntaxKind.TrueKeyword:case l.SyntaxKind.FalseKeyword:t=p.BooleanType.getInstance();break;default:k.warn(`ast node's syntaxKind is ${l.SyntaxKind[e.kind]}, not literalNode`),t=p.UnknownType.getInstance()}return t}isLiteralNode(e){return!!(l.isStringLiteral(e)||l.isNumericLiteral(e)||l.isBigIntLiteral(e)||l.isRegularExpressionLiteral(e)||l.isNoSubstitutionTemplateLiteral(e)||e.kind===l.SyntaxKind.NullKeyword||e.kind===l.SyntaxKind.TrueKeyword||e.kind===l.SyntaxKind.FalseKeyword)}mapStmtsToTsStmt(e,t){const r=new d.Stmt;r.setText(t.getText(this.sourceFile));const n=C.LineColPosition.buildFromNode(t,this.sourceFile);r.setOriginPositionInfo(n),r.setPositionInfo(n);for(const t of e)-1===t.getOriginPositionInfo().getLineNo()&&(t.setOriginPositionInfo(r.getOriginPositionInfo()),this.stmtToOriginalStmt.set(t,r))}}},9020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BodyBuilder=void 0;const n=r(2939),i=r(1898);t.BodyBuilder=class{constructor(e,t,r,n){this.methodSignature=e,this.cfgBuilder=new i.CfgBuilder(t,this.methodSignature.getMethodSubSignature().getMethodName(),r,n)}build(){this.cfgBuilder.buildCfgBuilder();const{cfg:e,originalCfg:t,stmtToOriginalStmt:r,locals:i}=this.cfgBuilder.buildCfgAndOriginalCfg();return e.buildDefUseStmt(),new n.ArkBody(this.methodSignature,i,t,e,r)}}},1898:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CfgBuilder=void 0;const s=a(r(3221)),c=o(r(7015)),l=r(9029),u=r(7451),d=r(6624),p=r(3165),_=r(2029);c.default.getLogger();class f{constructor(e,t,r,n){this.passTmies=0,this.numOfIdentifier=0,this.isDoWhile=!1,this.type=e,this.code=t,this.next=null,this.lasts=new Set,this.walked=!1,this.index=0,this.line=-1,this.column=-1,this.astNode=r,this.scopeID=n,this.block=null,this.ifExitPass=!1}}class g extends f{constructor(e,t,r,n){super(e,t,r,n),this.doStatement=null,this.nextT=null,this.nextF=null,this.loopBlock=null,this.condition=""}}class m extends f{constructor(e,t,r,n){super(e,t,r,n),this.cases=[],this.default=null,this.nexts=[]}}class h extends f{constructor(e,t,r,n){super(e,t,r,n),this.tryFirst=null,this.tryExit=null,this.catchStatement=null,this.catchError="",this.finallyStatement=null}}class y{constructor(e,t){this.value=e,this.stmt=t}}class v{constructor(e,t,r){this.id=e,this.level=r,this.parent=null}}class b{constructor(e){this.walked=!1,this.stmts=e,this.nexts=new Set,this.lasts=new Set}}class x extends Error{constructor(e){super(e),this.name="textError"}}t.CfgBuilder=class{constructor(e,t,r,n){this.exits=[],this.name=t,this.astRoot=e,this.declaringMethod=r,this.declaringClass=r.getDeclaringArkClass(),this.entry=new f("entry","",e,0),this.loopStack=[],this.switchExitStack=[],this.functions=[],this.breakin="",this.statementArray=[],this.dotEdges=[],this.exit=new f("exit","return;",null,0),this.scopes=[],this.scopeLevel=0,this.tempVariableNum=0,this.current3ACstm=this.entry,this.blocks=[],this.entryBlock=new b([this.entry]),this.exitBlock=new b([this.entry]),this.currentDeclarationKeyword="",this.variables=[],this.importFromPath=[],this.catches=[],this.sourceFile=n}walkAST(e,t,r){var n,i,a,o,c,l,u,d,p,_,b,x;function D(t){if("ifStatement"==e.type){let r=e;null==r.nextT?(r.nextT=t,t.lasts.add(r)):(r.nextF=t,t.lasts.add(r))}else if("loopStatement"==e.type){let r=e;r.nextT=t,t.lasts.add(r)}else if("catchOrNot"==e.type){let r=e;r.nextT=t,t.lasts.add(r)}else e.next=t,t.lasts.add(e)}this.scopeLevel++;let S=new v(this.scopes.length,new Set,this.scopeLevel);for(let e=this.scopes.length-1;e>=0;e--)if(this.scopes[e].level==this.scopeLevel-1){S.parent=this.scopes[e];break}this.scopes.push(S);for(let t=0;t0){let e=new f("statement","finally",v,S.id),r=new f("finally exit","",v,S.id);this.walkAST(e,r,[...v.finallyBlock.statements]),t.finallyStatement=e.next,null===(x=e.next)||void 0===x||x.lasts.add(t)}e=t}}this.scopeLevel--,"breakStatement"!=e.type&&"continueStatement"!=e.type&&(e.next=t,t.lasts.add(e))}addReturnInEmptyMethod(){if(this.entry.next==this.exit){const e=new f("returnStatement","return;",null,this.entry.scopeID);this.entry.next=e,e.lasts.add(this.entry),e.next=this.exit,this.exit.lasts=new Set([e])}}deleteExit(){for(const e of this.exits)for(const t of[...e.lasts])if(t instanceof g){if(t.nextT==e){t.nextT=e.next;const r=[...e.next.lasts];r[r.indexOf(e)]=t,e.next.lasts=new Set(r)}else if(t.nextF==e){t.nextF=e.next;const r=[...e.next.lasts];r[r.indexOf(e)]=t,e.next.lasts=new Set(r)}}else if(t instanceof m)for(let r=0;r0;){let r=e.pop();if(r.type.includes("exit"))continue;if(t.has(r))continue;const n=new b([]);for(this.blocks.push(n);r&&!t.has(r);){if("loopStatement"==r.type&&n.stmts.length>0){e.push(r);break}if(n.stmts.push(r),r.block=n,t.add(r),r instanceof g){t.has(r.nextF)||e.push(r.nextF),t.has(r.nextT)||e.push(r.nextT);break}if(r instanceof m){for(const t of r.cases)e.push(t.stmt);r.default&&e.push(r.default);break}if(r instanceof h){r.next&&e.push(r.next),r.finallyStatement&&e.push(r.finallyStatement),r.catchStatement&&e.push(r.catchStatement),r.tryFirst&&e.push(r.tryFirst);break}if(r.next){if(("continueStatement"==r.type||"loopStatement"==r.next.type)&&r.next.block)break;if(r.next.type.includes("exit"))break;if(r.next.passTmies++,r.next.passTmies==r.next.lasts.size||"loopStatement"==r.next.type||r.next.isDoWhile){if(r.next.scopeID!=r.scopeID&&!(r.next instanceof g&&r.next.doStatement)){e.push(r.next);break}r=r.next}}}}}buildBlocksNextLast(){var e,t,r,n,i,a;for(let o of this.blocks)for(let s of o.stmts){let c=o.stmts.indexOf(s)==o.stmts.length-1;if(s instanceof g){let i=null===(e=s.nextT)||void 0===e?void 0:e.block;!i||!c&&i==o||(null===(t=s.nextT)||void 0===t?void 0:t.type.includes(" exit"))||(o.nexts.add(i),i.lasts.add(o));let a=null===(r=s.nextF)||void 0===r?void 0:r.block;!a||!c&&a==o||(null===(n=s.nextF)||void 0===n?void 0:n.type.includes(" exit"))||(o.nexts.add(a),a.lasts.add(o))}else if(s instanceof m){for(const e of s.cases){const t=e.stmt.block;!t||!c&&t==o||e.stmt.type.includes(" exit")||(o.nexts.add(t),t.lasts.add(o))}if(s.default){const e=s.default.block;!e||!c&&e==o||s.default.type.includes(" exit")||(o.nexts.add(e),e.lasts.add(o))}}else{let e=null===(i=s.next)||void 0===i?void 0:i.block;!e||!c&&e==o||(null===(a=s.next)||void 0===a?void 0:a.type.includes(" exit"))||(o.nexts.add(e),e.lasts.add(o))}}}addReturnBlock(){var e,t;let r=[];for(let e of[...this.exit.lasts])"returnStatement"!=e.type&&r.push(e);if(r.length<1)return;const n=new f("returnStatement","return;",null,this.exit.scopeID);if(1!=r.length||r[0]instanceof g){let e=new b([n]);n.block=e,this.blocks.push(e);for(const i of r){i.next=n,n.lasts.add(i),n.next=this.exit;const r=[...this.exit.lasts];r[r.indexOf(i)]=n,this.exit.lasts=new Set(r),null===(t=i.block)||void 0===t||t.nexts.add(e)}}else{const t=r[0];t.next=n,n.lasts=new Set([t]),n.next=this.exit;const i=[...this.exit.lasts];i[i.indexOf(t)]=n,this.exit.lasts=new Set(i),null===(e=t.block)||void 0===e||e.stmts.push(n),n.block=t.block}}resetWalked(){for(let e of this.statementArray)e.walked=!1}addStmtBuilderPosition(){for(const e of this.statementArray)if(e.astNode){const{line:t,character:r}=s.getLineAndCharacterOfPosition(this.sourceFile,e.astNode.getStart(this.sourceFile));e.line=t+1,e.column=r+1}}CfgBuilder2Array(e){if(!e.walked)if(e.walked=!0,e.index=this.statementArray.length,e.type.includes(" exit")||this.statementArray.push(e),"ifStatement"==e.type||"loopStatement"==e.type||"catchOrNot"==e.type){let t=e;if(null==t.nextT||null==t.nextF)return void this.errorTest(t);this.CfgBuilder2Array(t.nextF),this.CfgBuilder2Array(t.nextT)}else if("switchStatement"==e.type){let t=e;for(let e of t.nexts)this.CfgBuilder2Array(e)}else if("tryStatement"==e.type){let t=e;t.tryFirst&&this.CfgBuilder2Array(t.tryFirst),t.catchStatement&&this.CfgBuilder2Array(t.catchStatement),t.finallyStatement&&this.CfgBuilder2Array(t.finallyStatement),t.next&&this.CfgBuilder2Array(t.next)}else null!=e.next&&this.CfgBuilder2Array(e.next)}getDotEdges(e){if(0==this.statementArray.length&&this.CfgBuilder2Array(this.entry),!e.walked)if(e.walked=!0,"ifStatement"==e.type||"loopStatement"==e.type||"catchOrNot"==e.type){let t=e;if(null==t.nextT||null==t.nextF)return void this.errorTest(t);let r=[t.index,t.nextF.index];this.dotEdges.push(r),r=[t.index,t.nextT.index],this.dotEdges.push(r),this.getDotEdges(t.nextF),this.getDotEdges(t.nextT)}else if("switchStatement"==e.type){let t=e;for(let e of t.nexts){let r=[t.index,e.index];this.dotEdges.push(r),this.getDotEdges(e)}}else if(null!=e.next){let t=[e.index,e.next.index];this.dotEdges.push(t),this.getDotEdges(e.next)}}errorTest(e){var t,r;let n="ifnext error ";throw(null===(t=this.declaringClass)||void 0===t?void 0:t.getDeclaringArkFile())&&(n+=(null===(r=this.declaringClass)||void 0===r?void 0:r.getDeclaringArkFile().getName())+"."+this.declaringClass.getName()+"."+this.name),n+="\n"+e.code,new x(n)}getStatementByText(e){const t=[];for(let r of this.statementArray)r.code.replace(/\s/g,"")==e.replace(/\s/g,"")&&t.push(r);return t}printBlocks(){var e,t,r,n,i,a,o;let s="";(null===(e=this.declaringClass)||void 0===e?void 0:e.getDeclaringArkFile())&&(s+=this.declaringClass.getDeclaringArkFile().getName()+"\n");for(let e=0;e0!=e.stmts.length)),this.buildBlocksNextLast(),this.addReturnBlock(),this.resetWalked()}handleBuilder(e){let t=this.entry;for(const r of e){const e=new f("statement",r.getText(this.sourceFile),r,0);t.next=e,e.lasts.add(t),t=e}t.next=this.exit,this.exit.lasts.add(t)}buildCfgAndOriginalCfg(){const e=new d.Cfg,t=new Map;let r=!0;const n=[],i=new Set,a=new p.ArkIRTransformer(this.sourceFile,this.declaringMethod),o=a.getStmtToOriginalStmt();for(let s=0;s{"use strict";function r(e){return t.BUILDIN_ATOMIC_COMPONENT.has(e)}function n(e){return t.BUILDIN_SYSTEM_COMPONENT.has(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.SPECIAL_CONTAINER_COMPONENT=t.COMPONENT_BUILD_FUNCTION=t.COMPONENT_BRANCH_FUNCTION=t.COMPONENT_IF_BRANCH=t.COMPONENT_IF=t.COMPONENT_REPEAT=t.COMPONENT_CUSTOMVIEW=t.COMPONENT_POP_FUNCTION=t.COMPONENT_CREATE_FUNCTION=t.isEtsContainerComponent=t.isEtsSystemComponent=t.isEtsAtomicComponent=t.BUILDER_PARAM_DECORATOR=t.BUILDER_DECORATOR=t.ENTRY_DECORATOR=t.COMPONENT_DECORATOR=t.BUILDIN_ATOMIC_COMPONENT=t.BUILDIN_SYSTEM_COMPONENT=t.ETS_COMPILER_OPTIONS=void 0,t.ETS_COMPILER_OPTIONS={ets:{emitDecorators:[{name:"Entry",emitParameters:!0},{name:"Component",emitParameters:!1},{name:"Reusable",emitParameters:!1},{name:"CustomDialog",emitParameters:!1},{name:"Consume",emitParameters:!0},{name:"Link",emitParameters:!1},{name:"LocalStorageLink",emitParameters:!0},{name:"LocalStorageProp",emitParameters:!0},{name:"ObjectLink",emitParameters:!1},{name:"Prop",emitParameters:!1},{name:"Provide",emitParameters:!0},{name:"State",emitParameters:!1},{name:"StorageLink",emitParameters:!0},{name:"StorageProp",emitParameters:!0},{name:"Builder",emitParameters:!1},{name:"BuilderParam",emitParameters:!1},{name:"Observed",emitParameters:!1},{name:"Require",emitParameters:!1},{name:"Sendable",emitParameters:!1}],propertyDecorators:[{name:"Link",needInitialization:!1},{name:"Prop",needInitialization:!1},{name:"ObjectLink",needInitialization:!1},{name:"Consume",needInitialization:!1}],render:{method:["build","pageTransition"],decorator:"Builder"},components:["AbilityComponent","AlphabetIndexer","Animator","Badge","Blank","Button","Calendar","CalendarPicker","Camera","Canvas","Checkbox","CheckboxGroup","Circle","ColorPicker","ColorPickerDialog","Column","ColumnSplit","ContentSlot","Counter","DataPanel","DatePicker","Divider","EffectComponent","Ellipse","EmbeddedComponent","Flex","FolderStack","FormComponent","FormLink","FrictionMotion","Gauge","GeometryView","Grid","GridCol","GridContainer","GridItem","GridRow","Hyperlink","Image","ImageAnimator","Line","List","ListItem","ListItemGroup","LoadingProgress","Marquee","MediaCachedImage","Menu","MenuItem","MenuItemGroup","NavDestination","NavRouter","Navigation","Navigator","NodeContainer","Option","PageTransitionEnter","PageTransitionExit","Panel","Particle","Path","PatternLock","Piece","PluginComponent","Polygon","Polyline","Progress","QRCode","Radio","Rating","Rect","Refresh","RelativeContainer","RemoteWindow","RootScene","Row","RowSplit","RichText","Screen","Scroll","ScrollBar","ScrollMotion","Search","Section","Select","Shape","Sheet","SideBarContainer","Slider","Span","Stack","Stepper","StepperItem","Swiper","TabContent","Tabs","Text","TextPicker","TextClock","TextArea","TextInput","TextTimer","TimePicker","Toggle","Video","Web","WindowScene","WithTheme","XComponent","WaterFlow","FlowItem","ImageSpan","LocationButton","PasteButton","SaveButton","SpringMotion","SpringProp","SymbolSpan","SymbolGlyph","UIExtensionComponent","RichEditor","Component3D","ContainerSpan","ForEach","LazyForEach"],extend:{decorator:["Extend","AnimatableExtend"],components:[{name:"AbilityComponent",type:"AbilityComponentAttribute",instance:"AbilityComponentInstance"},{name:"AlphabetIndexer",type:"AlphabetIndexerAttribute",instance:"AlphabetIndexerInstance"},{name:"Animator",type:"AnimatorAttribute",instance:"AnimatorInstance"},{name:"Badge",type:"BadgeAttribute",instance:"BadgeInstance"},{name:"Blank",type:"BlankAttribute",instance:"BlankInstance"},{name:"Button",type:"ButtonAttribute",instance:"ButtonInstance"},{name:"Calendar",type:"CalendarAttribute",instance:"CalendarInstance"},{name:"CalendarPicker",type:"CalendarPickerAttribute",instance:"CalendarPickerInstance"},{name:"Camera",type:"CameraAttribute",instance:"CameraInstance"},{name:"Canvas",type:"CanvasAttribute",instance:"CanvasInstance"},{name:"Checkbox",type:"CheckboxAttribute",instance:"CheckboxInstance"},{name:"CheckboxGroup",type:"CheckboxGroupAttribute",instance:"CheckboxGroupInstance"},{name:"Circle",type:"CircleAttribute",instance:"CircleInstance"},{name:"ColorPicker",type:"ColorPickerAttribute",instance:"ColorPickerInstance"},{name:"ColorPickerDialog",type:"ColorPickerDialogAttribute",instance:"ColorPickerDialogInstance"},{name:"Column",type:"ColumnAttribute",instance:"ColumnInstance"},{name:"ColumnSplit",type:"ColumnSplitAttribute",instance:"ColumnSplitInstance"},{name:"Counter",type:"CounterAttribute",instance:"CounterInstance"},{name:"DataPanel",type:"DataPanelAttribute",instance:"DataPanelInstance"},{name:"DatePicker",type:"DatePickerAttribute",instance:"DatePickerInstance"},{name:"Divider",type:"DividerAttribute",instance:"DividerInstance"},{name:"EffectComponent",type:"EffectComponentAttribute",instance:"EffectComponentInstance"},{name:"Ellipse",type:"EllipseAttribute",instance:"EllipseInstance"},{name:"EmbeddedComponent",type:"EmbeddedComponentAttribute",instance:"EmbeddedComponentInstance"},{name:"Flex",type:"FlexAttribute",instance:"FlexInstance"},{name:"FormComponent",type:"FormComponentAttribute",instance:"FormComponentInstance"},{name:"Gauge",type:"GaugeAttribute",instance:"GaugeInstance"},{name:"GeometryView",type:"GeometryViewAttribute",instance:"GeometryViewInstance"},{name:"Grid",type:"GridAttribute",instance:"GridInstance"},{name:"GridItem",type:"GridItemAttribute",instance:"GridItemInstance"},{name:"GridContainer",type:"GridContainerAttribute",instance:"GridContainerInstance"},{name:"Hyperlink",type:"HyperlinkAttribute",instance:"HyperlinkInstance"},{name:"Image",type:"ImageAttribute",instance:"ImageInstance"},{name:"ImageAnimator",type:"ImageAnimatorAttribute",instance:"ImageAnimatorInstance"},{name:"Line",type:"LineAttribute",instance:"LineInstance"},{name:"List",type:"ListAttribute",instance:"ListInstance"},{name:"ListItem",type:"ListItemAttribute",instance:"ListItemInstance"},{name:"ListItemGroup",type:"ListItemGroupAttribute",instance:"ListItemGroupInstance"},{name:"LoadingProgress",type:"LoadingProgressAttribute",instance:"LoadingProgressInstance"},{name:"Marquee",type:"MarqueeAttribute",instance:"MarqueeInstance"},{name:"MediaCachedImage",type:"MediaCachedImageAttribute",instance:"MediaCachedImageInstance"},{name:"Menu",type:"MenuAttribute",instance:"MenuInstance"},{name:"MenuItem",type:"MenuItemAttribute",instance:"MenuItemInstance"},{name:"MenuItemGroup",type:"MenuItemGroupAttribute",instance:"MenuItemGroupInstance"},{name:"NavDestination",type:"NavDestinationAttribute",instance:"NavDestinationInstance"},{name:"NavRouter",type:"NavRouterAttribute",instance:"NavRouterInstance"},{name:"Navigation",type:"NavigationAttribute",instance:"NavigationInstance"},{name:"Navigator",type:"NavigatorAttribute",instance:"NavigatorInstance"},{name:"Option",type:"OptionAttribute",instance:"OptionInstance"},{name:"PageTransitionEnter",type:"PageTransitionEnterAttribute",instance:"PageTransitionEnterInstance"},{name:"PageTransitionExit",type:"PageTransitionExitAttribute",instance:"PageTransitionExitInstance"},{name:"Panel",type:"PanelAttribute",instance:"PanelInstance"},{name:"Path",type:"PathAttribute",instance:"PathInstance"},{name:"PatternLock",type:"PatternLockAttribute",instance:"PatternLockInstance"},{name:"Piece",type:"PieceAttribute",instance:"PieceInstance"},{name:"PluginComponent",type:"PluginComponentAttribute",instance:"PluginComponentInstance"},{name:"Polygon",type:"PolygonAttribute",instance:"PolygonInstance"},{name:"Polyline",type:"PolylineAttribute",instance:"PolylineInstance"},{name:"Progress",type:"ProgressAttribute",instance:"ProgressInstance"},{name:"QRCode",type:"QRCodeAttribute",instance:"QRCodeInstance"},{name:"Radio",type:"RadioAttribute",instance:"RadioInstance"},{name:"Rating",type:"RatingAttribute",instance:"RatingInstance"},{name:"Rect",type:"RectAttribute",instance:"RectInstance"},{name:"RelativeContainer",type:"RelativeContainerAttribute",instance:"RelativeContainerInstance"},{name:"Refresh",type:"RefreshAttribute",instance:"RefreshInstance"},{name:"RemoteWindow",type:"RemoteWindowAttribute",instance:"RemoteWindowInstance"},{name:"RootScene",type:"RootSceneAttribute",instance:"RootSceneInstance"},{name:"Row",type:"RowAttribute",instance:"RowInstance"},{name:"RowSplit",type:"RowSplitAttribute",instance:"RowSplitInstance"},{name:"RichText",type:"RichTextAttribute",instance:"RichTextInstance"},{name:"Screen",type:"ScreenAttribute",instance:"ScreenInstance"},{name:"Scroll",type:"ScrollAttribute",instance:"ScrollInstance"},{name:"ScrollBar",type:"ScrollBarAttribute",instance:"ScrollBarInstance"},{name:"Search",type:"SearchAttribute",instance:"SearchInstance"},{name:"Section",type:"SectionAttribute",instance:"SectionInstance"},{name:"Select",type:"SelectAttribute",instance:"SelectInstance"},{name:"Shape",type:"ShapeAttribute",instance:"ShapeInstance"},{name:"Sheet",type:"SheetAttribute",instance:"SheetInstance"},{name:"SideBarContainer",type:"SideBarContainerAttribute",instance:"SideBarContainerInstance"},{name:"Slider",type:"SliderAttribute",instance:"SliderInstance"},{name:"Span",type:"SpanAttribute",instance:"SpanInstance"},{name:"Stack",type:"StackAttribute",instance:"StackInstance"},{name:"Stepper",type:"StepperAttribute",instance:"StepperInstance"},{name:"StepperItem",type:"StepperItemAttribute",instance:"StepperItemInstance"},{name:"Swiper",type:"SwiperAttribute",instance:"SwiperInstance"},{name:"TabContent",type:"TabContentAttribute",instance:"TabContentInstance"},{name:"Tabs",type:"TabsAttribute",instance:"TabsInstance"},{name:"Text",type:"TextAttribute",instance:"TextInstance"},{name:"TextPicker",type:"TextPickerAttribute",instance:"TextPickerInstance"},{name:"TextClock",type:"TextClockAttribute",instance:"TextClockInstance"},{name:"TextArea",type:"TextAreaAttribute",instance:"TextAreaInstance"},{name:"TextInput",type:"TextInputAttribute",instance:"TextInputInstance"},{name:"TextTimer",type:"TextTimerAttribute",instance:"TextTimerInstance"},{name:"TimePicker",type:"TimePickerAttribute",instance:"TimePickerInstance"},{name:"Toggle",type:"ToggleAttribute",instance:"ToggleInstance"},{name:"Video",type:"VideoAttribute",instance:"VideoInstance"},{name:"Web",type:"WebAttribute",instance:"WebInstance"},{name:"WindowScene",type:"WindowSceneAttribute",instance:"WindowSceneInstance"},{name:"XComponent",type:"XComponentAttribute",instance:"XComponentInstance"},{name:"GridRow",type:"GridRowAttribute",instance:"GridRowInstance"},{name:"GridCol",type:"GridColAttribute",instance:"GridColInstance"},{name:"WaterFlow",type:"WaterFlowAttribute",instance:"WaterFlowInstance"},{name:"FlowItem",type:"FlowItemAttribute",instance:"FlowItemInstance"},{name:"ImageSpan",type:"ImageSpanAttribute",instance:"ImageSpanInstance"},{name:"LocationButton",type:"LocationButtonAttribute",instance:"LocationButtonInstance"},{name:"PasteButton",type:"PasteButtonAttribute",instance:"PasteButtonInstance"},{name:"SaveButton",type:"SaveButtonAttribute",instance:"SaveButtonInstance"},{name:"UIExtensionComponent",type:"UIExtensionComponentAttribute",instance:"UIExtensionComponentInstance"},{name:"RichEditor",type:"RichEditorAttribute",instance:"RichEditorInstance"},{name:"Component3D",type:"Component3DAttribute",instance:"Component3DInstance"},{name:"ContainerSpan",type:"ContainerSpanAttribute",instance:"ContainerSpanInstance"}]},styles:{decorator:"Styles",component:{name:"Common",type:"T",instance:"CommonInstance"},property:"stateStyles"},concurrent:{decorator:"Concurrent"},customComponent:"CustomComponent",libs:[]}},t.BUILDIN_SYSTEM_COMPONENT=new Set(t.ETS_COMPILER_OPTIONS.ets.components),t.BUILDIN_ATOMIC_COMPONENT=new Set(["AbilityComponent","AlphabetIndexer","Animator","Blank","CalendarPicker","Camera","Circle","Component3D","ContentSlot","Divider","Ellipse","EmbeddedComponent","FormComponent","FrictionMotion","GeometryView","Image","ImageAnimator","ImageSpan","Line","LoadingProgress","LocationButton","Marquee","MediaCachedImage","NodeContainer","PageTransitionEnter","PageTransitionExit","Particle","PasteButton","Path","PatternLock","Polygon","Polyline","Progress","Radio","Rect","RemoteWindow","RichEditor","RichText","SaveButton","ScrollMotion","Search","Slider","Span","SpringMotion","SpringProp","SymbolSpan","SymbolGlyph","TextArea","TextInput","UIExtensionComponent","Video","Web"]),t.COMPONENT_DECORATOR=new Set(["Reusable","Component","ComponentV2","CustomDialog"]),t.ENTRY_DECORATOR="Entry",t.BUILDER_DECORATOR="Builder",t.BUILDER_PARAM_DECORATOR="BuilderParam",t.isEtsAtomicComponent=r,t.isEtsSystemComponent=n,t.isEtsContainerComponent=function(e){return n(e)&&!r(e)},t.COMPONENT_CREATE_FUNCTION="create",t.COMPONENT_POP_FUNCTION="pop",t.COMPONENT_CUSTOMVIEW="View",t.COMPONENT_REPEAT="Repeat",t.COMPONENT_IF="If",t.COMPONENT_IF_BRANCH="IfBranch",t.COMPONENT_BRANCH_FUNCTION="branch",t.COMPONENT_BUILD_FUNCTION="build",t.SPECIAL_CONTAINER_COMPONENT=new Set([t.COMPONENT_IF,t.COMPONENT_IF_BRANCH,t.COMPONENT_CUSTOMVIEW,t.COMPONENT_REPEAT])},4287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExprUseReplacer=void 0;const n=r(3532);t.ExprUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseExpr(e){e instanceof n.ArkBinopExpr?this.caseBinopExpr(e):e instanceof n.AbstractInvokeExpr?this.caseInvokeExpr(e):e instanceof n.ArkNewArrayExpr?this.caseNewArrayExpr(e):e instanceof n.ArkTypeOfExpr?this.caseTypeOfExpr(e):e instanceof n.ArkInstanceOfExpr?this.caseInstanceOfExpr(e):e instanceof n.ArkLengthExpr?this.caseLengthExpr(e):e instanceof n.ArkCastExpr&&this.caseCastExpr(e)}caseBinopExpr(e){e.getOp1()==this.oldUse&&e.setOp1(this.newUse),e.getOp2()==this.oldUse&&e.setOp2(this.newUse)}caseInvokeExpr(e){let t=e.getArgs();for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRUtils=void 0;const n=r(3532),i=r(3938);t.IRUtils=class{static moreThanOneAddress(e){return e instanceof n.ArkBinopExpr||e instanceof n.AbstractInvokeExpr||e instanceof i.AbstractFieldRef||e instanceof i.ArkArrayRef||e instanceof n.ArkCastExpr||e instanceof n.ArkUnopExpr}}},2029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModelUtils=void 0;const n=r(7125);t.ModelUtils=class{static getMethodSignatureFromArkClass(e,t){for(const r of e.getMethods())if(r.getName()==t)return r.getSignature();return null}static getClassWithNameInNamespaceRecursively(e,t){if(""==e)return null;let r=null;if(r=t.getClassWithName(e),null==r){let n=t.getDeclaringArkNamespace();r=null!=n?this.getClassWithNameInNamespaceRecursively(e,n):this.getClassInFileWithName(e,t.getDeclaringArkFile())}return r}static getClassWithNameFromClass(e,t){if(!e.includes(".")){let r=null;const n=t.getDeclaringArkNamespace();return r=n?this.getClassWithNameInNamespaceRecursively(e,n):this.getClassInFileWithName(e,t.getDeclaringArkFile()),r}{const r=e.split(".");let n=this.getNamespaceWithNameFromClass(r[0],t);for(let e=1;e"_DEFAULT_ARK_CLASS"==e.getName()))||null;if(r){let t=r.getMethodWithName(e);if(t)return t}return null}static getStaticMethodInImportInfoWithName(e,t){let r=this.getTypeSignatureInImportInfoWithName(e,t);return r?t.getScene().getMethod(r):null}static getLocalInImportInfoWithName(e,t){let r=this.getTypeSignatureInImportInfoWithName(e,t);return r||null}static getAllNamespacesInFile(e){const t=e.getNamespaces();for(const r of e.getNamespaces())this.getAllNamespacesInNamespace(r,t);return t}static getAllNamespacesInNamespace(e,t){t.push(...e.getNamespaces());for(const r of e.getNamespaces())this.getAllNamespacesInNamespace(r,t)}static getAllClassesInFile(e){const t=e.getClasses();return this.getAllNamespacesInFile(e).forEach((e=>{t.push(...e.getClasses())})),t}static getAllMethodsInFile(e){const t=[];return this.getAllClassesInFile(e).forEach((e=>{t.push(...e.getMethods())})),t}static isArkUIBuilderMethod(e){let t=e.hasBuilderDecorator();if(!t&&"build"==e.getName()){e.getDeclaringArkClass().getDeclaringArkFile().getName().endsWith(".ets")&&(t=!0)}return t}static getClass(e,t){var r,i;let a=e.getDeclaringArkFile().getScene().getClass(t);if(a)return a;let o=null===(r=e.getDeclaringArkFile().getImportInfoBy(t.getClassName()))||void 0===r?void 0:r.getLazyExportInfo(),s=null==o?void 0:o.getTypeSignature();if(s instanceof n.ClassSignature){let t=e.getDeclaringArkFile().getScene().getClass(s);if(t)return t}if(a=null===(i=e.getDeclaringArkClass().getDeclaringArkNamespace())||void 0===i?void 0:i.getClassWithName(t.getClassName()),a)return a;for(const r of e.getDeclaringArkFile().getAllNamespacesUnderThisFile())if(a=r.getClassWithName(t.getClassName()),a)return a;return e.getDeclaringArkFile().getClassWithName(t.getClassName())}}},2857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefUseReplacer=void 0;const n=r(3938);t.RefUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseRef(e){e instanceof n.ArkInstanceFieldRef?this.caseFieldRef(e):e instanceof n.ArkArrayRef&&this.caseArrayRef(e)}caseFieldRef(e){e.getBase()==this.oldUse&&e.setBase(this.newUse)}caseArrayRef(e){e.getBase()==this.oldUse?e.setBase(this.newUse):e.getIndex()==this.oldUse&&e.setIndex(this.newUse)}}},8420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StmtUseReplacer=void 0;const n=r(3532),i=r(4576),a=r(3938),o=r(9029),s=r(4287),c=r(2857);t.StmtUseReplacer=class{constructor(e,t){this.oldUse=e,this.newUse=t}caseStmt(e){e instanceof o.ArkAssignStmt?this.caseAssignStmt(e):e instanceof o.ArkInvokeStmt?this.caseInvokeStmt(e):e instanceof o.ArkReturnStmt?this.caseReturnStmt(e):e instanceof o.ArkIfStmt&&this.caseIfStmt(e)}caseAssignStmt(e){let t=e.getRightOp();if(t==this.oldUse)e.setRightOp(this.newUse);else if(t instanceof i.Local)t==this.oldUse&&e.setRightOp(this.newUse);else if(t instanceof a.AbstractRef)if(t==this.oldUse)e.setRightOp(this.newUse);else{new c.RefUseReplacer(this.oldUse,this.newUse).caseRef(t)}else if(t instanceof n.AbstractExpr)if(t==this.oldUse)e.setRightOp(this.newUse);else{new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(t)}}caseInvokeStmt(e){new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(e.getInvokeExpr())}caseReturnStmt(e){e.setReturnValue(this.newUse)}caseIfStmt(e){new s.ExprUseReplacer(this.oldUse,this.newUse).caseExpr(e.getConditionExprExpr())}}},8596:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeInference=void 0;const i=n(r(7015)),a=r(3532),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=r(7125),d=r(2029),p=i.default.getLogger();class _{static inferTypeInArkField(e){var t;e.getInitializer()&&this.inferValueType(e.getInitializer(),e.getDeclaringClass());const r=e.getType();let n;n=r||"EnumMember"!==e.getFieldType()?this.inferDeclaredType(r,e.getDeclaringClass(),e.getInitializer()):new l.ClassType(e.getDeclaringClass().getSignature()),n?(e.setType(n),e.getSignature().setType(n)):this.isUnclearType(r)&&!this.isUnclearType(null===(t=e.getInitializer())||void 0===t?void 0:t.getType())&&(n=e.getInitializer().getType(),e.setType(n),e.getSignature().setType(n))}static inferDeclaredType(e,t,r){let n;if(e instanceof l.AnnotationNamespaceType)n=this.inferUnclearReferenceType(e.getOriginType(),t);else if(e instanceof l.UnionType){if(this.inferSubTypes(e.getTypes(),t),r)for(const t of e.getTypes())if(typeof t==typeof r.getType()){e.setCurrType(r.getType()),n=e;break}}else if(e instanceof l.UnclearReferenceType)this.inferSubTypes(e.getGenericTypes(),t),n=this.inferUnclearReferenceType(e.getName(),t);else if(e instanceof l.ArrayType&&e.getBaseType()instanceof l.UnclearReferenceType){let r=this.inferUnclearReferenceType(e.getBaseType().getName(),t);r&&(e.setBaseType(r),n=e)}return n}static inferSubTypes(e,t){if(e)for(let r=0;r/,""),n=d.ModelUtils.getTypeSignatureInImportInfoWithName(r,t.getDeclaringArkFile()),i=this.parseSignature2Type(n);if(i)return i;const a=r.split(".");let o=this.inferBaseType(a[0],t);for(let e=1;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueUtil=void 0;const n=r(3755),i=r(9803);class a{static getOrCreateNumberConst(e){let t=this.NumberConstantCache.get(e);return null==t&&(t=new n.Constant(e.toString(),i.NumberType.getInstance()),this.NumberConstantCache.set(e,t)),t}static createStringConst(e){return new n.Constant(e,i.StringType.getInstance())}static getUndefinedConst(){return this.UndefinedConstant}static getNullConstant(){return this.NullConstant}static getBooleanConstant(e){return e?this.TrueConstant:this.FalseConstant}}t.ValueUtil=a,a.NumberConstantCache=new Map([[0,new n.Constant("0",i.NumberType.getInstance())],[1,new n.Constant("1",i.NumberType.getInstance())],[2,new n.Constant("2",i.NumberType.getInstance())],[3,new n.Constant("3",i.NumberType.getInstance())],[4,new n.Constant("4",i.NumberType.getInstance())],[5,new n.Constant("5",i.NumberType.getInstance())],[6,new n.Constant("6",i.NumberType.getInstance())],[7,new n.Constant("7",i.NumberType.getInstance())],[8,new n.Constant("8",i.NumberType.getInstance())],[9,new n.Constant("9",i.NumberType.getInstance())],[10,new n.Constant("10",i.NumberType.getInstance())]]),a.UndefinedConstant=new n.Constant("undefined",i.UndefinedType.getInstance()),a.NullConstant=new n.Constant("null",i.NullType.getInstance()),a.TrueConstant=new n.Constant("true",i.BooleanType.getInstance()),a.FalseConstant=new n.Constant("false",i.BooleanType.getInstance())},6784:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=t.VisibleValue=void 0;const i=n(r(7015)),a=r(4576),o=r(3938),s=r(9029),c=r(9803),l=r(7451),u=r(4567),d=r(3433),p=r(5482),_=r(1812),f=i.default.getLogger();t.VisibleValue=class{constructor(){this.currScope=new g([],0),this.scopeChain=[this.currScope],this.currVisibleValues=[...this.currScope.values]}getCurrVisibleValues(){return this.currVisibleValues}getScopeChain(){return this.scopeChain}updateIntoScope(e){let t="";t=e instanceof l.BasicBlock?"block: "+e.toString():e.getName(),f.info("---- into scope:{",t,"}");let r=[];e instanceof d.ArkFile||e instanceof _.ArkNamespace?r=this.getVisibleValuesIntoFileOrNameSpace(e):e instanceof u.ArkClass?r=this.getVisibleValuesIntoClass(e):e instanceof p.ArkMethod?r=this.getVisibleValuesIntoMethod(e):e instanceof l.BasicBlock&&(r=this.getVisibleValuesIntoBasicBlock(e));const n=this.getTargetDepth(e);this.addScope(r,n,e)}updateOutScope(){const e=this.currScope.arkModel;let t="";t=e instanceof l.BasicBlock?"block: "+e.toString():e.getName(),f.info("---- out scope:{",t,"}");let r=this.currScope.depth;if(e instanceof l.BasicBlock){e.getSuccessors().length>1&&(r+=1)}this.deleteScope(r)}deleteScope(e){if(e>this.currScope.depth)return;let t=0,r=0;for(let n=this.scopeChain.length-1;n>=0&&!(this.scopeChain[n].depth{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicBlock=void 0;t.BasicBlock=class{constructor(){this.stmts=[],this.predecessorBlocks=[],this.successorBlocks=[]}getStmts(){return this.stmts}addStmt(e){this.stmts.push(e)}getHead(){return 0==this.stmts.length?null:this.stmts[0]}getTail(){let e=this.stmts.length;return 0==e?null:this.stmts[e-1]}getSuccessors(){return this.successorBlocks}setSuccessorBlock(e,t){return this.updateSuccessorContainer(),!(e>=this.successorBlocks.length)&&(this.successorBlocks[e]=t,!0)}getPredecessors(){return this.predecessorBlocks}addPredecessorBlock(e){this.predecessorBlocks.push(e)}updateSuccessorContainer(){let e=this.getTail();if(e){let t=e.getExpectedSuccessorCount();t!=this.successorBlocks.length&&(this.successorBlocks=new Array(t))}}addStmtToFirst(e){this.stmts.splice(0,0,e)}addSuccessorBlock(e){this.successorBlocks.push(e)}toString(){let e=[];for(const t of this.stmts)e.push(t.toString()+"\n");return e.join("")}}},6624:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Cfg=void 0;const i=r(3755),a=r(4243),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=r(4567);n(r(7015)).default.getLogger();t.Cfg=class{constructor(){this.blocks=new Set,this.stmtToBlock=new Map,this.startingStmt=new c.Stmt,this.defUseChains=[]}getStmts(){let e=new Array;for(const t of this.blocks)e.push(...t.getStmts());return e}insertBefore(e,t){const r=this.stmtToBlock.get(e);r.addStmtToFirst(t),this.stmtToBlock.set(t,r)}addBlock(e){this.blocks.add(e);for(const t of e.getStmts())this.stmtToBlock.set(t,e)}getBlocks(){return this.blocks}getStartingBlock(){return this.stmtToBlock.get(this.startingStmt)}getStartingStmt(){return this.startingStmt}setStartingStmt(e){this.startingStmt=e}getDeclaringMethod(){return this.declaringMethod}setDeclaringMethod(e){this.declaringMethod=e}getDefUseChains(){return this.defUseChains}constructorAddInit(e){var t;const r=[...this.blocks][0].getStmts();let n=e.getParameters().length;const a=r[n].getDef();if(r.length>n+1&&r[n+1]instanceof c.ArkInvokeStmt){"super"==(null===(t=r[n+1].getInvokeExpr())||void 0===t?void 0:t.getMethodSignature().getMethodSubSignature().getMethodName())&&n++}for(const t of e.getDeclaringArkClass().getFields()){let e,o=t.getInitializer();if(null==o&&(o=new i.Constant("undefined",l.UndefinedType.getInstance())),e=t.isStatic()?new s.ArkStaticFieldRef(t.getSignature()):new s.ArkInstanceFieldRef(a,t.getSignature()),!(o instanceof u.ArkClass))try{const t=new c.ArkAssignStmt(e,o);n++,r.splice(n,0,t)}catch(e){}}}toString(){return"cfg"}buildDefUseStmt(){for(const e of this.blocks)for(const t of e.getStmts()){const e=t.getDef();e&&e instanceof o.Local&&e.setDeclaringStmt(t);for(const e of t.getUses())if(e instanceof o.Local){e.addUsedStmt(t)}}}buildDefUseChain(){var e,t;for(const r of this.blocks)for(let n=0;n=0;t--){const n=r.getStmts()[t];if(n.getDef()&&(null===(e=n.getDef())||void 0===e?void 0:e.toString())==s){c.push(n);break}}if(0!=c.length)this.defUseChains.push(new a.DefUseChain(o,c[0],i));else{const e=[];for(const t of r.getPredecessors())e.push(t);const n=new Set;for(;e.length>0;){const r=e.pop();if(!r)return;const i=r.getStmts();let a=!1;for(let e=i.length-1;e>=0;e--){const r=i[e];if(r.getDef()&&(null===(t=r.getDef())||void 0===t?void 0:t.toString())==s){c.push(r),a=!0;break}}if(!a)for(const t of r.getPredecessors())n.has(t)||e.includes(t)||e.unshift(t);n.add(r)}for(const e of c)this.defUseChains.push(new a.DefUseChain(o,e,i))}}}}}},2030:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildViewTree=t.ViewTreeImpl=void 0;const i=r(5404),a=r(3755),o=r(2222),s=r(3532),c=r(4576),l=r(3938),u=r(9029),d=r(9803),p=r(2454),_=n(r(7015)),f=r(2029),g=_.default.getLogger(),m=new Set([p.COMPONENT_CREATE_FUNCTION,p.COMPONENT_BRANCH_FUNCTION]);class h{constructor(e){this.declaringArkClass=e}static getInstance(e){return new h(e)}parseStmtUsesStateValues(e,t=new Set,r=!1,n=new Set){if(n.has(e))return t;n.add(e);for(const i of e.getUses())if(i instanceof l.ArkInstanceFieldRef){let e=this.declaringArkClass.getField(i.getFieldSignature()),r=null==e?void 0:e.getStateDecorators();e&&r&&r.length>0&&t.add(e)}else if(i instanceof c.Local){let e=i.getType();if(e instanceof d.CallableType)this.parseMethodUsesStateValues(e.getMethodSignature(),t,n);else if(!r){let e=i.getDeclaringStmt();e&&this.parseStmtUsesStateValues(e,t,r,n)}}return t}parseMethodUsesStateValues(e,t,r=new Set){if(r.has(e))return;r.add(e);let n=this.declaringArkClass.getMethod(e);if(!n)return;let i=n.getCfg().getStmts();for(const e of i)this.parseStmtUsesStateValues(e,t,!0,r)}}var y;!function(e){e[e.SystemComponent=0]="SystemComponent",e[e.CustomComponent=1]="CustomComponent",e[e.Builder=2]="Builder",e[e.BuilderParam=3]="BuilderParam"}(y||(y={}));class v{constructor(e){this.name=e,this.attributes=new Map,this.stmts=this.attributes,this.stateValues=new Set,this.parent=null,this.children=[],this.type=y.SystemComponent}isBuilder(){return this.type==y.Builder}isBuilderParam(){return this.type==y.BuilderParam}isCustomComponent(){return this.type==y.CustomComponent}walk(e,t=new Set){if(t.has(this))return!1;let r=e(this);t.add(this);for(const n of this.children)if(r=r||n.walk(e,t),r)break;return r}static createCustomComponent(){let e=new v(p.COMPONENT_CUSTOMVIEW);return e.type=y.CustomComponent,e}static createBuilderNode(){let e=new v(p.BUILDER_DECORATOR);return e.type=y.Builder,e}static createBuilderParamNode(){let e=new v(p.BUILDER_PARAM_DECORATOR);return e.type=y.BuilderParam,e}changeBuilderParam2BuilderNode(e){if(this.name=p.BUILDER_DECORATOR,this.type=y.Builder,this.signature=e.getSignature(),this.classSignature=this.signature,e.getViewTree().getRoot())for(let t of e.getViewTree().getRoot().children)this.children.push(t);else g.error(`ViewTree->changeBuilderParam2BuilderNode ${e.getSignature().toString()} @Builder viewtree fail.`)}hasBuilderParam(){return this.walk((e=>e.isBuilderParam()))}clone(e,t=new Map){let r=new v(this.name);r.attributes=this.attributes,r.stmts=r.attributes,r.stateValues=this.stateValues,r.parent=e,r.type=this.type,r.signature=this.signature,r.classSignature=r.signature,r.builderParam=this.builderParam,r.builder=this.builder,t.set(this,r);for(const e of this.children)t.has(e)?r.children.push(t.get(e)):r.children.push(e.clone(r,t));return r}addStmt(e,t){this.parseAttributes(t),this.parseStateValues(e,t)}parseAttributes(e){let t;if(e instanceof u.ArkAssignStmt){let r=e.getRightOp();(r instanceof s.ArkInstanceInvokeExpr||r instanceof s.ArkStaticInvokeExpr)&&(t=r)}else if(e instanceof u.ArkInvokeStmt){let r=e.getInvokeExpr();(r instanceof s.ArkInstanceInvokeExpr||r instanceof s.ArkStaticInvokeExpr)&&(t=r)}if(t){let r=t.getMethodSignature().getMethodSubSignature().getMethodName(),n=[];for(const e of t.getArgs())e instanceof c.Local?this.getBindValues(e,n):e instanceof a.Constant&&n.push(e);this.attributes.set(r,[e,n])}}getBindValues(e,t,r=new Set){if(r.has(e))return;r.add(e);const n=e.getDeclaringStmt();if(n)for(const e of n.getUses())e instanceof a.Constant||e instanceof l.ArkInstanceFieldRef?t.push(e):e instanceof c.Local&&this.getBindValues(e,t,r);else{let r=e.getType();r instanceof d.CallableType&&t.push(r.getMethodSignature())}}parseStateValues(e,t){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(t).forEach((t=>{this.stateValues.add(t),e.addStateValue(t,this)}),this)}}class b{constructor(){this.stack=[]}push(e){let t=this.getParent();e.parent=t,this.stack.push(e),null==t?this.root=e:t.children.push(e)}pop(){this.stack.pop()}top(){return this.isEmpty()?null:this.stack[this.stack.length-1]}isEmpty(){return 0==this.stack.length}popAutomicComponent(e){if(this.isEmpty())return;let t=this.stack[this.stack.length-1];e==t.name||this.isContainer(t.name)||this.stack.pop()}popComponentExpect(e){for(let t=this.stack.length-1;t>=0&&this.stack[t].name!=e;t--)this.stack.pop();return this}getParent(){if(0==this.stack.length)return null;let e=this.stack[this.stack.length-1];return this.isContainer(e.name)||this.stack.pop(),this.stack[this.stack.length-1]}isContainer(e){return(0,p.isEtsContainerComponent)(e)||p.SPECIAL_CONTAINER_COMPONENT.has(e)||e==p.BUILDER_DECORATOR}}class x extends b{constructor(e){super(),this.render=e,this.stateValues=new Map,this.fieldTypes=new Map,this.buildViewStatus=!1}getRoot(){return this.buildViewTree(),this.root}getStateValues(){return this.buildViewTree(),this.stateValues}isClassField(e){return this.fieldTypes.has(e)}getClassFieldType(e){return this.fieldTypes.get(e)}buildViewTree(){if(this.render&&!this.isInitialized()){if(this.buildViewStatus=!0,this.loadClasssFieldTypes(),this.render.hasBuilderDecorator()){let e=v.createBuilderNode();e.signature=this.render.getSignature(),e.classSignature=e.signature,this.push(e)}A(this,this.render.getCfg())}}isInitialized(){return null!=this.root||this.buildViewStatus}addStateValue(e,t){this.stateValues.has(e)||this.stateValues.set(e,new Set);let r=this.stateValues.get(e);null==r||r.add(t)}isCreateFunc(e){return m.has(e)}loadClasssFieldTypes(){for(const e of this.render.getDeclaringArkClass().getFields()){let t=e.getStateDecorators();t.length>0?1==t.length?this.fieldTypes.set(e.getName(),t[0]):this.fieldTypes.set(e.getName(),t):this.fieldTypes.set(e.getName(),e.getSignature().getType())}}getDeclaringArkClass(){return this.render.getDeclaringArkClass()}findMethod(e){let t=this.render.getDeclaringArkFile().getScene().getMethod(e);return t||(t=this.getDeclaringArkClass().getMethod(e),t||this.findMethodWithName(e.getMethodSubSignature().getMethodName()))}findMethodWithName(e){var t;let r=this.getDeclaringArkClass().getMethodWithName(e);return r||(null===(t=this.getDeclaringArkClass().getDeclaringArkNamespace())||void 0===t||t.getAllMethodsUnderThisNamespace().forEach((t=>{t.getName()==e&&(r=t)})),r||(this.getDeclaringArkClass().getDeclaringArkFile().getAllNamespacesUnderThisFile().forEach((t=>{t.getAllMethodsUnderThisNamespace().forEach((t=>{t.getName()==e&&(r=t)}))})),r))}findClass(e){return f.ModelUtils.getClass(this.render,e)}addBuilderNode(e){let t=e.getViewTree();if(t&&t.getRoot()){let e=t.getRoot();return this.push(e),this.pop(),e}{g.error(`ViewTree->addBuilderNode ${e.getSignature().toString()} build viewtree fail.`);let t=v.createBuilderNode();return t.signature=e.getSignature(),t.classSignature=t.signature,this.push(t),this.pop(),t}}addCustomComponentNode(e,t,r){let n=v.createCustomComponent();n.signature=e.getSignature(),n.classSignature=n.signature,n.stateValuesTransfer=this.parseObjectLiteralExpr(e,t,r),this.push(n);let i=e.getViewTree();if(i&&i.getRoot()){let e=i.getRoot();e.hasBuilderParam()&&(e=e.clone(n),n.stateValuesTransfer&&e.walk((e=>{var t;let r=e;if(r.isBuilderParam()&&r.builderParam){let e=null===(t=n.stateValuesTransfer)||void 0===t?void 0:t.get(r.builderParam);e&&r.changeBuilderParam2BuilderNode(e)}return!1}))),n.children.push(e)}else g.error(`ViewTree->addCustomComponentNode ${e.getSignature().toString()} build viewtree fail.`);return n}addBuilderParamNode(e){let t=v.createBuilderParamNode();return t.builderParam=e,this.push(t),this.pop(),t}addSystemComponentNode(e){let t=new v(e);return this.push(t),t}findMethodInvokeBuilderMethod(e){for(const t of e.getCfg().getStmts()){if(!(t instanceof u.ArkInvokeStmt))continue;let e=t.getInvokeExpr(),r=this.findMethod(e.getMethodSignature());if(null==r?void 0:r.hasBuilderDecorator())return r}}parseObjectLiteralExpr(e,t,r){let n=new Map;if(t instanceof s.ObjectLiteralExpr&&t.getAnonymousClass().getFields().forEach((t=>{let r=e.getFieldWithName(t.getName());if(0==(null==r?void 0:r.getStateDecorators().length)&&!(null==r?void 0:r.hasBuilderParamDecorator()))return;let i=t.getInitializer();if(null==r?void 0:r.hasBuilderParamDecorator()){let e;i instanceof l.ArkInstanceFieldRef?e=this.findMethodWithName(i.getFieldName()):i instanceof s.ArkStaticInvokeExpr?e=this.findMethod(i.getMethodSignature()):i instanceof c.Local&&(e=this.findMethodWithName(i.getName())),e&&!e.hasBuilderDecorator()&&(e=this.findMethodInvokeBuilderMethod(e)),e&&n.set(r,e)}else{let e;i instanceof l.ArkInstanceFieldRef&&(e=this.getDeclaringArkClass().getFieldWithName(i.getFieldName())),e&&r&&n.set(r,e)}})),r&&e.getFields().forEach((e=>{e.hasBuilderParamDecorator()&&n.set(e,r)})),0!=n.size)return n}}function D(e,t,r,n){let i=e.addSystemComponentNode(t),a=n.getArg(0),o=null==a?void 0:a.getDeclaringStmt();if(o){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(o).forEach((t=>{i.stateValues.add(t),e.addStateValue(t,i)}))}let s=n.getArg(1).getType(),c=e.findMethod(s.getMethodSignature());return c&&A(e,c.getCfg()),i}t.ViewTreeImpl=x;const S=new Map([["ForEach.create",D],["LazyForEach.create",D],["Repeat.create",function(e,t,r,n){let i=e.addSystemComponentNode(t),a=n.getArg(0),o=null==a?void 0:a.getDeclaringStmt();if(o){h.getInstance(e.getDeclaringArkClass()).parseStmtUsesStateValues(o).forEach((t=>{i.stateValues.add(t),e.addStateValue(t,i)}))}return i}],["View.create",function(e,t,r,n){let a,c,l=n.getArg(0);l.getUsedStmts().forEach((e=>{if(e instanceof u.ArkInvokeStmt){let t=e.getInvokeExpr();"constructor"==t.getMethodSignature().getMethodSubSignature().getMethodName()&&(a=t.getArg(0))}}));let d=n.getArg(1);if(d){let t=e.findMethod(d.getType().getMethodSignature());(null==t?void 0:t.hasBuilderDecorator())||null==t||t.addModifier(new o.Decorator(p.BUILDER_DECORATOR)),(null==t?void 0:t.hasViewTree())||null==t||t.setViewTree(new x(t)),t&&(c=t)}let _=i.CfgUitls.backtraceLocalInitValue(l);if(!(_ instanceof s.ArkNewExpr))return;let f=_.getType().getClassSignature();if(f){let t=e.findClass(f);if(t&&t.hasComponentDecorator())return e.addCustomComponentNode(t,a,c);g.error(`ViewTree->viewComponentCreationParser not found class ${f.toString()}. ${r.toString()}`)}}],["If.branch",function(e,t,r,n){return e.popComponentExpect(p.COMPONENT_IF),e.addSystemComponentNode(p.COMPONENT_IF_BRANCH)}]]);function T(e,t,r,n){let i=n.getMethodSignature(),a=e.findMethod(i);if(null==a?void 0:a.hasBuilderDecorator())return e.addBuilderNode(a);let o=i.getDeclaringClassSignature().getClassName(),s=i.getMethodSubSignature().getMethodName();if(e.isCreateFunc(s))return function(e,t,r,n,i){let a=S.get(`${e}.${t}`);if(a){let t=a(r,e,n,i);return null==t||t.addStmt(r,n),t}r.popAutomicComponent(e);let o=r.addSystemComponentNode(e);return o.addStmt(r,n),o}(o,s,e,r,n);let c=e.top();if(o==(null==c?void 0:c.name))return c.addStmt(e,r),s==p.COMPONENT_POP_FUNCTION&&e.pop(),c;o==p.COMPONENT_IF&&s==p.COMPONENT_POP_FUNCTION&&(e.popComponentExpect(p.COMPONENT_IF),e.pop())}function C(e,t,r,n){let a=n.getBase();if(t.has(a)){let i=t.get(a);if((null==i?void 0:i.name)==p.COMPONENT_REPEAT&&"each"==n.getMethodSignature().getMethodSubSignature().getMethodName()){let t=n.getArg(0).getType();if(t instanceof d.CallableType){let r=e.findMethod(t.getMethodSignature());r&&A(e,r.getCfg())}e.pop()}else null==i||i.addStmt(e,r);return i}let o=n.getBase().getName();if(o.startsWith("$temp")){i.CfgUitls.backtraceLocalInitValue(n.getBase())instanceof l.ArkThisRef&&(o="this")}let s=n.getMethodSignature().getMethodSubSignature().getMethodName(),c=e.getDeclaringArkClass().getFieldWithName(s);if("this"==o&&(null==c?void 0:c.hasBuilderParamDecorator()))return e.addBuilderParamNode(c);let u=e.findMethod(n.getMethodSignature());return"this"==o&&(null==u?void 0:u.hasBuilderDecorator())?e.addBuilderNode(u):void 0}function E(e,t,r){let n,i=r.getLeftOp(),a=r.getRightOp();i instanceof c.Local&&(a instanceof s.ArkStaticInvokeExpr?n=T(e,0,r,a):a instanceof s.ArkInstanceInvokeExpr&&(n=C(e,t,r,a)),n&&t.set(i,n))}function k(e,t,r){let n=r.getInvokeExpr();n instanceof s.ArkStaticInvokeExpr?T(e,0,r,n):n instanceof s.ArkInstanceInvokeExpr&&C(e,t,r,n)}function A(e,t,r=new Map){let n=t.getBlocks();for(const t of n)for(const n of t.getStmts())(n instanceof u.ArkInvokeStmt||n instanceof u.ArkAssignStmt)&&(n instanceof u.ArkAssignStmt?E(e,r,n):n instanceof u.ArkInvokeStmt&&k(e,r,n))}t.buildViewTree=function(e){return new x(e)}},2939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkBody=void 0;t.ArkBody=class{constructor(e,t,r,n,i){this.methodSignature=e,this.setLocals(t),this.originalCfg=r,this.cfg=n,this.stmtToOriginalStmt=i}getLocals(){return this.locals}setLocals(e){this.locals||(this.locals=new Map),e.forEach((e=>this.locals.set(e.getName(),e)))}getCfg(){return this.cfg}setCfg(e){this.cfg=e}getOriginalCfg(){return this.originalCfg}setOriginalCfg(e){this.originalCfg=e}getMethodSignature(){return this.methodSignature}setMethodSignature(e){this.methodSignature=e}getStmtToOriginalStmt(){return this.stmtToOriginalStmt}}},4567:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArkClass=void 0;const i=r(7125),a=n(r(7015)),o=r(2222),s=r(2454),c=r(7733);a.default.getLogger();t.ArkClass=class{constructor(){this.name="",this.originType="Class",this.line=-1,this.column=-1,this.superClassName="",this.implementedInterfaceNames=[],this.modifiers=new Set,this.typeParameters=[],this.defaultMethod=null,this.methods=new Map,this.fields=new Map,this.extendedClasses=new Map,this.staticMethods=new Map,this.staticFields=new Map,this.anonymousMethodNumber=0,this.indexSignatureNumber=0}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}getOriginType(){return this.originType}setOriginType(e){this.originType=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkNamespace(){return this.declaringArkNamespace}setDeclaringArkNamespace(e){this.declaringArkNamespace=e}isExported(){return this.modifiers.has("ExportKeyword")}isDefaultArkClass(){return"_DEFAULT_ARK_CLASS"===this.getName()}getSignature(){return this.classSignature}setSignature(e){this.classSignature=e}genSignature(){let e=new i.ClassSignature;e.setClassName(this.name),e.setDeclaringFileSignature(this.declaringArkFile.getFileSignature()),this.declaringArkNamespace&&e.setDeclaringNamespaceSignature(this.declaringArkNamespace.getNamespaceSignature()),this.setSignature(e)}getSuperClassName(){return this.superClassName}setSuperClassName(e){this.superClassName=e}getSuperClass(){return this.superClass}setSuperClass(e){this.superClass=e}getExtendedClasses(){return this.extendedClasses}addExtendedClass(e){this.extendedClasses.set(e.getName(),e)}getImplementedInterfaceNames(){return this.implementedInterfaceNames}addImplementedInterfaceName(e){this.implementedInterfaceNames.push(e)}hasImplementedInterface(e){return this.implementedInterfaceNames.indexOf(e)>-1}getField(e){const t=e.getFieldName();let r=this.getFieldWithName(t);return r||(r=this.getStaticFieldWithName(t)),r}getFieldWithName(e){return this.fields.get(e)||null}getStaticFieldWithName(e){return this.staticFields.get(e)||null}getFields(){const e=Array.from(this.fields.values());return e.push(...this.staticFields.values()),e}addField(e){e.isStatic()?this.staticFields.set(e.getName(),e):this.fields.set(e.getName(),e)}addFields(e){e.forEach((e=>{this.addField(e)}))}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getTypeParameter(){return this.typeParameters}addTypeParameter(e){this.typeParameters.push(e)}containsModifier(e){return this.modifiers.has(e)}isStatic(){return!!this.modifiers.has("StaticKeyword")}getMethods(){const e=Array.from(this.methods.values());return e.push(...this.staticMethods.values()),e}getMethod(e){const t=e.getMethodSubSignature().getMethodName();let r=this.getMethodWithName(t);return r||(r=this.getStaticMethodWithName(t)),r}getMethodWithName(e){return this.methods.get(e)||null}getStaticMethodWithName(e){return this.staticMethods.get(e)||null}addMethod(e){e.getModifiers().has("StaticKeyword")?this.staticMethods.set(e.getName(),e):this.methods.set(e.getName(),e)}setDefaultArkMethod(e){this.defaultMethod=e,this.addMethod(e)}getDefaultArkMethod(){return this.defaultMethod}setViewTree(e){this.viewTree=e}getViewTree(){return this.viewTree}hasViewTree(){return null!=this.viewTree}getStaticFields(e){const t=[];let r=[];r=this.declaringArkNamespace?e.get(this.declaringArkNamespace.getNamespaceSignature()):e.get(this.declaringArkFile.getFileSignature());for(const e of r)for(const r of e.getFields())r.isStatic()&&t.push(r);return t}getGlobalVariable(e){return this.declaringArkNamespace?e.get(this.declaringArkNamespace.getNamespaceSignature()):e.get(this.declaringArkFile.getFileSignature())}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof o.Decorator))}hasEntryDecorator(){return this.hasDecorator(s.ENTRY_DECORATOR)}hasComponentDecorator(){return this.hasDecorator(s.COMPONENT_DECORATOR)}hasDecorator(e){return 0!=this.getDecorators().filter((t=>e instanceof Set?e.has(t.getKind()):t.getKind()==e)).length}getAnonymousMethodNumber(){return this.anonymousMethodNumber++}getIndexSignatureNumber(){return this.indexSignatureNumber++}getExportType(){return c.ExportType.CLASS}}},7733:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ExportInfo=t.ExportType=void 0,function(e){e[e.NAME_SPACE=0]="NAME_SPACE",e[e.CLASS=1]="CLASS",e[e.METHOD=2]="METHOD",e[e.LOCAL=3]="LOCAL",e[e.UNKNOWN=4]="UNKNOWN"}(r||(t.ExportType=r={}));class n{constructor(){}getFrom(){return this.exportFrom}getOriginName(){var e;return null!==(e=this.nameBeforeAs)&&void 0!==e?e:this.exportClauseName}getExportClauseName(){return this.exportClauseName}setExportClauseType(e){this.exportClauseType=e}getExportClauseType(){return this.exportClauseType}getNameBeforeAs(){return this.nameBeforeAs}setTypeSignature(e){this.typeSignature=e}getExportFrom(){return this.exportFrom}getTypeSignature(){return this.typeSignature}isDefault(){var e;return this.exportFrom?"default"===this.nameBeforeAs:(void 0===this._default&&(this._default=null===(e=this.modifiers)||void 0===e?void 0:e.has("DefaultKeyword")),this._default)}getModifiers(){return this.modifiers}getOriginTsPosition(){return this.originTsPosition}getTsSourceCode(){return this.tsSourceCode}getDeclaringArkFile(){return this.declaringArkFile}}t.ExportInfo=n,n.Builder=class{constructor(){this.exportInfo=new n}exportClauseName(e){return this.exportInfo.exportClauseName=e,this}exportClauseType(e){return this.exportInfo.setExportClauseType(e),this}nameBeforeAs(e){return this.exportInfo.nameBeforeAs=e,this}addModifier(e){return this.exportInfo.modifiers||(this.exportInfo.modifiers=new Set),this.exportInfo.modifiers.add(e),this}modifiers(e){return e&&e.forEach((e=>this.addModifier(e))),this}originTsPosition(e){return this.exportInfo.originTsPosition=e,this}tsSourceCode(e){return this.exportInfo.tsSourceCode=e,this}declaringArkFile(e){return this.exportInfo.declaringArkFile=e,this}typeSignature(e){return this.exportInfo.setTypeSignature(e),this}exportFrom(e){return this.exportInfo.exportFrom=e,this}build(){return this.exportInfo}}},8403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkField=void 0;const n=r(2222),i=r(2454),a=r(7125),o=new Set(["State","Prop","Link","StorageProp","StorageLink","Provide","Consume","ObjectLink","LocalStorageLink","LocalStorageProp","Local","Param","Event","Provider","Consumer"]);class s{constructor(){this.name="",this.code="",this.fieldType="",this.parameters=[],this.typeParameters=[],this.modifiers=new Set,this.questionToken=!1,this.exclamationToken=!1}getDeclaringClass(){return this.declaringClass}setDeclaringClass(e){this.declaringClass=e}getCode(){return this.code}setCode(e){this.code=e}getFieldType(){return this.fieldType}setFieldType(e){this.fieldType=e}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}addParameter(e){this.typeParameters.push(e)}getTypeParameters(){return this.typeParameters}setTypeParameters(e){this.typeParameters=e}addTypeParameters(e){this.typeParameters.push(e)}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getSignature(){return this.fieldSignature}setSignature(e){this.fieldSignature=e}genSignature(){let e=new a.FieldSignature;e.setType(this.type),e.setDeclaringSignature(this.declaringClass.getSignature()),e.setFieldName(this.name),this.isStatic()&&e.setStatic(),this.setSignature(e)}getInitializer(){return this.initializer}setInitializer(e){this.initializer=e}isStatic(){return!!this.modifiers.has("StaticKeyword")}isProtected(){return!!this.modifiers.has("ProtectedKeyword")}isPrivate(){return!!this.modifiers.has("PrivateKeyword")}isPublic(){return!!this.modifiers.has("PublicKeyword")}isReadonly(){return!!this.modifiers.has("ReadonlyKeyword")}setQuestionToken(e){this.questionToken=e}setExclamationToken(e){this.exclamationToken=e}getQuestionToken(){return this.questionToken}getExclamationToken(){return this.exclamationToken}setOriginPosition(e){this.originPosition=e}getOriginPosition(){return this.originPosition}setArkMethodSignature(e){this.arkMethodSignature=e}getArkMethodSignature(){return this.arkMethodSignature}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator))}getStateDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator&&o.has(e.getKind())))}hasBuilderParamDecorator(){return 0!=this.getDecorators().filter((e=>e.getKind()==i.BUILDER_PARAM_DECORATOR)).length}}t.ArkField=s,s.DEFAULT_ARK_Field="_DEFAULT_ARK_Field"},3433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkFile=t.notStmtOrExprKind=void 0;const n=r(7125),i=r(2103);t.notStmtOrExprKind=["ModuleDeclaration","ClassDeclaration","InterfaceDeclaration","EnumDeclaration","ExportDeclaration","ExportAssignment","MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"];t.ArkFile=class{constructor(){this.projectName="",this.namespaces=new Map,this.classes=new Map,this.importInfoMap=new Map,this.exportInfoMap=new Map,this.ohPackageJson5Path=[],this.anonymousClassNumber=0}setName(e){this.name=e}getName(){return this.name}setScene(e){this.scene=e}getScene(){return this.scene}getModuleScene(){return this.moduleScene}setModuleScene(e){this.moduleScene=e}setProjectDir(e){this.projectDir=e}getProjectDir(){return this.projectDir}getFilePath(){return this.absoluteFilePath}setFilePath(e){this.absoluteFilePath=e}setCode(e){this.code=e}getCode(){return this.code}addArkClass(e){this.classes.set(e.getName(),e)}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getNamespace(e){const t=e.getNamespaceName();return this.getNamespaceWithName(t)}getNamespaceWithName(e){return this.namespaces.get(e)||null}getNamespaces(){return Array.from(this.namespaces.values())}getClass(e){const t=e.getClassName();return this.getClassWithName(t)}getClassWithName(e){return this.classes.get(e)||null}getClasses(){return Array.from(this.classes.values())}addNamespace(e){this.namespaces.set(e.getName(),e)}getImportInfos(){return Array.from(this.importInfoMap.values())}getImportInfoBy(e){return this.importInfoMap.get(e)}addImportInfo(e){this.importInfoMap.set(e.getImportClauseName(),e)}getExportInfos(){return Array.from(this.exportInfoMap.values())}getExportInfoBy(e){const t=this.exportInfoMap.get(e);return t?(0,i.setTypeForExportInfo)(t):null}addExportInfo(e){this.exportInfoMap.set(e.getExportClauseName(),e)}setProjectName(e){this.projectName=e}getProjectName(){return this.projectName}getModuleName(){return this.moduleScene.getModuleName()}setOhPackageJson5Path(e){this.ohPackageJson5Path=e}getOhPackageJson5Path(){return this.ohPackageJson5Path}genFileSignature(){let e=new n.FileSignature;e.setFileName(this.name),e.setProjectName(this.projectName),this.fileSignature=e}getFileSignature(){return this.fileSignature}getAllNamespacesUnderThisFile(){let e=[];return e.push(...this.namespaces.values()),this.namespaces.forEach((t=>{e.push(...t.getAllNamespacesUnderThisNamespace())})),e}getAnonymousClassNumber(){return this.anonymousClassNumber++}}},4522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportInfo=void 0;const n=r(2103);t.ImportInfo=class{constructor(){this.modifiers=new Set}build(e,t,r,n,i,a){this.setImportClauseName(e),this.setImportType(t),this.setImportFrom(r),this.setOriginTsPosition(n),i.forEach((e=>{this.addModifier(e)})),this.setNameBeforeAs(a)}getOriginName(){var e;return null!==(e=this.nameBeforeAs)&&void 0!==e?e:this.importClauseName}getLazyExportInfo(){return void 0===this.lazyExportInfo&&(this.lazyExportInfo=(0,n.findExportInfo)(this)),this.lazyExportInfo}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkFile(){return this.declaringArkFile}getImportClauseName(){return this.importClauseName}setImportClauseName(e){this.importClauseName=e}getImportType(){return this.importType}setImportType(e){this.importType=e}getImportFrom(){return this.importFrom}setImportFrom(e){this.importFrom=e}getNameBeforeAs(){return this.nameBeforeAs}setNameBeforeAs(e){this.nameBeforeAs=e}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}setOriginTsPosition(e){this.originTsPosition=e}getOriginTsPosition(){return this.originTsPosition}setTsSourceCode(e){this.tsSourceCode=e}getTsSourceCode(){return this.tsSourceCode}getFrom(){return this.importFrom}isDefault(){if("default"===this.nameBeforeAs)return!0;let e=this.tsSourceCode.indexOf(this.importClauseName);if(-1===e)return!1;let t=this.tsSourceCode.indexOf("{"),r=this.tsSourceCode.indexOf("}");return!(e>t&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkMethod=t.arkMethodNodeKind=void 0;const n=r(3938),i=r(9029),a=r(9803),o=r(7125),s=r(2222),c=r(7733);t.arkMethodNodeKind=["MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"];t.ArkMethod=class{constructor(){this.line=-1,this.column=-1,this.returnType=a.UnknownType.getInstance(),this.parameters=[],this.modifiers=new Set,this.typeParameters=[]}getExportType(){return c.ExportType.METHOD}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}getDeclaringArkClass(){return this.declaringArkClass}setDeclaringArkClass(e){this.declaringArkClass=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(){this.declaringArkFile=this.getDeclaringArkClass().getDeclaringArkFile()}isExported(){return this.modifiers.has("ExportKeyword")}isStatic(){return!!this.modifiers.has("StaticKeyword")}isDefaultArkMethod(){return"_DEFAULT_ARK_METHOD"===this.getName()}getParameters(){return this.parameters}addParameter(e){this.parameters.push(e)}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e,this.methodSubSignature&&this.methodSubSignature.setReturnType(e)}getSignature(){return this.methodSignature}setSignature(e){this.methodSignature=e}getSubSignature(){return this.methodSubSignature}setSubSignature(e){this.methodSubSignature=e}genSignature(){let e=new o.MethodSubSignature;e.setMethodName(this.name),e.setParameters(this.parameters),e.setReturnType(this.returnType),this.isStatic()&&e.setStatic(),this.setSubSignature(e);let t=new o.MethodSignature;t.setDeclaringClassSignature(this.declaringArkClass.getSignature()),t.setMethodSubSignature(e),this.setSignature(t)}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}getTypeParameter(){return this.typeParameters}addTypeParameter(e){this.typeParameters.push(e)}containsModifier(e){return this.modifiers.has(e)}getBody(){return this.body}setBody(e){this.body=e}getCfg(){return this.body.getCfg()}getOriginalCfg(){return this.body.getOriginalCfg()}getParameterInstances(){let e=this.getCfg().getStmts(),t=[];for(let r of e)if(r instanceof i.ArkAssignStmt&&r.getRightOp()instanceof n.ArkParameterRef&&t.push(r.getLeftOp()),t.length==this.getParameters().length)return t;return t}getThisInstance(){let e=this.getCfg().getStmts();for(let t of e)if(t instanceof i.ArkAssignStmt&&t.getRightOp()instanceof n.ArkThisRef)return t.getLeftOp();return null}getReturnValues(){let e=[],t=this.getCfg().getStmts();for(let r of t)r instanceof i.ArkReturnStmt&&e.push(r.getOp());return e}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof s.Decorator))}hasBuilderDecorator(){return 0!=this.getDecorators().filter((e=>"Builder"==e.getKind())).length}setViewTree(e){this.viewTree=e}getViewTree(){return this.viewTree}hasViewTree(){return null!=this.viewTree}setBodyBuilder(e){this.bodyBuilder=e,this.declaringArkFile.getScene().buildClassDone()&&this.buildBody()}buildBody(){this.bodyBuilder&&(this.setBody(this.bodyBuilder.build()),this.getCfg().setDeclaringMethod(this),this.bodyBuilder=void 0)}}},1812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkNamespace=void 0;const n=r(2222),i=r(7733),a=r(7125);t.ArkNamespace=class{constructor(){this.line=-1,this.column=-1,this.declaringArkNamespace=null,this.modifiers=new Set,this.exportInfos=new Map,this.namespaces=new Map,this.classes=new Map,this.anonymousClassNumber=0}addNamespace(e){this.namespaces.set(e.getName(),e)}getNamespace(e){const t=e.getNamespaceName();return this.getNamespaceWithName(t)}getNamespaceWithName(e){return this.namespaces.get(e)||null}getNamespaces(){return Array.from(this.namespaces.values())}genNamespaceSignature(){let e=new a.NamespaceSignature;e.setNamespaceName(this.name),e.setDeclaringFileSignature(this.declaringArkFile.getFileSignature()),this.declaringArkNamespace&&e.setDeclaringNamespaceSignature(this.declaringArkNamespace.getNamespaceSignature()),this.namespaceSignature=e}getSignature(){return this.namespaceSignature}getNamespaceSignature(){return this.namespaceSignature}getName(){return this.name}setName(e){this.name=e}getCode(){return this.code}setCode(e){this.code=e}getLine(){return this.line}setLine(e){this.line=e}getColumn(){return this.column}setColumn(e){this.column=e}setDeclaringType(e){this.declaringType=e}getDeclaringType(){return this.declaringType}getDeclaringInstance(){return this.declaringInstance}setDeclaringInstance(e){this.declaringInstance=e}getDeclaringArkFile(){return this.declaringArkFile}setDeclaringArkFile(e){this.declaringArkFile=e}getDeclaringArkNamespace(){return this.declaringArkNamespace}setDeclaringArkNamespace(e){this.declaringArkNamespace=e}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.add(e)}containsModifier(e){return this.modifiers.has(e)}getClass(e){const t=e.getClassName();return this.getClassWithName(t)}getClassWithName(e){return this.classes.get(e)||null}getClasses(){return Array.from(this.classes.values())}addArkClass(e){this.classes.set(e.getName(),e)}isExported(){return this.containsModifier("ExportKeyword")}getExportInfos(){return Array.from(this.exportInfos.values())}getExportInfosMap(){return this.exportInfos}addExportInfo(e){this.exportInfos.set(e.getExportClauseName(),e)}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getAllMethodsUnderThisNamespace(){let e=[];return this.classes.forEach((t=>{e.push(...t.getMethods())})),this.namespaces.forEach((t=>{e.push(...t.getAllMethodsUnderThisNamespace())})),e}getAllClassesUnderThisNamespace(){let e=[];return e.push(...this.classes.values()),this.namespaces.forEach((t=>{e.push(...t.getAllClassesUnderThisNamespace())})),e}getAllNamespacesUnderThisNamespace(){let e=[];return e.push(...this.namespaces.values()),this.namespaces.forEach((t=>{e.push(...t.getAllNamespacesUnderThisNamespace())})),e}getDecorators(){return Array.from(this.modifiers).filter((e=>e instanceof n.Decorator))}getAnonymousClassNumber(){return this.anonymousClassNumber++}getExportType(){return i.ExportType.NAME_SPACE}}},7125:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.genSignature4ImportClause=t.fileSignatureCompare=t.classSignatureCompare=t.methodSubSignatureCompare=t.methodSignatureCompare=t.fieldSignatureCompare=t.InterfaceSignature=t.MethodSignature=t.MethodSubSignature=t.FieldSignature=t.ClassSignature=t.NamespaceSignature=t.FileSignature=void 0;const i=n(r(6928)),a=r(3387),o=r(9803);n(r(7015)).default.getLogger();class s{constructor(){this.projectName="_UnknownProjectName",this.fileName="_UnknownFileName"}getProjectName(){return this.projectName}setProjectName(e){this.projectName=e}getFileName(){return this.fileName}setFileName(e){this.fileName=e}toString(){let e=(0,a.transfer2UnixPath)(this.fileName);return e="@"+this.projectName+"/"+e+": ",e}}t.FileSignature=s;t.NamespaceSignature=class{constructor(){this.namespaceName="",this.declaringFileSignature=new s,this.declaringNamespaceSignature=null}getNamespaceName(){return this.namespaceName}setNamespaceName(e){this.namespaceName=e}getDeclaringFileSignature(){return this.declaringFileSignature}setDeclaringFileSignature(e){this.declaringFileSignature=e}getDeclaringNamespaceSignature(){return this.declaringNamespaceSignature}setDeclaringNamespaceSignature(e){this.declaringNamespaceSignature=e}toString(){return this.declaringNamespaceSignature?this.declaringNamespaceSignature.toString()+"."+this.namespaceName:this.declaringFileSignature.toString()+this.namespaceName}};class c{getDeclaringFileSignature(){return this.declaringFileSignature}setDeclaringFileSignature(e){this.declaringFileSignature=e}getDeclaringNamespaceSignature(){return this.declaringNamespaceSignature}setDeclaringNamespaceSignature(e){this.declaringNamespaceSignature=e}getClassName(){return this.className}setClassName(e){this.className=e}getType(){return new o.ClassType(this)}constructor(){this.declaringFileSignature=new s,this.declaringNamespaceSignature=null,this.className=""}toString(){return this.declaringNamespaceSignature?this.declaringNamespaceSignature.toString()+"."+this.className:this.declaringFileSignature.toString()+this.className}}t.ClassSignature=c;t.FieldSignature=class{getDeclaringSignature(){return this.declaringSignature}setDeclaringSignature(e){this.declaringSignature=e}getBaseName(){return this.declaringSignature instanceof c?this.declaringSignature.getClassName():this.declaringSignature.getNamespaceName()}getFieldName(){return this.fieldName}setFieldName(e){this.fieldName=e}setType(e){this.type=e}getType(){return this.type}setStatic(){this.static=!0}isStatic(){return this.static}constructor(){this.declaringSignature=new c,this.fieldName="",this.type=o.UnknownType.getInstance(),this.static=!1}toString(){let e=this.fieldName;return this.isStatic()&&(e="[static]"+e),this.getDeclaringSignature().toString()+"."+e}};class l{getMethodName(){return this.methodName}setMethodName(e){this.methodName=e}getParameters(){return this.parameters}getParameterTypes(){return this.parameterTypes}setParameters(e){this.parameters=e,e.forEach((e=>{this.parameterTypes.add(e.getType())}))}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e}setStatic(){this.static=!0}isStatic(){return this.static}constructor(){this.methodName="",this.parameters=[],this.parameterTypes=new Set,this.returnType=o.UnknownType.getInstance(),this.static=!1}toString(){let e="";this.parameterTypes.forEach((t=>{e+=t.toString()+", "})),e=e.replace(/, $/,"");let t=`${this.getMethodName()}(${e})`;return this.isStatic()&&(t="[static]"+t),t}}t.MethodSubSignature=l;t.MethodSignature=class{getDeclaringClassSignature(){return this.declaringClassSignature}setDeclaringClassSignature(e){this.declaringClassSignature=e}getMethodSubSignature(){return this.methodSubSignature}setMethodSubSignature(e){this.methodSubSignature=e}getType(){return this.methodSubSignature.getReturnType()}constructor(){this.declaringClassSignature=new c,this.methodSubSignature=new l}toString(){return this.declaringClassSignature.toString()+"."+this.methodSubSignature.toString()}};function u(e,t){return!(e.getMethodName()!=t.getMethodName()||!function(e,t){const r=Array.from(e),n=Array.from(t);return function(e,t){if(e.length!=t.length)return!1;for(let r=0;r.<#Interface#>.<${this.getInterfaceName()}>`}},t.fieldSignatureCompare=function(e,t){return e.getDeclaringSignature().toString()===t.getDeclaringSignature().toString()&&e.getFieldName()==t.getFieldName()},t.methodSignatureCompare=function(e,t){return!(!d(e.getDeclaringClassSignature(),t.getDeclaringClassSignature())||!u(e.getMethodSubSignature(),t.getMethodSubSignature()))},t.methodSubSignatureCompare=u,t.classSignatureCompare=d,t.fileSignatureCompare=p,t.genSignature4ImportClause=function(e,t){return`<${e}>.<${t}>`}},732:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateDefaultClassField=t.buildNormalArkClass=t.buildNormalArkClassFromArkNamespace=t.buildNormalArkClassFromArkFile=t.buildNormalArkClassFromArkMethod=t.buildDefaultArkClassFromArkNamespace=t.buildDefaultArkClassFromArkFile=void 0;const i=r(8403),a=r(5482),o=n(r(7015)),s=(r(3532),n(r(3221))),c=r(8951),l=r(3819),u=r(600),d=r(8596),p=o.default.getLogger();function _(e,t,r,n,i){r.setDeclaringArkFile(t),r.setCode(e.getText(n));const{line:a,character:o}=s.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(a+1),r.setColumn(o+1),m(e,r,n,i),t.addArkClass(r)}function f(e,t,r,n,i){r.setDeclaringArkNamespace(t),r.setDeclaringArkFile(t.getDeclaringArkFile()),r.setCode(e.getText(n));const{line:a,character:o}=s.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(a+1),r.setColumn(o+1),m(e,r,n,i),t.addArkClass(r)}function g(e,t,r){e.setName("_DEFAULT_ARK_CLASS"),e.genSignature(),function(e,t,r){let n=new a.ArkMethod;(0,c.buildDefaultArkMethodFromArkClass)(e,n,t,r),e.setDefaultArkMethod(n)}(e,t,r)}function m(e,t,r,n){switch(e.kind){case s.default.SyntaxKind.StructDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)}));if(e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Struct"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.ClassDeclaration:case s.default.SyntaxKind.ClassExpression:h(e,t,r,n);break;case s.default.SyntaxKind.InterfaceDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)}));if(e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Interface"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.EnumDeclaration:!function(e,t,r,n){e.name?t.setName(e.name.text):y(e,t,n);t.genSignature(),(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Enum"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.TypeLiteral:!function(e,t,r,n){y(e,t,n),t.genSignature(),t.setOriginType("TypeLiteral"),v(e,t,r)}(e,t,r,n);break;case s.default.SyntaxKind.ObjectLiteralExpression:!function(e,t,r,n){y(e,t,n),t.genSignature(),t.setOriginType("Object");let i=[];e.properties.forEach((e=>{if(s.default.isPropertyAssignment(e)||s.default.isShorthandPropertyAssignment(e)||s.default.isSpreadAssignment(e))(0,u.buildProperty2ArkField)(e,r,t);else{let n=new a.ArkMethod;n.setDeclaringArkClass(t),n.setDeclaringArkFile(),(0,c.buildArkMethodFromArkClass)(e,t,n,r)}})),i.forEach((e=>{t.addMethod(e)}))}(e,t,r,n)}}function h(e,t,r,n){if(e.name?t.setName(e.name.text):y(e,t,n),t.genSignature(),e.typeParameters&&(0,l.buildTypeParameters)(e.typeParameters,r,t).forEach((e=>{t.addTypeParameter(e)})),e.heritageClauses)for(let[r,n]of(0,l.buildHeritageClauses)(e.heritageClauses))"ExtendsKeyword"==n?t.setSuperClassName(r):t.addImplementedInterfaceName(r);(0,l.buildModifiers)(e,r).forEach((e=>{t.addModifier(e)})),t.setOriginType("Class"),v(e,t,r)}function y(e,t,r){const n=t.getDeclaringArkNamespace(),i=t.getDeclaringArkFile();let a="",o="";r&&(o=r.getName()+"-"),a=n?"AnonymousClass-"+o+n.getAnonymousClassNumber():"AnonymousClass-"+o+i.getAnonymousClassNumber(),t.setName(a)}function v(e,t,r){s.default.isObjectLiteralExpression(e)||e.members.forEach((e=>{if(s.default.isPropertyDeclaration(e)||s.default.isPropertySignature(e)||s.default.isEnumMember(e))(0,u.buildProperty2ArkField)(e,r,t);else if(s.default.isIndexSignatureDeclaration(e))(0,u.buildIndexSignature2ArkField)(e,r,t);else if(s.default.isMethodDeclaration(e)||s.default.isConstructorDeclaration(e)||s.default.isMethodSignature(e)||s.default.isConstructSignatureDeclaration(e)||s.default.isAccessor(e)||s.default.isCallSignatureDeclaration(e)){let n=new a.ArkMethod;(0,c.buildArkMethodFromArkClass)(e,t,n,r),t.addMethod(n),s.default.isGetAccessor(e)&&(0,u.buildGetAccessor2ArkField)(e,n,r)}else s.default.isSemicolonClassElement(e)?p.debug("Skip these members."):p.warn("Please contact developers to support new member type!")}))}t.buildDefaultArkClassFromArkFile=function(e,t,r){t.setDeclaringArkFile(e),g(t,r)},t.buildDefaultArkClassFromArkNamespace=function(e,t,r,n){t.setDeclaringArkNamespace(e),t.setDeclaringArkFile(e.getDeclaringArkFile()),g(t,n,r)},t.buildNormalArkClassFromArkMethod=function(e,t,r){const n=t.getDeclaringArkNamespace();n?f(e,n,t,r):_(e,t.getDeclaringArkFile(),t,r)},t.buildNormalArkClassFromArkFile=_,t.buildNormalArkClassFromArkNamespace=f,t.buildNormalArkClass=m,t.generateDefaultClassField=function(e){var t;const r=null==e?void 0:e.getDefaultArkMethod();r&&(d.TypeInference.inferTypeInMethod(r),null===(t=e.getDefaultArkMethod())||void 0===t||t.getBody().getLocals().forEach((t=>{if(t.getName().startsWith("$temp")||e.getDeclaringArkFile().getImportInfoBy(t.getName())||"this"===t.getName());else{const r=new i.ArkField;r.setFieldType(i.ArkField.DEFAULT_ARK_Field),r.setDeclaringClass(e),r.setType(t.getType()),r.setName(t.getName()),r.genSignature(),e.addField(r)}})))}},9718:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isExported=t.buildExportTypeAliasDeclaration=t.buildExportVariableStatement=t.buildExportDeclaration=t.buildExportAssignment=t.buildExportInfo=void 0;const i=n(r(3221)),a=r(6356),o=r(7733),s=r(3819);t.buildExportInfo=function(e,t,r){return(new o.ExportInfo.Builder).exportClauseName(e.getName()).exportClauseType(e.getExportType()).nameBeforeAs(e.getName()).modifiers(e.getModifiers()).typeSignature(e.getSignature()).originTsPosition(r).declaringArkFile(t).build()},t.buildExportDeclaration=function(e,t,r){const n=a.LineColPosition.buildFromNode(e,t),c=e.getText(t),l=e.modifiers?(0,s.buildModifiers)(e,t):new Set;let u="";e.moduleSpecifier&&i.default.isStringLiteral(e.moduleSpecifier)&&(u=e.moduleSpecifier.text);let d=[];if(e.exportClause&&i.default.isNamedExports(e.exportClause)&&e.exportClause.elements)return e.exportClause.elements.forEach((e=>{let t=e.propertyName&&i.default.isIdentifier(e.propertyName)?e.propertyName.text:e.name.text,a=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).exportClauseName(e.name.text).nameBeforeAs(t).tsSourceCode(c).exportFrom(u).originTsPosition(n).declaringArkFile(r).modifiers(l);d.push(a.build())})),d;let p=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).nameBeforeAs("*").modifiers(l).tsSourceCode(c).exportFrom(u).declaringArkFile(r).originTsPosition(n);return e.exportClause&&i.default.isNamespaceExport(e.exportClause)&&i.default.isIdentifier(e.exportClause.name)?d.push(p.exportClauseName(e.exportClause.name.text).build()):!e.exportClause&&e.moduleSpecifier&&d.push(p.exportClauseName("*").build()),d},t.buildExportAssignment=function(e,t,r){let n=[];if(!e.expression)return n;const c=a.LineColPosition.buildFromNode(e,t),l=e.getText(t),u=(0,s.buildModifiers)(e,t);if(function(e,t){if(!e)return!1;for(let r of e)if(r.kind===t)return!0;return!1}(e.getChildren(t),i.default.SyntaxKind.DefaultKeyword)&&u.add(i.default.SyntaxKind[i.default.SyntaxKind.DefaultKeyword]),i.default.isObjectLiteralExpression(e.expression)&&e.expression.properties)e.expression.properties.forEach((e=>{if(e.name&&i.default.isIdentifier(e.name)){e.name.text;const t=(new o.ExportInfo.Builder).exportClauseName(e.name.text).exportClauseType(o.ExportType.UNKNOWN).nameBeforeAs(e.name.text).modifiers(u).tsSourceCode(l).originTsPosition(c).declaringArkFile(r).build();n.push(t)}}));else{const a=(new o.ExportInfo.Builder).exportClauseType(o.ExportType.UNKNOWN).modifiers(u).tsSourceCode(l).originTsPosition(c).declaringArkFile(r).exportClauseName("default");i.default.isIdentifier(e.expression)?a.nameBeforeAs(e.expression.text):i.default.isAsExpression(e.expression)&&a.nameBeforeAs(e.expression.expression.getText(t)),n.push(a.build())}return n},t.buildExportVariableStatement=function(e,t,r){let n=[];const i=a.LineColPosition.buildFromNode(e,t),c=e.modifiers?(0,s.buildModifiers)(e,t):new Set,l=e.getText(t);return e.declarationList.declarations.forEach((e=>{const a=(new o.ExportInfo.Builder).exportClauseName(e.name.getText(t)).exportClauseType(o.ExportType.LOCAL).modifiers(c).tsSourceCode(l).originTsPosition(i).declaringArkFile(r).build();n.push(a)})),n},t.buildExportTypeAliasDeclaration=function(e,t,r){let n=[];const i=a.LineColPosition.buildFromNode(e,t),c=e.modifiers?(0,s.buildModifiers)(e,t):new Set,l=e.getText(t),u=(new o.ExportInfo.Builder).exportClauseName(e.name.text).exportClauseType(o.ExportType.LOCAL).tsSourceCode(l).modifiers(c).originTsPosition(i).declaringArkFile(r).build();return n.push(u),n},t.isExported=function(e){if(!e)return!1;for(let t of e)if(t.kind===i.default.SyntaxKind.ExportKeyword)return!0;return!1}},600:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildGetAccessor2ArkField=t.buildIndexSignature2ArkField=t.buildProperty2ArkField=void 0;const i=n(r(3221)),a=r(8403),o=n(r(7015)),s=r(6356),c=r(3819),l=o.default.getLogger();t.buildProperty2ArkField=function(e,t,r){let n=new a.ArkField;if(n.setFieldType(i.default.SyntaxKind[e.kind]),n.setCode(e.getText(t)),n.setOriginPosition(s.LineColPosition.buildFromNode(e,t)),r&&n.setDeclaringClass(r),e.name&&i.default.isComputedPropertyName(e.name))if(i.default.isIdentifier(e.name.expression)){let t=e.name.expression.text;n.setName(t)}else i.default.isPropertyAccessExpression(e.name.expression)?n.setName((0,c.handlePropertyAccessExpression)(e.name.expression)):l.warn("Other property expression type found!");else if(e.name&&i.default.isIdentifier(e.name)){let t=e.name.text;n.setName(t)}else l.warn("Other type of property name found!");if(i.default.isPropertyDeclaration(e)||i.default.isPropertyAssignment(e)||i.default.isEnumMember(e)?e.initializer&&n.setInitializer((0,c.tsNode2Value)(e.initializer,t,r)):i.default.isShorthandPropertyAssignment(e)?e.objectAssignmentInitializer&&n.setInitializer((0,c.tsNode2Value)(e.objectAssignmentInitializer,t,r)):i.default.isSpreadAssignment(e)&&n.setInitializer((0,c.tsNode2Value)(e.expression,t,r)),(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.modifiers){(0,c.buildModifiers)(e,t).forEach((e=>{n.addModifier(e)}))}(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.type&&n.setType((0,c.tsNode2Type)(e.type,t,r)),(i.default.isPropertyDeclaration(e)||i.default.isPropertySignature(e))&&e.questionToken&&n.setQuestionToken(!0),i.default.isPropertyDeclaration(e)&&e.exclamationToken&&n.setExclamationToken(!0),i.default.isEnumMember(e)&&n.addModifier("StaticKeyword"),r&&r.addField(n),n.genSignature()},t.buildIndexSignature2ArkField=function(e,t,r){let n=new a.ArkField;var o;n.setCode(e.getText(t)),n.setFieldType(i.default.SyntaxKind[e.kind]),r&&n.setDeclaringClass(r),e.name?n.setName(e.name.getText(t)):n.setName("IndexSignature-"+(o=r).getName()+"-"+o.getIndexSignatureNumber()),n.setOriginPosition(s.LineColPosition.buildFromNode(e,t)),e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{n.addModifier(e)})),n.setType((0,c.tsNode2Type)(e.type,t,n)),r&&r.addField(n),n.genSignature()},t.buildGetAccessor2ArkField=function(e,t,r){let n=new a.ArkField;if(n.setCode(e.getText(r)),i.default.isIdentifier(e.name))n.setName(e.name.text);else if(i.default.isComputedPropertyName(e.name))if(i.default.isIdentifier(e.name.expression)){let t=e.name.expression.text;n.setName(t)}else i.default.isPropertyAccessExpression(e.name.expression)?n.setName((0,c.handlePropertyAccessExpression)(e.name.expression)):i.default.isStringLiteral(e.name.expression)?n.setName(e.name.expression.text):l.warn("Other type of computed property name found!");else l.warn("Please contact developers to support new type of GetAccessor name!"),n.setName("");let o=t.getDeclaringArkClass();n.setFieldType(i.default.SyntaxKind[e.kind]),n.setOriginPosition(s.LineColPosition.buildFromNode(e,r)),n.setDeclaringClass(o),n.setParameters(t.getParameters()),n.setType(t.getReturnType()),n.setTypeParameters(t.getTypeParameter()),n.setArkMethodSignature(t.getSignature()),n.genSignature(),o.addField(n)}},7570:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expandImportAll=t.buildArkFileFromFile=t.notStmtOrExprKind=void 0;const i=n(r(9896)),a=n(r(6928)),o=n(r(3221)),s=r(1812),c=n(r(7015)),l=r(732),u=r(8951),d=r(2103),p=r(9718),_=r(6005),f=r(4567),g=r(5482),m=r(6356),h=r(2454),y=r(4522),v=c.default.getLogger();t.notStmtOrExprKind=["ModuleDeclaration","ClassDeclaration","InterfaceDeclaration","EnumDeclaration","ExportDeclaration","ExportAssignment","MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"],t.buildArkFileFromFile=function(e,t,r){r.setFilePath(e),r.setProjectDir(t),r.setName(a.default.relative(t,e)),r.genFileSignature(),r.setCode(i.default.readFileSync(r.getFilePath(),"utf8"));const n=o.default.createSourceFile(r.getName(),r.getCode(),o.default.ScriptTarget.Latest,void 0,void 0,h.ETS_COMPILER_OPTIONS);!function(e,t){let r=new f.ArkClass;(0,l.buildDefaultArkClassFromArkFile)(e,r,t),e.setDefaultClass(r),e.addArkClass(r)}(r,n),function(e,t){t.statements.forEach((r=>{if(o.default.isModuleDeclaration(r)){let n=new s.ArkNamespace;n.setDeclaringArkFile(e),(0,_.buildArkNamespace)(r,e,n,t),e.addNamespace(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isClassDeclaration(r)||o.default.isInterfaceDeclaration(r)||o.default.isEnumDeclaration(r)||o.default.isStructDeclaration(r)){let n=new f.ArkClass;(0,l.buildNormalArkClassFromArkFile)(r,e,n,t),e.addArkClass(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isMethodDeclaration(r)){v.warn("This is a MethodDeclaration in ArkFile.");let n=new g.ArkMethod;(0,u.buildArkMethodFromArkClass)(r,e.getDefaultClass(),n,t),e.getDefaultClass().addMethod(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isFunctionDeclaration(r)){let n=new g.ArkMethod;(0,u.buildArkMethodFromArkClass)(r,e.getDefaultClass(),n,t),e.getDefaultClass().addMethod(n),n.isExported()&&e.addExportInfo((0,p.buildExportInfo)(n,e,m.LineColPosition.buildFromNode(r,t)))}else if(o.default.isImportEqualsDeclaration(r)||o.default.isImportDeclaration(r)){let n=(0,d.buildImportInfo)(r,t);null==n||n.forEach((t=>{t.setDeclaringArkFile(e),e.addImportInfo(t)}))}else o.default.isExportDeclaration(r)?(0,p.buildExportDeclaration)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isExportAssignment(r)?(0,p.buildExportAssignment)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isVariableStatement(r)&&(0,p.isExported)(r.modifiers)?(0,p.buildExportVariableStatement)(r,t,e).forEach((t=>e.addExportInfo(t))):o.default.isTypeAliasDeclaration(r)&&(0,p.isExported)(r.modifiers)?(0,p.buildExportTypeAliasDeclaration)(r,t,e).forEach((t=>e.addExportInfo(t))):v.info("Child joined default method of arkFile: ",o.default.SyntaxKind[r.kind])}))}(r,n)},t.expandImportAll=function(e){for(const t of e.values()){t.getImportInfos().forEach((e=>{if("*"===e.getNameBeforeAs()){let r=(0,d.getArkFile)(e);if(r){(0,d.expandExportInfo)(r);let n="*"===e.getImportClauseName()?"":e.getImportClauseName()+".";r.getExportInfos().forEach((r=>{let i=new y.ImportInfo;i.build(n+r.getExportClauseName(),e.getImportType(),e.getImportFrom(),e.getOriginTsPosition(),e.getModifiers(),r.getExportClauseName()),i.setDeclaringArkFile(e.getDeclaringArkFile()),i.setTsSourceCode(e.getTsSourceCode()),t.addImportInfo(i)}))}else v.warn("from file not found:"+e.getTsSourceCode())}}))}}},2103:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildImportInfo=t.setTypeForExportInfo=t.findExportInfo=t.getArkFile=t.expandExportInfo=void 0;const i=n(r(3221)),a=n(r(6928)),o=r(6356),s=r(4522),c=r(3819),l=r(7733),u=r(7125),d=n(r(7015)),p=r(3387),_=r(4040),f=d.default.getLogger(),g=new Map,m=[".ets: ",".ts: ",".tts: ",".d.ets: ",".d.ts: ",".d.tts: "];function h(e){const t=e.getFrom();if(!t)return null;if(/^([^@]*\/)([^\/]*)$/.test(t)){const r=/^\.{1,2}\//.test(t)?a.default.dirname(e.getDeclaringArkFile().getFilePath()):e.getDeclaringArkFile().getProjectDir();return x(e,a.default.resolve(r,t))}if(/^@[a-z|\-]+?\//.test(t))return function(e){var t,r,n;const i=e.getFrom();0===g.size&&e.getDeclaringArkFile().getScene().getOhPkgContentMap().forEach(((e,t)=>{e.dependencies&&Object.entries(e.dependencies).forEach((([e,r])=>{let n=r;/^(file:)?\.{1,2}\//.test(r)&&(n=a.default.resolve(a.default.dirname(t),r.replace("file:",""))),g.set(e,n)}))}));let o,s,c;(o=i.indexOf("src"))>0||(o=i.indexOf("Index"))>0||(o=i.indexOf("index"))>0?(c=null!==(t=g.get(i.substring(0,o).replace(/\/*$/,"")))&&void 0!==t?t:"",s=x(e,a.default.join(null!=c?c:"",i.substring(o)))):(c=null!==(r=g.get(i))&&void 0!==r?r:"",s=null!==(n=x(e,a.default.join(c,"index.ets")))&&void 0!==n?n:x(e,a.default.join(c,"Index.ets")));return s&&T(e,s)?s:x(e,a.default.join(c,"/src/main/ets/TsIndex.ts"))}(e);{const r=e.getDeclaringArkFile().getScene();for(const e of r.getProjectSdkMap().keys()){const n=D(b(e,t),r.getSdkArkFilesMap());if(n)return n}}}function y(e){var t,r;let n=h(e);if(null==n)return f.warn(e.getOriginName()+" "+e.getFrom()+" file not found: "+(null===(r=null===(t=e.getDeclaringArkFile())||void 0===t?void 0:t.getFileSignature())||void 0===r?void 0:r.toString())),null;let i=T(e,n);return null===i?(f.warn("export info not found, "+e.getFrom()+" in file: "+e.getDeclaringArkFile().getFileSignature().toString()),null):i}function v(e){if(e.getTypeSignature())return e;if(!e.getFrom()){if(e.getExportClauseType()===l.ExportType.LOCAL)C(e);else{let t=function(e){const t=e.getDeclaringArkFile().getClassWithName(e.getOriginName());if(t)return e.setExportClauseType(l.ExportType.CLASS),e.setTypeSignature(t.getSignature()),!0;return!1}(e);t||(t=function(e){const t=e.getDeclaringArkFile().getNamespaceWithName(e.getOriginName());if(t)return e.setExportClauseType(l.ExportType.NAME_SPACE),e.setTypeSignature(t.getSignature()),!0;return!1}(e)),t||C(e),t||function(e){const t=e.getDeclaringArkFile().getImportInfoBy(e.getOriginName());if(t){const r=y(t);if(r)return e.setExportClauseType(r.getExportClauseType()),e.setTypeSignature(r.getTypeSignature()),!0}}(e)}return e}if(e.getExportClauseType()===l.ExportType.UNKNOWN){const t=y(e);t&&(e.setExportClauseType(t.getExportClauseType()),e.setTypeSignature(t.getTypeSignature()))}return e.getTypeSignature()||f.warn(e.getExportClauseName()+" get type signature fail from "+e.getFrom()+" at "+e.getDeclaringArkFile().getFileSignature().toString()),e}function b(e,t){let r;if(t.startsWith("@ohos.")||t.startsWith("@system."))r="api";else if(t.startsWith("@kit."))r="kits";else{if(!t.startsWith("@arkts."))return t;r="arkts"}return`@${e}/${r}/${t}`}function x(e,t){_.FileUtils.isDirectory(t)&&(t=a.default.join(t,_.FileUtils.getIndexFileName(t)));const r=a.default.relative(e.getDeclaringArkFile().getProjectDir(),t),n=e.getDeclaringArkFile().getScene();if(/\.e?ts$/.test(t)){const t=new u.FileSignature;return t.setProjectName(e.getDeclaringArkFile().getProjectName()),t.setFileName(r),n.getFile(t)}const i=e.getDeclaringArkFile().getProjectName(),o=`@${i}/${r}`;return i!==n.getProjectName()?D(o,n.getSdkArkFilesMap()):D(o,n.getFilesMap())}function D(e,t){for(const r of m){const n=t.get((0,p.transfer2UnixPath)(e)+r);if(n)return n}}function S(e,t){return(new l.ExportInfo.Builder).exportClauseType(l.ExportType.CLASS).exportClauseName(e.getOriginName()).declaringArkFile(t).typeSignature(t.getDefaultClass().getSignature()).build()}function T(e,t){if("*"===e.getOriginName())return S(e,t);let r=null;if(e.isDefault()){if(r=t.getExportInfos().find((e=>e.isDefault())),r)return v(r);if(/\.d\.e?ts$/.test(t.getName()))return S(e,t)}return t.getExportInfoBy(e.getOriginName())}function C(e){var t,r;let n=null===(r=null===(t=e.getDeclaringArkFile().getDefaultClass().getDefaultArkMethod())||void 0===t?void 0:t.getBody())||void 0===r?void 0:r.getLocals().get(e.getOriginName());return!!n&&(e.setExportClauseType(l.ExportType.LOCAL),e.setTypeSignature(n),!0)}t.expandExportInfo=function e(t){t.getExportInfos().forEach((r=>{if("*"===r.getNameBeforeAs()){let n=h(r);if(n){e(n);let i="*"===r.getExportClauseName()?"":r.getExportClauseName()+".";n.getExportInfos().forEach((e=>{let n=v(e),a=(new l.ExportInfo.Builder).exportClauseName(i+n.getExportClauseName()).nameBeforeAs(n.getExportClauseName()).exportClauseType(n.getExportClauseType()).modifiers(r.getModifiers()).typeSignature(n.getTypeSignature()).originTsPosition(n.getOriginTsPosition()).declaringArkFile(n.getDeclaringArkFile()).build();t.addExportInfo(a)})),t.addExportInfo(r)}}}))},t.getArkFile=h,t.findExportInfo=y,t.setTypeForExportInfo=v,t.buildImportInfo=function(e,t){return i.default.isImportDeclaration(e)?function(e,t){const r=o.LineColPosition.buildFromNode(e,t),n=e.getText(t);let a=[],l="";i.default.isStringLiteral(e.moduleSpecifier)&&(l=e.moduleSpecifier.text);const u=new Set;e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{u.add(e)}));if(!e.importClause){let e="",t="",i=new s.ImportInfo;i.build(e,t,l,r,u),i.setTsSourceCode(n),a.push(i)}if(e.importClause&&e.importClause.name&&i.default.isIdentifier(e.importClause.name)){let t=e.importClause.name.text,i="Identifier",o=new s.ImportInfo;o.build(t,i,l,r,u),o.setTsSourceCode(n),a.push(o)}if(e.importClause&&e.importClause.namedBindings&&i.default.isNamedImports(e.importClause.namedBindings)){let t="NamedImports";e.importClause.namedBindings.elements&&e.importClause.namedBindings.elements.forEach((e=>{if(e.name&&i.default.isIdentifier(e.name)){let o=e.name.text;if(e.propertyName&&i.default.isIdentifier(e.propertyName)){let i=new s.ImportInfo;i.build(o,t,l,r,u,e.propertyName.text),i.setTsSourceCode(n),a.push(i)}else{let e=new s.ImportInfo;e.build(o,t,l,r,u),e.setTsSourceCode(n),a.push(e)}}}))}if(e.importClause&&e.importClause.namedBindings&&i.default.isNamespaceImport(e.importClause.namedBindings)){let t="NamespaceImport";if(e.importClause.namedBindings.name&&i.default.isIdentifier(e.importClause.namedBindings.name)){let i=e.importClause.namedBindings.name.text,o=new s.ImportInfo,c="*";o.build(i,t,l,r,u,c),o.setTsSourceCode(n),a.push(o)}}return a}(e,t):i.default.isImportEqualsDeclaration(e)?function(e,t){const r=o.LineColPosition.buildFromNode(e,t),n=e.getText(t);let a=[],l="EqualsImport";const u=new Set;e.modifiers&&(0,c.buildModifiers)(e,t).forEach((e=>{u.add(e)}));if(e.moduleReference&&i.default.isExternalModuleReference(e.moduleReference)&&e.moduleReference.expression&&i.default.isStringLiteral(e.moduleReference.expression)){let t=e.moduleReference.expression.text,i=e.name.text,o=new s.ImportInfo;o.build(i,l,t,r,u),o.setTsSourceCode(n),a.push(o)}return a}(e,t):[]}},8951:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodParameter=t.ArrayBindingPatternParameter=t.ObjectBindingPatternParameter=t.buildArkMethodFromArkClass=t.buildDefaultArkMethodFromArkClass=t.arkMethodNodeKind=void 0;const i=r(9020),a=r(2030),o=n(r(3221)),s=r(3819),c=n(r(7015)).default.getLogger();function l(e,t,r){let n="";r&&(n=r.getName()+"-");return"AnonymousMethod-"+n+t.getAnonymousMethodNumber()}t.arkMethodNodeKind=["MethodDeclaration","Constructor","FunctionDeclaration","GetAccessor","SetAccessor","ArrowFunction","FunctionExpression","MethodSignature","ConstructSignature","CallSignature"],t.buildDefaultArkMethodFromArkClass=function(e,t,r,n){t.setDeclaringArkClass(e),t.setDeclaringArkFile(),t.setName("_DEFAULT_ARK_METHOD"),t.genSignature();const a=n||r;let o=new i.BodyBuilder(t.getSignature(),a,t,r);t.setBodyBuilder(o)},t.buildArkMethodFromArkClass=function(e,t,r,n,u){r.setDeclaringArkClass(t),r.setDeclaringArkFile(),r.setCode(e.getText(n));const{line:d,character:p}=o.default.getLineAndCharacterOfPosition(n,e.getStart(n));r.setLine(d+1),r.setColumn(p+1);const _=function(e,t,r,n){let i,a="";o.default.isFunctionDeclaration(e)||o.default.isFunctionExpression(e)?a=e.name?e.name.text:l(e,t,n):o.default.isFunctionTypeNode(e)?a=e.name?e.name.getText(r):l(e,t,n):o.default.isMethodDeclaration(e)||o.default.isMethodSignature(e)?o.default.isIdentifier(e.name)?a=e.name.text:o.default.isComputedPropertyName(e.name)?o.default.isIdentifier(e.name.expression)?a=e.name.expression.text:o.default.isPropertyAccessExpression(e.name.expression)?a=(0,s.handlePropertyAccessExpression)(e.name.expression):c.warn("Other method ComputedPropertyName found!"):c.warn("Other method declaration type found!"):o.default.isConstructorDeclaration(e)?a="constructor":o.default.isConstructSignatureDeclaration(e)?a="construct-signature":o.default.isCallSignatureDeclaration(e)?a="call-signature":o.default.isGetAccessor(e)&&o.default.isIdentifier(e.name)?(a="Get-"+e.name.text,i=e.name.text):o.default.isSetAccessor(e)&&o.default.isIdentifier(e.name)?a="Set-"+e.name.text:o.default.isArrowFunction(e)&&(a=l(e,t,n));return a}(e,t,n,u);r.setName(_),(0,s.buildParameters)(e.parameters,r,n).forEach((e=>{r.addParameter(e)})),(0,s.buildModifiers)(e,n).forEach((e=>{r.addModifier(e)})),e.type&&r.setReturnType((0,s.buildReturnType)(e.type,n,r)),e.typeParameters&&(0,s.buildTypeParameters)(e.typeParameters,n,r).forEach((e=>{r.addTypeParameter(e)})),r.genSignature();let f=new i.BodyBuilder(r.getSignature(),e,r,n);r.setBodyBuilder(f),r.hasBuilderDecorator()?r.setViewTree((0,a.buildViewTree)(r)):t.hasComponentDecorator()&&"build()"==r.getSubSignature().toString()&&!r.containsModifier("StaticKeyword")&&t.setViewTree((0,a.buildViewTree)(r)),t.addMethod(r)};t.ObjectBindingPatternParameter=class{constructor(){this.propertyName="",this.name="",this.optional=!1,this.initializer=""}getName(){return this.name}setName(e){this.name=e}getPropertyName(){return this.propertyName}setPropertyName(e){this.propertyName=e}isOptional(){return this.optional}setOptional(e){this.optional=e}};t.ArrayBindingPatternParameter=class{constructor(){this.propertyName="",this.name="",this.optional=!1,this.initializer=""}getName(){return this.name}setName(e){this.name=e}getPropertyName(){return this.propertyName}setPropertyName(e){this.propertyName=e}isOptional(){return this.optional}setOptional(e){this.optional=e}};t.MethodParameter=class{constructor(){this.name="",this.optional=!1,this.objElements=[],this.arrayElements=[]}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}isOptional(){return this.optional}setOptional(e){this.optional=e}addObjElement(e){this.objElements.push(e)}getObjElements(){return this.objElements}setObjElements(e){this.objElements=e}addArrayElement(e){this.arrayElements.push(e)}getArrayElements(){return this.arrayElements}setArrayElements(e){this.arrayElements=e}}},6005:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buildArkNamespace=void 0;const i=r(6356),a=r(732),o=r(3433),s=r(8951),c=n(r(3221)),l=r(1812),u=r(3819),d=n(r(7015)),p=r(9718),_=r(4567),f=r(5482),g=d.default.getLogger();function m(e,t,r,n){r.setName(e.name.text),e.modifiers&&(0,u.buildModifiers)(e,n).forEach((e=>{r.addModifier(e)})),t instanceof o.ArkFile?(r.setDeclaringType("ArkFile"),r.setDeclaringArkFile(t)):(r.setDeclaringType("ArkNamespace"),r.setDeclaringArkNamespace(t),r.setDeclaringArkFile(t.getDeclaringArkFile())),r.setDeclaringInstance(t),r.genNamespaceSignature(),r.setCode(e.getText(n));const{line:d,character:h}=c.default.getLineAndCharacterOfPosition(n,e.getStart(n));if(r.setLine(d+1),r.setColumn(h+1),function(e,t,r){let n=new _.ArkClass;(0,a.buildDefaultArkClassFromArkNamespace)(e,n,t,r),e.setDefaultClass(n),e.addArkClass(n)}(r,e,n),e.body)if(c.default.isModuleBlock(e.body))!function(e,t,r){const n=e.statements;n.forEach((e=>{if(c.default.isModuleDeclaration(e)){let n=new l.ArkNamespace;n.setDeclaringArkNamespace(t),n.setDeclaringArkFile(t.getDeclaringArkFile()),m(e,t,n,r),t.addNamespace(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isClassDeclaration(e)||c.default.isInterfaceDeclaration(e)||c.default.isEnumDeclaration(e)||c.default.isStructDeclaration(e)){let n=new _.ArkClass;(0,a.buildNormalArkClassFromArkNamespace)(e,t,n,r),t.addArkClass(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isMethodDeclaration(e)){g.warn("This is a MethodDeclaration in ArkNamespace.");let n=new f.ArkMethod;(0,s.buildArkMethodFromArkClass)(e,t.getDefaultClass(),n,r),t.getDefaultClass().addMethod(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else if(c.default.isFunctionDeclaration(e)){let n=new f.ArkMethod;(0,s.buildArkMethodFromArkClass)(e,t.getDefaultClass(),n,r),t.getDefaultClass().addMethod(n),n.isExported()&&t.addExportInfo((0,p.buildExportInfo)(n,t.getDeclaringArkFile(),i.LineColPosition.buildFromNode(e,r)))}else c.default.isExportDeclaration(e)?(0,p.buildExportDeclaration)(e,r,t.getDeclaringArkFile()).forEach((e=>t.addExportInfo(e))):c.default.isExportAssignment(e)?(0,p.buildExportAssignment)(e,r,t.getDeclaringArkFile()).forEach((e=>t.addExportInfo(e))):g.info("Child joined default method of arkFile: ",c.default.SyntaxKind[e.kind])}))}(e.body,r,n);else if(c.default.isModuleDeclaration(e.body)){g.warn("This ModuleBody is an NamespaceDeclaration.");let t=new l.ArkNamespace;m(e.body,r,t,n)}else c.default.isIdentifier(e.body)?g.warn("ModuleBody is Identifier."):g.warn("JSDocNamespaceDeclaration found.");else g.warn("JSDocNamespaceDeclaration found.")}t.buildArkNamespace=m},2142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkSignatureBuilder=void 0;const n=r(7125);t.ArkSignatureBuilder=class{static buildMethodSignatureFromClassNameAndMethodName(e,t){const r=new n.ClassSignature;r.setClassName(e);const i=new n.MethodSubSignature;i.setMethodName(t);const a=new n.MethodSignature;return a.setDeclaringClassSignature(r),a.setMethodSubSignature(i),a}}},3819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tsNode2Value=t.buildTypeFromPreStr=t.tsNode2Type=t.buildReturnType=t.buildParameters=t.buildTypeParameters=t.buildHeritageClauses=t.buildModifiers=t.handlePropertyAccessExpression=t.handleQualifiedName=void 0;const i=n(r(3221)),a=r(9803),o=r(8596),s=r(8403),c=n(r(7015)),l=r(3755),u=r(3532),d=r(7125),p=r(4576),_=r(3938),f=r(4567),g=r(5482),m=r(2222),h=r(8951),y=r(732),v=c.default.getLogger();function b(e){let t=e.right.text,r="";return"Identifier"==i.default.SyntaxKind[e.left.kind]?r=e.left.text:"QualifiedName"==i.default.SyntaxKind[e.left.kind]&&(r=b(e.left)),r+"."+t}function x(e){let t=e.name.text,r="";return"Identifier"==i.default.SyntaxKind[e.expression.kind]||i.default.isStringLiteral(e.expression)?r=e.expression.text:i.default.isPropertyAccessExpression(e.expression)&&(r=x(e.expression)),r+"."+t}function D(e,t,r){if(i.default.isTypeReferenceNode(e)){const n=[];if(e.typeArguments)for(const i of e.typeArguments)n.push(D(i,t,r));let o=e.typeName;if(i.default.isQualifiedName(o)){let e=b(o);return new a.UnclearReferenceType(e,n)}{let e=o.text;return new a.UnclearReferenceType(e,n)}}if(i.default.isUnionTypeNode(e)){let n=[];return e.types.forEach((e=>{n.push(D(e,t,r))})),new a.UnionType(n)}if(i.default.isLiteralTypeNode(e))return S(i.default.SyntaxKind[e.literal.kind]);if(i.default.isTypeLiteralNode(e)){let n,i=new f.ArkClass;return n=r instanceof g.ArkMethod?r.getDeclaringArkClass():r instanceof s.ArkField?r.getDeclaringClass():r,n.getDeclaringArkNamespace()?(i.setDeclaringArkNamespace(n.getDeclaringArkNamespace()),i.setDeclaringArkFile(n.getDeclaringArkFile())):i.setDeclaringArkFile(n.getDeclaringArkFile()),(0,y.buildNormalArkClassFromArkMethod)(e,i,t),new a.ClassType(i.getSignature())}if(i.default.isFunctionTypeNode(e)){let n,i=new g.ArkMethod;return n=r instanceof g.ArkMethod?r.getDeclaringArkClass():r instanceof f.ArkClass?r:r.getDeclaringClass(),(0,h.buildArkMethodFromArkClass)(e,n,i,t),new a.CallableType(i.getSignature())}if(i.default.isTypeParameterDeclaration(e)){const t=e.name.text;return new a.TypeParameterType(t)}if(i.default.isTupleTypeNode(e)){const n=[];return e.elements.forEach((e=>{n.push(D(e,t,r))})),new a.TupleType(n)}return i.default.isArrayTypeNode(e)?new a.ArrayType(D(e.elementType,t,r),1):S(i.default.SyntaxKind[e.kind])}function S(e){let t="";switch(e){case"BooleanKeyword":case"FalseKeyword":case"TrueKeyword":t="boolean";break;case"NumberKeyword":case"NumericLiteral":case"FirstLiteralToken":t="number";break;case"StringKeyword":case"StringLiteral":t="string";break;case"UndefinedKeyword":t="undefined";break;case"NullKeyword":t="null";break;case"AnyKeyword":t="any";break;case"VoidKeyword":t="void";break;case"NeverKeyword":t="never";break;default:t=e}return o.TypeInference.buildTypeFromStr(t)}t.handleQualifiedName=b,t.handlePropertyAccessExpression=x,t.buildModifiers=function(e,t){var r;let n=new Set;function a(e){if("FirstContextualKeyword"==i.default.SyntaxKind[e.kind])n.add("AbstractKeyword");else if(i.default.isDecorator(e)){if(e.expression){let r="",a="";if(i.default.isIdentifier(e.expression))r=e.expression.text;else if(i.default.isCallExpression(e.expression)&&(i.default.isIdentifier(e.expression.expression)&&(r=e.expression.expression.text),e.expression.arguments.length>0)){const t=e.expression.arguments[0];if(i.default.isArrowFunction(t)){const e=t.body;i.default.isIdentifier(e)&&(a=e.text)}}const o=new m.Decorator(r);o.setContent(e.expression.getText(t)),""!=a&&o.setParam(a),n.add(o)}}else n.add(i.default.SyntaxKind[e.kind])}return i.default.canHaveModifiers(e)&&(null===(r=i.default.getModifiers(e))||void 0===r||r.forEach(a)),i.default.getAllDecorators(e).forEach(a),n},t.buildHeritageClauses=function(e){let t=new Map;return null==e||e.forEach((e=>{e.types.forEach((r=>{let n="";i.default.isIdentifier(r.expression)?n=r.expression.text:i.default.isPropertyAccessExpression(r.expression)?n=x(r.expression):v.warn("Other type expression found!!!"),t.set(n,i.default.SyntaxKind[e.token])}))})),t},t.buildTypeParameters=function(e,t,r){let n=[];return e.forEach((e=>{n.push(D(e,t,r)),e.modifiers&&v.warn("This typeparameter has modifiers."),e.expression&&v.warn("This typeparameter has expression.")})),n},t.buildParameters=function(e,t,r){let n=[];return e.forEach((e=>{let o=new h.MethodParameter;if(i.default.isIdentifier(e.name))o.setName(e.name.text);else if(i.default.isObjectBindingPattern(e.name)){o.setName("ObjectBindingPattern");let t=[];e.name.elements.forEach((e=>{let r=new h.ObjectBindingPatternParameter;e.propertyName&&(i.default.isIdentifier(e.propertyName)?r.setPropertyName(e.propertyName.text):v.warn("New propertyName of ObjectBindingPattern found, please contact developers to support this!")),e.name&&(i.default.isIdentifier(e.name)?r.setName(e.name.text):v.warn("New name of ObjectBindingPattern found, please contact developers to support this!")),e.initializer&&v.warn("TODO: support ObjectBindingPattern initializer."),e.dotDotDotToken&&r.setOptional(!0),t.push(r)})),o.setObjElements(t)}else if(i.default.isArrayBindingPattern(e.name)){o.setName("ArrayBindingPattern");let t=[];e.name.elements.forEach((e=>{let r=new h.ArrayBindingPatternParameter;i.default.isBindingElement(e)?(e.propertyName&&(i.default.isIdentifier(e.propertyName)?r.setPropertyName(e.propertyName.text):v.warn("New propertyName of ArrayBindingPattern found, please contact developers to support this!")),e.name&&(i.default.isIdentifier(e.name)?r.setName(e.name.text):v.warn("New name of ArrayBindingPattern found, please contact developers to support this!")),e.initializer&&v.warn("TODO: support ArrayBindingPattern initializer."),e.dotDotDotToken&&r.setOptional(!0)):i.default.isOmittedExpression(e)&&v.warn("TODO: support OmittedExpression for ArrayBindingPattern parameter name."),t.push(r)})),o.setArrayElements(t)}else v.warn("Parameter name is not identifier, ObjectBindingPattern nor ArrayBindingPattern, please contact developers to support this!");e.questionToken&&o.setOptional(!0),e.type?o.setType(D(e.type,r,t)):o.setType(a.UnknownType.getInstance()),e.initializer,e.dotDotDotToken,e.modifiers,n.push(o)})),n},t.buildReturnType=function(e,t,r){return e?D(e,t,r):new a.UnknownType},t.tsNode2Type=D,t.buildTypeFromPreStr=S,t.tsNode2Value=function e(t,r,n,o){var s,c;let m=i.default.SyntaxKind[t.kind];if("NumericLiteral"===m||"StringLiteral"===m||"TrueKeyword"===m||"FalseKeyword"===m||"FirstLiteralToken"===m||"NullKeyword"===m){let e=S(m),n=t.getText(r);return new l.Constant(n,e)}if(i.default.isNewExpression(t))if(i.default.isIdentifier(t.expression)){let e=t.expression.escapedText.toString(),n=[];null===(s=t.typeArguments)||void 0===s||s.forEach((e=>{n.push(S(i.default.SyntaxKind[e.kind]))}));let o=new a.UnionType(n),p=[];if(null===(c=t.arguments)||void 0===c||c.forEach((e=>{let t=e.getText(r),n=a.AnyType.getInstance();"Identifier"!=i.default.SyntaxKind[e.kind]&&(n=S(i.default.SyntaxKind[e.kind])),p.push(new l.Constant(t,n))})),"Array"!==e){let t=new d.ClassSignature;t.setClassName(e);const r=new a.ClassType(t);return new u.ArkNewExpr(r)}if(0===p.length)return new u.ArkNewArrayExpr(o,new l.Constant("0",new a.NumberType));if(1==p.length&&p[0].getType()instanceof a.NumberType)return new u.ArkNewArrayExpr(o,p[0]);if(1!=p.length||p[0].getType()instanceof a.NumberType){if(p.length>1){let e=new u.ArkNewArrayExpr(o,new l.Constant(p.length.toString(),a.NumberType.getInstance()));return v.warn("TODO, Local number or others."),e}}else v.warn("TODO, Local number or others.")}else{if(i.default.isPropertyAccessExpression(t.expression)){const e=x(t.expression);let r=new d.ClassSignature;r.setClassName(e);const n=new a.ClassType(r);return new u.ArkNewExpr(n)}v.warn("Other newExpr type found for ts node.")}else{if(i.default.isArrayLiteralExpression(t)){let i=[];t.elements.forEach((t=>{let a=e(t,r,n);null==a?i.push(new l.Constant("",S("UndefinedKeyword"))):i.push(a)}));let o=[];i.forEach((e=>{o.push(e.getType())}));let s=new a.UnionType(o);return new u.ArrayLiteralExpr(i,s)}if(i.default.isBinaryExpression(t)){let a=e(t.left,r,n),o=e(t.right,r,n),s=i.default.tokenToString(t.operatorToken.kind);return new u.ArkBinopExpr(a,o,s)}if(i.default.isPrefixUnaryExpression(t)){let a=i.default.SyntaxKind[t.operator],o=e(t.operand,r,n);return new u.ArkUnopExpr(o,a)}if(i.default.isIdentifier(t)){let e=t.escapedText.toString();return new p.Local(e)}if(i.default.isPropertyAccessExpression(t)){let i=t.name.escapedText.toString();const a=new d.FieldSignature;a.setFieldName(i);let o=e(t.expression,r,n);return new _.ArkInstanceFieldRef(o,a)}if(i.default.isCallExpression(t)){let i=e(t.expression,r,n),a=[];t.arguments.forEach((t=>{a.push(e(t,r,n))}));let o=new d.ClassSignature,s=new d.MethodSubSignature,c=new d.MethodSignature;if(c.setDeclaringClassSignature(o),c.setMethodSubSignature(s),i instanceof _.ArkInstanceFieldRef){let e=i.getFieldName(),t=i.getBase();return s.setMethodName(e),new u.ArkInstanceInvokeExpr(t,c,a)}return i instanceof _.ArkStaticFieldRef?(s.setMethodName(i.getFieldName()),new u.ArkStaticInvokeExpr(c,a)):(s.setMethodName(t.getText(r)),new u.ArkStaticInvokeExpr(c,a))}if(i.default.isObjectLiteralExpression(t)){const e=n.getDeclaringArkNamespace(),i=n.getDeclaringArkFile();let s=new f.ArkClass;e?((0,y.buildNormalArkClassFromArkNamespace)(t,e,s,r,o),e.addArkClass(s)):((0,y.buildNormalArkClassFromArkFile)(t,i,s,r,o),i.addArkClass(s));let c=s.getSignature();const l=new a.ClassType(c);return new u.ObjectLiteralExpr(s,l)}if(i.default.isArrowFunction(t)){let i=new g.ArkMethod;(0,h.buildArkMethodFromArkClass)(t,n,i,r);let a=[];return t.parameters.forEach((t=>{a.push(e(t,r,n))})),n.addMethod(i),new u.ArkStaticInvokeExpr(i.getSignature(),a)}if(i.default.isParameter(t)){if(i.default.isIdentifier(t.name))return new p.Local(t.name.getText(r));i.default.isObjectBindingPattern(t.name)?v.warn("Need to build ObjectBindingPattern value."):v.warn("Need to build ArrayBindingPattern value.")}else{if(t.kind===i.default.SyntaxKind.ThisKeyword)return new _.ArkThisRef(n.getSignature().getType());if(i.default.isConditionalExpression(t));else{if(i.default.isAsExpression(t)){const i=e(t.expression,r,n),a=D(t.type,r,n);return new u.ArkCastExpr(i,a)}if(i.default.isTemplateExpression(t)){let i=[];t.templateSpans.forEach((t=>{i.push(e(t.expression,r,n));const o=t.literal.rawText,s=o||"";i.push(new l.Constant(s,a.StringType.getInstance()))}))}else{if(i.default.isParenthesizedExpression(t))return e(t.expression,r,n);if(i.default.isAwaitExpression(t))return e(t.expression,r,n);if(i.default.isNonNullExpression(t))return e(t.expression,r,n);i.default.isElementAccessExpression(t)||v.warn("Other type found for ts node.")}}}}return new l.Constant("",a.UnknownType.getInstance())}},5513:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceFilePrinter=t.SourceNamespacePrinter=t.SourceClassPrinter=t.SourceMethodPrinter=t.DotFilePrinter=t.DotNamespacePrinter=t.DotClassPrinter=t.DotMethodPrinter=t.PrinterBuilder=t.Printer=t.Scene=t.SceneConfig=t.Config=t.MethodSignature=t.FileSignature=t.ImportInfo=t.ExportInfo=t.ArkField=t.ArkMethod=t.ArkClass=t.ArkNamespace=t.ArkFile=t.Cfg=t.BasicBlock=t.LineColPosition=t.Decorator=t.Local=t.Constant=void 0;var a=r(3755);Object.defineProperty(t,"Constant",{enumerable:!0,get:function(){return a.Constant}});var o=r(4576);Object.defineProperty(t,"Local",{enumerable:!0,get:function(){return o.Local}});var s=r(2222);Object.defineProperty(t,"Decorator",{enumerable:!0,get:function(){return s.Decorator}});var c=r(6356);Object.defineProperty(t,"LineColPosition",{enumerable:!0,get:function(){return c.LineColPosition}}),i(r(9029),t),i(r(9803),t),i(r(3938),t),i(r(3532),t);var l=r(7451);Object.defineProperty(t,"BasicBlock",{enumerable:!0,get:function(){return l.BasicBlock}});var u=r(6624);Object.defineProperty(t,"Cfg",{enumerable:!0,get:function(){return u.Cfg}});var d=r(3433);Object.defineProperty(t,"ArkFile",{enumerable:!0,get:function(){return d.ArkFile}});var p=r(1812);Object.defineProperty(t,"ArkNamespace",{enumerable:!0,get:function(){return p.ArkNamespace}});var _=r(4567);Object.defineProperty(t,"ArkClass",{enumerable:!0,get:function(){return _.ArkClass}});var f=r(5482);Object.defineProperty(t,"ArkMethod",{enumerable:!0,get:function(){return f.ArkMethod}});var g=r(8403);Object.defineProperty(t,"ArkField",{enumerable:!0,get:function(){return g.ArkField}});var m=r(7733);Object.defineProperty(t,"ExportInfo",{enumerable:!0,get:function(){return m.ExportInfo}});var h=r(4522);Object.defineProperty(t,"ImportInfo",{enumerable:!0,get:function(){return h.ImportInfo}});var y=r(7125);Object.defineProperty(t,"FileSignature",{enumerable:!0,get:function(){return y.FileSignature}}),Object.defineProperty(t,"MethodSignature",{enumerable:!0,get:function(){return y.MethodSignature}});var v=r(4467);Object.defineProperty(t,"Config",{enumerable:!0,get:function(){return v.Config}}),Object.defineProperty(t,"SceneConfig",{enumerable:!0,get:function(){return v.SceneConfig}});var b=r(6805);Object.defineProperty(t,"Scene",{enumerable:!0,get:function(){return b.Scene}});var x=r(527);Object.defineProperty(t,"Printer",{enumerable:!0,get:function(){return x.Printer}});var D=r(7952);Object.defineProperty(t,"PrinterBuilder",{enumerable:!0,get:function(){return D.PrinterBuilder}});var S=r(7194);Object.defineProperty(t,"DotMethodPrinter",{enumerable:!0,get:function(){return S.DotMethodPrinter}}),Object.defineProperty(t,"DotClassPrinter",{enumerable:!0,get:function(){return S.DotClassPrinter}}),Object.defineProperty(t,"DotNamespacePrinter",{enumerable:!0,get:function(){return S.DotNamespacePrinter}}),Object.defineProperty(t,"DotFilePrinter",{enumerable:!0,get:function(){return S.DotFilePrinter}});var T=r(5825);Object.defineProperty(t,"SourceMethodPrinter",{enumerable:!0,get:function(){return T.SourceMethod}});var C=r(8070);Object.defineProperty(t,"SourceClassPrinter",{enumerable:!0,get:function(){return C.SourceClass}});var E=r(4865);Object.defineProperty(t,"SourceNamespacePrinter",{enumerable:!0,get:function(){return E.SourceNamespace}});var k=r(3932);Object.defineProperty(t,"SourceFilePrinter",{enumerable:!0,get:function(){return k.SourceFilePrinter}})},6039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArkStream=t.ArkCodeBuffer=void 0;class r{constructor(e=""){this.output=[],this.indent="",this.indent=e}write(e){return this.output.push(e),this}writeLine(e){return this.write(e),this.write("\n"),this}writeSpace(e){return 0==e.length||(this.write(e),this.write(" ")),this}writeStringLiteral(e){return this.write(`'${e}'`),this}writeIndent(){return this.write(this.indent),this}incIndent(){return this.indent+=" ",this}decIndent(){return this.indent.length>=2&&(this.indent=this.indent.substring(0,this.indent.length-2)),this}getIndent(){return this.indent}toString(){return this.output.join("")}clear(){this.output=[]}}t.ArkCodeBuffer=r;t.ArkStream=class extends r{constructor(e){super(""),this.streamOut=e}write(e){return this.streamOut.write(e),this}close(){this.streamOut.close()}}},7194:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DotFilePrinter=t.DotNamespacePrinter=t.DotClassPrinter=t.DotMethodPrinter=void 0;const n=r(527);class i extends n.Printer{constructor(e,t=!1){super(),this.method=e,this.nesting=t}dump(){this.printer.clear(),this.nesting?this.printer.writeIndent().writeLine(`subgraph "cluster_${this.method.getSignature()}" {`):this.printer.writeIndent().writeLine(`digraph "${this.method.getSignature()}" {`),this.printer.incIndent(),this.printer.writeIndent().writeLine(`label="${this.method.getSignature()}";`);let e=this.method.getBody().getCfg().getBlocks(),t=`Node${this.stringHashCode(this.method.getSignature().toString())}`;return this.printBlocks(e,t),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting?this.printer.writeIndent().writeLine(`subgraph "cluster_Original_${this.method.getSignature()}" {`):this.printer.writeIndent().writeLine(`digraph "${this.method.getSignature()}" {`),this.printer.incIndent(),this.printer.writeIndent().writeLine(`label="${this.method.getSignature()}_original";`);let e=this.method.getBody().getOriginalCfg().getBlocks(),t=`NodeOriginal${this.stringHashCode(this.method.getSignature().toString())}`;return this.printBlocks(e,t),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}stringHashCode(e){let t=0;for(let r=0;r ${r.get(e)};`)}getBlockContent(e,t){let r=[];for(let t of e.getStmts())r.push(t.toString().replace(/"/g,'\\"'));return r.join("\n "+t)}}t.DotMethodPrinter=i;class a extends n.Printer{constructor(e,t=!1){super(),this.cls=e,this.nesting=t}dump(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.cls.getName()}" {`),this.printer.incIndent());for(let e of this.cls.getMethods()){let t=new i(e,!0);this.printer.write(t.dump())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.cls.getName()}" {`),this.printer.incIndent());for(let e of this.cls.getMethods()){let t=new i(e,!0);this.printer.write(t.dumpOriginal())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}}t.DotClassPrinter=a;class o extends n.Printer{constructor(e,t=!1){super(),this.ns=e,this.nesting=t}dump(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.ns.getName()}" {`),this.printer.incIndent());for(let e of this.ns.getAllMethodsUnderThisNamespace()){let t=new i(e,!0);this.printer.write(t.dump())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.nesting||(this.printer.writeLine(`digraph "${this.ns.getName()}" {`),this.printer.incIndent());for(let e of this.ns.getAllMethodsUnderThisNamespace()){let t=new i(e,!0);this.printer.write(t.dumpOriginal())}return this.nesting||(this.printer.decIndent(),this.printer.writeLine("}")),this.printer.toString()}}t.DotNamespacePrinter=o;class s extends n.Printer{constructor(e){super(),this.arkFile=e}dump(){this.printer.clear(),this.printer.writeLine(`digraph "${this.arkFile.getName()}" {`),this.printer.incIndent();for(let e of this.arkFile.getNamespaces()){let t=new o(e,!0);this.printer.write(t.dump())}for(let e of this.arkFile.getClasses()){let t=new a(e,!0);this.printer.write(t.dump())}return this.printer.decIndent(),this.printer.writeLine("}"),this.printer.toString()}dumpOriginal(){this.printer.clear(),this.printer.writeLine(`digraph "${this.arkFile.getName()}" {`),this.printer.incIndent();for(let e of this.arkFile.getNamespaces()){let t=new o(e,!0);this.printer.write(t.dumpOriginal())}for(let e of this.arkFile.getClasses()){let t=new a(e,!0);this.printer.write(t.dumpOriginal())}return this.printer.decIndent(),this.printer.writeLine("}"),this.printer.toString()}}t.DotFilePrinter=s},527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Printer=void 0;const n=r(6039);t.Printer=class{constructor(e=""){this.printer=new n.ArkCodeBuffer(e)}}},7952:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrinterBuilder=void 0;const i=n(r(9896)),a=r(6928),o=r(6039),s=r(7194),c=r(3932);class l{constructor(e=""){this.outputDir=e}static dump(e,t){let r=new o.ArkStream(i.default.createWriteStream(t));r.write(e.dump()),r.close()}static dumpOriginal(e,t){let r=new o.ArkStream(i.default.createWriteStream(t));r.write(e.dumpOriginal()),r.close()}getOutputDir(e){return""===this.outputDir?(0,a.join)(e.getProjectDir(),"..","output"):(0,a.join)(this.outputDir)}dumpToDot(e,t=void 0){let r=t;void 0===t&&(r=(0,a.join)(this.getOutputDir(e),e.getName()+".dot")),i.default.mkdirSync((0,a.dirname)(r),{recursive:!0});let n=new s.DotFilePrinter(e);l.dump(n,r)}dumpToTs(e,t=void 0){let r=t;void 0===t&&(r=(0,a.join)(this.getOutputDir(e),e.getName())),i.default.mkdirSync((0,a.dirname)(r),{recursive:!0});let n=new c.SourceFilePrinter(e);l.dump(n,r)}}t.PrinterBuilder=l},4985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceBase=void 0;const n=r(2222),i=r(527);class a extends i.Printer{constructor(e,t=""){super(t),this.arkFile=e}getArkFile(){return this.arkFile}getMethod(e){return this.getArkFile().getScene().getMethod(e)}getClass(e){return this.getArkFile().getScene().getClass(e)}getPrinter(){return this.printer}transTemp2Code(e){return e.getName()}isInBuilderMethod(){return this.inBuilder}printDecorator(e){e.forEach((e=>{e instanceof n.Decorator&&this.printer.writeIndent().writeLine(`@${e.getContent()}`)}))}modifiersToString(e){let t=[];return e.forEach((e=>{e instanceof n.Decorator||t.push(this.resolveKeywordType(e))})),t.join(" ")}resolveKeywordType(e){let t=[];for(let r of e.split("|"))r=r.trim(),0!=r.length&&(r.endsWith("Keyword")&&(r=r.substring(0,r.length-7).toLowerCase()),t.push(r));return t.join("|")}resolveMethodName(e){return"_Constructor"===e?"constructor":e.startsWith("Get-")?e.replace("Get-","get "):e.startsWith("Set-")?e.replace("Set-","set "):e}}t.SourceBase=a},2604:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StmtReader=t.SourceBody=void 0;const i=r(4576),a=r(9029),o=n(r(7015)),s=r(6039),c=r(2082),l=r(5404),u=r(2029),d=o.default.getLogger();t.SourceBody=class{constructor(e,t,r){this.stmts=[],this.printer=new s.ArkCodeBuffer(e),this.method=t,this.arkBody=t.getBody(),this.cfgUtils=new l.CfgUitls(t.getCfg()),this.tempCodeMap=new Map,this.tempVisitor=new Set,this.definedLocals=new Set,this.inBuilder=r,this.buildSourceStmt()}isInBuilderMethod(){return this.inBuilder}isInDefaultMethod(){return this.method.isDefaultArkMethod()}getArkFile(){return this.method.getDeclaringArkFile()}getMethod(e){return this.method.getDeclaringArkFile().getScene().getMethod(e)}getClass(e){return u.ModelUtils.getClass(this.method,e)}getLocals(){return this.arkBody.getLocals()}defineLocal(e){this.definedLocals.add(e)}isLocalDefined(e){return this.definedLocals.has(e)}getStmtReader(){return this.stmtReader}setTempCode(e,t){this.tempCodeMap.set(e,t)}transTemp2Code(e){return this.tempCodeMap.has(e.getName())?(this.tempVisitor.add(e.getName()),this.tempCodeMap.get(e.getName())):e.getName()}hasTempVisit(e){return this.tempVisitor.has(e)}getPrinter(){return this.printer}dump(){return this.printStmts(),this.printer.toString()}buildSourceStmt(){let e=this.arkBody.getCfg().getBlocks(),t=new Set;for(const r of e)t.has(r)||(t.add(r),this.buildBasicBlock(r,t,null))}buildBasicBlock(e,t,r){let n=this.sortStmt(e.getStmts());for(this.stmtReader=new p(n);this.stmtReader.hasNext();){let n=this.stmtReader.next();if(n instanceof a.ArkIfStmt){let i=!1;if(this.cfgUtils.isForBlock(e)?(this.pushStmt(new c.SourceForStmt(this,n)),i=!0):this.cfgUtils.isWhileBlock(e)&&(this.pushStmt(new c.SourceWhileStmt(this,n)),i=!0),i){for(const n of this.cfgUtils.getLoopPath(e))t.has(n)||(t.add(n),this.buildBasicBlock(n,t,r));this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}else{this.pushStmt(new c.SourceIfStmt(this,n));let r=e.getSuccessors();r.length>0&&!t.has(r[0])&&(t.add(r[0]),this.buildBasicBlock(r[0],t,n)),r.length>1&&this.cfgUtils.isIfElseBlock(e)&&!t.has(r[1])&&(this.pushStmt(new c.SourceElseStmt(this,n)),t.add(r[1]),this.buildBasicBlock(r[1],t,n)),this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}}else if(n instanceof a.ArkSwitchStmt){this.pushStmt(new c.SourceSwitchStmt(this,n));let r=0;for(const i of e.getSuccessors()){if(!t.has(i)){t.add(i);let e=new c.SourceCaseStmt(this,n,r);this.pushStmt(e),this.buildBasicBlock(i,t,n),e.isDefault()&&this.pushStmt(new c.SourceCompoundEndStmt(this,n,""))}r++}this.pushStmt(new c.SourceCompoundEndStmt(this,n,"}"))}else n instanceof a.ArkGotoStmt?r instanceof a.ArkSwitchStmt?this.pushStmt(new c.SourceCompoundEndStmt(this,n," break;")):this.cfgUtils.isConinueBlock(e)?this.pushStmt(new c.SourceContinueStmt(this,n)):this.pushStmt(new c.SourceBreakStmt(this,n)):this.pushStmt((0,c.stmt2SourceStmt)(this,n))}}printStmts(){for(let e of this.stmts)this.printer.write(e.dump())}getStmts(){return this.stmts}pushStmt(e){let t=this.getLastLine();e.getLine()0?this.stmts[this.stmts.length-1].getLine():0}sortStmt(e){for(let n=e.length-1;n>0;n--)if(e[n]instanceof a.ArkInvokeStmt&&e[n].getInvokeExpr()){let i=e[n].getInvokeExpr();if("constructor"==i.getMethodSignature().getMethodSubSignature().getMethodName()){let e=t(n,i.getBase().getName());e>=0&&e=0;n--)if(e[n]instanceof a.ArkAssignStmt&&e[n].getLeftOp()instanceof i.Local&&e[n].getLeftOp().getName()==r)return n;return-1}function r(t,r){let n=e[r];for(let n=r;nnext No more stmt."),new Error("No more stmt.");let e=this.stmts[this.pos];return this.pos++,e}rollback(){if(0==this.pos)throw d.error("SourceBody: StmtReader->rollback No more stmt to rollback."),new Error("No more stmt to rollback.");this.pos--}}t.StmtReader=p},8070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceDefaultClass=t.SourceClass=void 0;const n=r(4985),i=r(1374),a=r(5825),o=r(3257),s=r(887);class c extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.cls=e,this.transformer=new o.SourceTransformer(this)}getLine(){return this.cls.getLine()}dump(){if(this.printer.clear(),"Object"==this.cls.getOriginType())return this.dumpObject();if("TypeLiteral"==this.cls.getOriginType())return this.dumpTypeLiteral();this.printDecorator(this.cls.getModifiers()),this.printer.writeIndent().writeSpace(this.modifiersToString(this.cls.getModifiers())).write(`${this.cls.getOriginType().toLowerCase()} `),s.SourceUtils.isAnonymousClass(this.cls.getName())||this.printer.write(this.cls.getName()),this.cls.getTypeParameter().length>0&&this.printer.write(`<${this.transformer.typeArrayToString(this.cls.getTypeParameter())}>`),this.cls.getSuperClassName()&&!this.cls.hasComponentDecorator()&&this.printer.write(` extends ${this.cls.getSuperClassName()}`),this.cls.getImplementedInterfaceNames().length>0&&this.printer.write(` implements ${this.cls.getImplementedInterfaceNames().join(", ")}`),this.printer.writeLine(" {"),this.printer.incIndent();let e=[];return e.push(...this.printFields()),e.push(...this.printMethods()),e.sort(((e,t)=>e.getLine()-t.getLine())),e.forEach((e=>{this.printer.write(e.dump())})),this.printer.decIndent(),this.printer.writeIndent().write("}"),s.SourceUtils.isAnonymousClass(this.cls.getName())||this.printer.writeLine(""),this.printer.toString()}dumpOriginal(){return this.cls.getCode()+"\n"}dumpObject(){return this.printer.write("{"),this.cls.getFields().forEach(((e,t,r)=>{this.printer.write(e.getName());let n=e.getInitializer();n&&this.printer.write(`: ${this.transformer.valueToString(n)}`),t!=r.length-1&&this.printer.write(", ")})),this.printer.write("}"),this.printer.toString()}dumpTypeLiteral(){return this.printer.write("{"),this.cls.getFields().forEach(((e,t,r)=>{this.printer.write(`${e.getName()}: ${this.transformer.typeToString(e.getType())}`),t!=r.length-1&&this.printer.write(", ")})),this.printer.write("}"),this.printer.toString()}printMethods(){let e=[];for(let t of this.cls.getMethods())s.SourceUtils.isConstructorMethod(t.getName())&&this.cls.hasViewTree()||(t.isDefaultArkMethod()?e.push(...new a.SourceMethod(t,this.printer.getIndent()).dumpDefaultMethod()):s.SourceUtils.isAnonymousMethod(t.getName())||e.push(new a.SourceMethod(t,this.printer.getIndent())));return e}printFields(){let e=[];for(let t of this.cls.getFields())"GetAccessor"!=t.getFieldType()&&e.push(new i.SourceField(t,this.printer.getIndent()));return e}}t.SourceClass=c;t.SourceDefaultClass=class extends c{constructor(e,t=""){super(e,t)}getLine(){return this.cls.getLine()}dump(){return this.printMethods(),this.printer.toString()}dumpOriginal(){for(let e of this.cls.getMethods())if(e.isDefaultArkMethod())for(let t of e.getBody().getOriginalCfg().getStmts()){let e=t.toString();e.startsWith("import")||"return;"===e||this.printer.writeLine(e)}else this.printer.writeLine(e.getCode());return this.printer.toString()}}},1374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceField=void 0;const n=r(4985),i=r(3257);class a extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringClass().getDeclaringArkFile(),t),this.field=e,this.transformer=new i.SourceTransformer(this)}getLine(){return this.field.getOriginPosition().getLineNo()}dump(){this.printer.clear(),this.printDecorator(this.field.getModifiers()),this.printer.writeIndent(),"EnumMember"!==this.field.getFieldType()&&this.printer.writeSpace(this.modifiersToString(this.field.getModifiers())),this.printer.write(this.field.getName()),this.field.getQuestionToken()&&this.printer.write("?"),this.field.getExclamationToken()&&this.printer.write("!"),this.field.getType()&&"EnumMember"!==this.field.getFieldType()&&this.printer.write(`: ${this.transformer.typeToString(this.field.getType())}`);let e=this.field.getInitializer();return e&&this.printer.write(` = ${this.transformer.valueToString(e)}`),"EnumMember"==this.field.getFieldType()?this.printer.writeLine(","):this.printer.writeLine(";"),this.printer.toString()}dumpOriginal(){return this.field.getCode()+"\n"}}t.SourceField=a},3932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceFilePrinter=void 0;const n=r(527),i=r(8070),a=r(5825),o=r(9524),s=r(4865),c=r(887);class l extends n.Printer{constructor(e){super(),this.items=[],this.arkFile=e}dump(){this.printer.clear();for(let e of this.arkFile.getImportInfos())this.items.push(new o.SourceImportInfo(e));for(let e of this.arkFile.getNamespaces())this.items.push(new s.SourceNamespace(e));for(let e of this.arkFile.getClasses())if(e.isDefaultArkClass())for(let t of e.getMethods())t.isDefaultArkMethod()?this.items.push(...new a.SourceMethod(t,this.printer.getIndent()).dumpDefaultMethod()):c.SourceUtils.isAnonymousMethod(t.getName())||this.items.push(new a.SourceMethod(t));else c.SourceUtils.isAnonymousClass(e.getName())||this.items.push(new i.SourceClass(e));for(let e of this.arkFile.getExportInfos())this.items.push(new o.SourceExportInfo(e));return this.items.sort(((e,t)=>e.getLine()-t.getLine())),this.items.forEach((e=>{this.printer.write(e.dump())})),this.printer.toString()}dumpOriginal(){return this.arkFile.getCode()}}t.SourceFilePrinter=l},5825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMethod=void 0;const n=r(9803),i=r(6039),a=r(4985),o=r(2604),s=r(3257),c=r(887);class l extends a.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.method=e,this.transformer=new s.SourceTransformer(this),this.inBuilder=this.initInBuilder()}setInBuilder(e){this.inBuilder=e}dump(){return this.printer.clear(),this.method.isDefaultArkMethod()?this.printBody(this.method):this.printMethod(this.method),this.printer.toString()}dumpOriginal(){return this.method.getCode()+"\n"}getLine(){let e=this.method.getLine();if(e>0)return e;for(const e of this.method.getCfg().getStmts().reverse())if(e.getOriginPositionInfo().getLineNo()>0)return e.getOriginPositionInfo().getLineNo();return e}dumpDefaultMethod(){return new o.SourceBody(this.printer.getIndent(),this.method,!1).getStmts()}printMethod(e){this.printDecorator(e.getModifiers()),this.printer.writeIndent().write(this.methodProtoToString(e)),e.containsModifier("AbstractKeyword")||"interface"==e.getDeclaringArkClass().getOriginType().toLowerCase()?this.printer.writeLine(";"):(this.printer.writeLine(" {"),this.printer.incIndent(),this.printBody(e),this.printer.decIndent(),this.printer.writeIndent(),c.SourceUtils.isAnonymousMethod(e.getName())?this.printer.write("}"):this.printer.writeLine("}"))}printBody(e){let t=new o.SourceBody(this.printer.getIndent(),e,this.inBuilder);this.printer.write(t.dump())}methodProtoToString(e){var t;let r=new i.ArkCodeBuffer;if(r.writeSpace(this.modifiersToString(e.getModifiers())),c.SourceUtils.isAnonymousMethod(e.getName())||((null===(t=e.getDeclaringArkClass())||void 0===t?void 0:t.isDefaultArkClass())&&r.writeSpace("function"),r.write(this.resolveMethodName(e.getName()))),e.getTypeParameter().length>0){let t=[];e.getTypeParameter().forEach((e=>{t.push(this.transformer.typeToString(e))})),r.write(`<${this.transformer.typeArrayToString(e.getTypeParameter())}>`)}let a=[];e.getParameters().forEach((e=>{let t=e.getName();e.isOptional()&&(t+="?"),e.getType()&&(t+=": "+this.transformer.typeToString(e.getType())),a.push(t)})),r.write(`(${a.join(", ")})`);const o=e.getReturnType();return o instanceof n.UnknownType||r.write(`: ${this.transformer.typeToString(o)}`),c.SourceUtils.isAnonymousMethod(e.getName())&&r.write(" =>"),r.toString()}toArrowFunctionTypeString(){let e=new i.ArkCodeBuffer,t=[];this.method.getParameters().forEach((e=>{let r=e.getName();e.isOptional()&&(r+="?"),e.getType()&&(r+=": "+this.transformer.typeToString(e.getType())),t.push(r)})),e.write(`(${t.join(", ")}) => `);const r=this.method.getReturnType();return r instanceof n.UnknownType||e.writeSpace(`${this.transformer.typeToString(r)}`),e.toString()}initInBuilder(){return this.method.hasBuilderDecorator()||"build"==this.method.getName()&&!this.method.containsModifier("StaticKeyword")&&this.method.getDeclaringArkClass().hasViewTree()}}t.SourceMethod=l},9524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceImportInfo=t.SourceExportInfo=void 0;const n=r(7733),i=r(4985);class a extends i.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.info=e}getLine(){return this.info.getOriginTsPosition().getLineNo()}dump(){return this.printer.clear(),this.info.getExportClauseType()!==n.ExportType.UNKNOWN||("*"===this.info.getExportClauseName()?this.info.getNameBeforeAs()&&"*"!=this.info.getNameBeforeAs()?this.printer.writeIndent().write(`export ${this.info.getNameBeforeAs()} as ${this.info.getExportClauseName()}`):this.printer.writeIndent().write(`export ${this.info.getExportClauseName()}`):this.info.getNameBeforeAs()?this.printer.write(`export {${this.info.getNameBeforeAs()} as ${this.info.getExportClauseName()}}`):this.printer.write(`export {${this.info.getExportClauseName()}}`),this.info.getExportFrom()&&this.printer.write(` from '${this.info.getExportFrom()}'`),this.printer.writeLine(";")),this.printer.toString()}dumpOriginal(){return this.info.getTsSourceCode()}}t.SourceExportInfo=a;class o extends i.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.info=e}getLine(){return this.info.getOriginTsPosition().getLineNo()}dump(){return"Identifier"===this.info.getImportType()?this.printer.writeIndent().writeLine(`import ${this.info.getImportClauseName()} from '${this.info.getImportFrom()}';`):"NamedImports"===this.info.getImportType()?this.info.getNameBeforeAs()?this.printer.writeIndent().writeLine(`import {${this.info.getNameBeforeAs()} as ${this.info.getImportClauseName()}} from '${this.info.getImportFrom()}';`):this.printer.writeIndent().writeLine(`import {${this.info.getImportClauseName()}} from '${this.info.getImportFrom()}';`):"NamespaceImport"===this.info.getImportType()?this.printer.writeIndent().writeLine(`import * as ${this.info.getImportClauseName()} from '${this.info.getImportFrom()}';`):"EqualsImport"==this.info.getImportType()?this.printer.writeIndent().writeLine(`import ${this.info.getImportClauseName()} = require('${this.info.getImportFrom()}');`):this.printer.writeIndent().writeLine(`import '${this.info.getImportFrom()}';`),this.printer.toString()}dumpOriginal(){return this.info.getTsSourceCode()}}t.SourceImportInfo=o},4865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceNamespace=void 0;const n=r(4985),i=r(8070),a=r(5825),o=r(9524),s=r(887);class c extends n.SourceBase{constructor(e,t=""){super(e.getDeclaringArkFile(),t),this.ns=e}getLine(){return this.ns.getLine()}dump(){this.printer.writeIndent().writeSpace(this.modifiersToString(this.ns.getModifiers())).writeLine(`namespace ${this.ns.getName()} {`),this.printer.incIndent();let e=[];for(let t of this.ns.getClasses())if(!s.SourceUtils.isAnonymousClass(t.getName()))if(t.isDefaultArkClass())for(let r of t.getMethods())r.isDefaultArkMethod()?e.push(...new a.SourceMethod(r,this.printer.getIndent()).dumpDefaultMethod()):s.SourceUtils.isAnonymousMethod(r.getName())||e.push(new a.SourceMethod(r,this.printer.getIndent()));else e.push(new i.SourceClass(t,this.printer.getIndent()));for(let t of this.ns.getNamespaces())e.push(new c(t,this.printer.getIndent()));for(let t of this.ns.getExportInfos())e.push(new o.SourceExportInfo(t,this.printer.getIndent()));return e.sort(((e,t)=>e.getLine()-t.getLine())),e.forEach((e=>{this.printer.write(e.dump())})),this.printer.decIndent(),this.printer.writeIndent().writeLine("}"),this.printer.toString()}dumpOriginal(){return this.ns.getCode()}}t.SourceNamespace=c},2082:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stmt2SourceStmt=t.SourceNewArrayExpr=t.SourceCommonStmt=t.SourceCompoundEndStmt=t.SourceCaseStmt=t.SourceSwitchStmt=t.SourceReturnVoidStmt=t.SourceReturnStmt=t.SourceBreakStmt=t.SourceContinueStmt=t.SourceElseStmt=t.SourceForStmt=t.SourceWhileStmt=t.SourceIfStmt=t.SourceInvokeStmt=t.SourceAssignStmt=t.SourceStmt=void 0;const i=r(3755),a=r(3532),o=r(4576),s=r(3938),c=r(9029),l=r(9803),u=n(r(7015)),d=r(3257),p=r(887),_=u.default.getLogger();class f{constructor(e,t){this.original=t,this.context=e,this.line=t.getOriginPositionInfo().getLineNo(),this.transformer=new d.SourceTransformer(e),this.transfer2ts()}getLine(){return this.line}setLine(e){this.line=e}dump(){return this.text.length>0?`${this.printer.getIndent()}${this.text}\n`:""}get printer(){return this.context.getPrinter()}toString(){return this.text}setText(e){this.text=e}getIntent(){return this.context.getPrinter().getIndent()}isLocalTempValue(e){return e instanceof o.Local&&p.SourceUtils.isTemp(e.getName())}}var g;t.SourceStmt=f,function(e){e[e.NORMAL=0]="NORMAL",e[e.TEMP_REPLACE=1]="TEMP_REPLACE",e[e.COMPONENT_CREATE=2]="COMPONENT_CREATE"}(g||(g={}));class m extends f{constructor(e,t){super(e,t)}transfer2ts(){if(this.leftOp=this.original.getLeftOp(),this.rightOp=this.original.getRightOp(),_.debug("SourceAssignStmt->transfer2ts",this.leftOp,this.rightOp),this.leftOp instanceof o.Local&&"this"==this.leftOp.getName()||this.rightOp instanceof i.Constant&&"undefined"==this.rightOp.getValue()||this.rightOp instanceof s.ArkParameterRef)return this.setText(""),void(this.dumpType=g.NORMAL);this.leftCode=this.transformer.valueToString(this.leftOp),this.leftOp instanceof o.Local&&this.rightOp instanceof a.ArkNewExpr?this.transferRightNewExpr():this.leftOp instanceof o.Local&&this.rightOp instanceof a.ArkNewArrayExpr?this.transferRightNewArrayExpr():this.rightOp instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentCreate(this.rightOp)?this.transferRightComponentCreate():this.rightOp instanceof a.ArkInstanceInvokeExpr&&p.SourceUtils.isComponentAttributeInvoke(this.rightOp)?this.transferRightComponentAttribute():this.rightCode=this.transformer.valueToString(this.rightOp),this.isLocalTempValue(this.leftOp)&&this.context.setTempCode(this.leftOp.getName(),this.rightCode),null==this.dumpType&&(this.setText(`${this.leftCode} = ${this.rightCode}`),this.dumpType=g.TEMP_REPLACE)}dump(){switch(this.dumpType){case g.NORMAL:return super.dump();case g.COMPONENT_CREATE:let e=super.dump();return this.printer.incIndent(),e}return this.context.hasTempVisit(this.leftCode)?this.setText(""):p.SourceUtils.isTemp(this.leftCode)?this.setText(`${this.rightCode};`):this.leftOp instanceof o.Local&&this.context.getLocals().has(this.leftOp.getName())&&!this.isLocalTempValue(this.leftOp)?this.context.isLocalDefined(this.leftOp)?this.setText(`${this.leftCode} = ${this.rightCode};`):(this.context.getArkFile().getExportInfoBy(this.leftCode)&&this.context.isInDefaultMethod()?this.setText(`export let ${this.leftCode} = ${this.rightCode};`):this.setText(`let ${this.leftCode} = ${this.rightCode};`),this.context.defineLocal(this.leftOp)):this.setText(`${this.leftCode} = ${this.rightCode};`),super.dump()}isComponentClassType(e){if(!(e instanceof l.ClassType))return!1;let t=e.getClassSignature(),r=this.context.getClass(t);return!!r&&r.hasComponentDecorator()}transferRightNewExpr(){if(this.context.getStmtReader().hasNext()){let e=this.context.getStmtReader().next(),t=!0;if(e instanceof c.ArkInvokeStmt&&e.getInvokeExpr()){let t=e.getInvokeExpr();if("constructor"==t.getMethodSignature().getMethodSubSignature().getMethodName()&&t.getBase().getName()==this.leftOp.getName()){let e=[];return t.getArgs().forEach((t=>{e.push(this.transformer.valueToString(t))})),void(this.isComponentClassType(this.rightOp.getType())?this.rightCode=`${this.transformer.typeToString(this.rightOp.getType())}(${e.join(",")})`:this.rightCode=`new ${this.transformer.typeToString(this.rightOp.getType())}(${e.join(",")})`)}}t&&this.context.getStmtReader().rollback()}this.isComponentClassType(this.rightOp.getType())?this.rightCode=`${this.transformer.typeToString(this.rightOp.getType())}()`:this.rightCode=`new ${this.transformer.typeToString(this.rightOp.getType())}()`}transferRightNewArrayExpr(){let e=new D(this.rightOp),t=this.leftOp.getName();for(;this.context.getStmtReader().hasNext();){let r=this.context.getStmtReader().next();if(!(r instanceof c.ArkAssignStmt)){this.context.getStmtReader().rollback();break}{let n=r.getLeftOp();if(!(n instanceof s.ArkArrayRef&&n.getBase().getName()==t)){this.context.getStmtReader().rollback();break}e.addInitValue(this.transformer.valueToString(r.getRightOp()))}}this.rightCode=e.toString()}transferRightComponentCreate(){if(this.rightCode=this.transformer.valueToString(this.rightOp),this.context.getStmtReader().hasNext()){let e=this.context.getStmtReader().next();if(e instanceof c.ArkInvokeStmt){let t=e.getInvokeExpr();if(t instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentPop(t))return this.setText(`${this.rightCode}`),void(this.dumpType=g.NORMAL)}this.context.getStmtReader().rollback()}this.setText(`${this.rightCode} {`),this.dumpType=g.COMPONENT_CREATE}transferRightComponentAttribute(){this.rightCode=this.transformer.valueToString(this.rightOp),this.setText(`${this.rightCode}`),this.dumpType=g.NORMAL}}t.SourceAssignStmt=m;class h extends f{constructor(e,t){super(e,t)}transfer2ts(){let e=this.original.getInvokeExpr();e instanceof a.ArkStaticInvokeExpr?this.setText(`${this.transformer.staticInvokeExprToString(e)}`):e instanceof a.ArkInstanceInvokeExpr&&this.setText(`${this.transformer.instanceInvokeExprToString(e)}`)}dump(){let e=this.original.getInvokeExpr();if(e instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentPop(e))return this.printer.decIndent(),`${this.printer.getIndent()}}\n`;if(e instanceof a.ArkStaticInvokeExpr&&p.SourceUtils.isComponentIfElseInvoke(e)){this.printer.decIndent();let e=`${this.printer.getIndent()}${this.text}\n`;return this.printer.incIndent(),e}return this.text.length>0?e instanceof a.ArkInstanceInvokeExpr&&p.SourceUtils.isComponentAttributeInvoke(e)?`${this.printer.getIndent()}${this.text}\n`:`${this.printer.getIndent()}${this.text};\n`:""}}t.SourceInvokeStmt=h;t.SourceIfStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){let e,t=this.original.getConditionExprExpr();e=`if (${this.transformer.valueToString(t.getOp1())}`,e+=` ${p.SourceUtils.flipOperator(t.getOperator())} `,e+=`${this.transformer.valueToString(t.getOp2())}) {`,this.setText(e)}dump(){let e=super.dump();return this.printer.incIndent(),e}};class y extends f{constructor(e,t){super(e,t)}dump(){let e=super.dump();return this.printer.incIndent(),e}transfer2ts(){let e,t=this.original.getConditionExprExpr();e=`while (${this.transformer.valueToString(t.getOp1())}`,e+=` ${this.transferOperator()} `,e+=`${this.transformer.valueToString(t.getOp2())}) {`,this.setText(e)}transferOperator(){let e=this.original.getConditionExprExpr().getOperator().trim();return p.SourceUtils.flipOperator(e)}}t.SourceWhileStmt=y;t.SourceForStmt=class extends y{constructor(e,t){super(e,t)}forOf2ts(){let e=this.original.getConditionExprExpr(),t=e.getOp1(),r=e.getOp2(),n=this.context.getStmtReader().first();if(!(n instanceof c.ArkAssignStmt))return!1;if(!this.isLocalTempValue(t)||!this.isLocalTempValue(r))return!1;let i=this.transformer.valueToString(t),a=this.transformer.valueToString(r);if(!i||!a)return!1;if("0"!=i||!a.endsWith(".length"))return!1;for(;this.context.getStmtReader().hasNext();)this.context.getStmtReader().next();let o=n.getLeftOp();return this.setText(`for (let ${o.getName()} of ${a.replace(".length","")}) {`),!0}transfer2ts(){if(this.forOf2ts())return;let e,t=this.original.getConditionExprExpr();for(e=`for (; ${this.transformer.valueToString(t.getOp1())}`,e+=` ${this.transferOperator()} `,e+=`${this.transformer.valueToString(t.getOp2())}; `;this.context.getStmtReader().hasNext();)e+=S(this.context,this.context.getStmtReader().next()).toString(),this.context.getStmtReader().hasNext()&&(e+=", ");e+=") {",this.setText(e),_.debug("SourceForStmt->transfer2ts:",t)}};t.SourceElseStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("} else {")}dump(){this.printer.decIndent();let e=super.dump();return this.printer.incIndent(),e}};t.SourceContinueStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("continue;")}};t.SourceBreakStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText("break;")}};class v extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText(`return ${this.transformer.valueToString(this.original.getOp())};`)}}t.SourceReturnStmt=v;class b extends f{constructor(e,t){super(e,t)}transfer2ts(){this.original.getOriginPositionInfo().getLineNo()<=0?this.setText(""):this.setText("return;")}}t.SourceReturnVoidStmt=b;t.SourceSwitchStmt=class extends f{constructor(e,t){super(e,t)}transfer2ts(){this.setText(`switch (${this.transformer.valueToString(this.original.getKey())}) {`)}dump(){let e=super.dump();return this.printer.incIndent(),e}};t.SourceCaseStmt=class extends f{constructor(e,t,r){super(e,t),this.caseIndex=r,this.transfer2ts()}isDefault(){let e=this.original.getCases();return this.caseIndex>=e.length}transfer2ts(){let e=this.original.getCases();if(this.caseIndextransfer2ts:",this.original.toString())}}t.SourceCommonStmt=x;class D{constructor(e){this.expr=e,this.values=[]}addInitValue(e){this.values.push(e)}toString(){return`[${this.values.join(", ")}]`}}function S(e,t){return t instanceof c.ArkAssignStmt?new m(e,t):t instanceof c.ArkInvokeStmt?new h(e,t):t instanceof c.ArkReturnVoidStmt?new b(e,t):t instanceof c.ArkReturnStmt?new v(e,t):new x(e,t)}t.SourceNewArrayExpr=D,t.stmt2SourceStmt=S},3257:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceTransformer=void 0;const i=r(3755),a=r(3532),o=r(4576),s=n(r(7015)),c=r(887),l=r(5825),u=r(9803),d=r(8070),p=r(3938),_=r(2454);s.default.getLogger();class f{constructor(e){this.context=e}anonymousMethodToString(e){let t=new l.SourceMethod(e,this.context.getPrinter().getIndent());return t.setInBuilder(this.context.isInBuilderMethod()),t.dump().substring(this.context.getPrinter().getIndent().length)}anonymousClassToString(e){return new d.SourceClass(e).dump()}instanceInvokeExprToString(e){let t=e.getMethodSignature().getMethodSubSignature().getMethodName(),r=[];return e.getArgs().forEach((e=>{r.push(this.valueToString(e))})),c.SourceUtils.isComponentAttributeInvoke(e)&&this.context.isInBuilderMethod()?`.${t}(${r.join(", ")})`:`${this.valueToString(e.getBase())}.${t}(${r.join(", ")})`}staticInvokeExprToString(e){let t=e.getMethodSignature(),r=this.context.getMethod(t);if(r&&c.SourceUtils.isAnonymousMethod(r.getName()))return this.anonymousMethodToString(r);let n=e.getMethodSignature().getDeclaringClassSignature().getClassName(),i=e.getMethodSignature().getMethodSubSignature().getMethodName(),a=[];if(e.getArgs().forEach((e=>{a.push(this.valueToString(e))})),this.context.isInBuilderMethod()){if(n==_.COMPONENT_CUSTOMVIEW){if(i==_.COMPONENT_CREATE_FUNCTION)return a.length>1&&(a[1]=a[1].substring(6)),`${a.join(" ")}`;if(i==_.COMPONENT_POP_FUNCTION)return""}if(c.SourceUtils.isComponentCreate(e))return n==_.COMPONENT_IF?`if (${a.join(", ")})`:`${n}(${a.join(", ")})`;if(c.SourceUtils.isComponentIfBranchInvoke(e)){return"0"==e.getArg(0).getValue()?"":"} else {"}if(c.SourceUtils.isComponentPop(e))return"}"}return n&&n.length>0&&!c.SourceUtils.isDefaultClass(n)?`${n}.${i}(${a.join(", ")})`:`${i}(${a.join(", ")})`}typeArrayToString(e,t=", "){let r=[];return e.forEach((e=>{r.push(this.typeToString(e))})),r.join(t)}static constToString(e){return"string"==e.getType()?e.getValue().startsWith("'")||e.getValue().startsWith('"')?`${e.getValue()}`:`'${e.getValue()}'`:e.getValue()}exprToString(e){if(e instanceof a.ArkInstanceInvokeExpr)return`${this.instanceInvokeExprToString(e)}`;if(e instanceof a.ArkStaticInvokeExpr)return`${this.staticInvokeExprToString(e)}`;if(e instanceof a.ArkNewArrayExpr)return`new Array<${this.typeToString(e.getBaseType())}>(${e.getSize()})`;if(e instanceof a.ArkNewExpr)return`new ${this.typeToString(e.getType())}()`;if(e instanceof a.ArkDeleteExpr)return`delete ${this.valueToString(e.getField())}`;if(e instanceof a.ArkBinopExpr){let t=e.getOp1(),r=e.getOp2(),n=e.getOperator();return`${this.valueToString(t)} ${n} ${this.valueToString(r)}`}if(e instanceof a.ArkTypeOfExpr)return`typeof(${this.valueToString(e.getOp())})`;if(e instanceof a.ArkInstanceOfExpr)return`${this.valueToString(e.getOp())} instanceof ${this.typeToString(e.getType())}`;if(e instanceof a.ArkLengthExpr)return`${this.valueToString(e.getOp())}.length`;if(e instanceof a.ArkCastExpr){let t=e.getOp();return`${this.valueToString(t)} as ${this.typeToString(e.getType())}`}if(e instanceof a.ArkUnopExpr)return`${e.getOperator()}${this.valueToString(e.getOp())}`;if(e instanceof a.ArrayLiteralExpr){let t=[];return e.getElements().forEach((e=>{t.push(this.valueToString(e))})),`[${t.join(", ")}]`}return e instanceof a.ObjectLiteralExpr?this.anonymousClassToString(e.getAnonymousClass()):`${e}`}refToString(e){return e instanceof p.ArkInstanceFieldRef?`${this.valueToString(e.getBase())}.${e.getFieldName()}`:e instanceof p.ArkStaticFieldRef?`${e.getFieldSignature().getBaseName()}.${e.getFieldName()}`:e instanceof p.ArkArrayRef?`${this.valueToString(e.getBase())}[${this.valueToString(e.getIndex())}]`:e instanceof p.ArkThisRef?"this":`${e}`}valueToString(e){if(e instanceof a.AbstractExpr)return this.exprToString(e);if(e instanceof p.AbstractRef)return this.refToString(e);if(e instanceof i.Constant)return f.constToString(e);if(e instanceof o.Local){if(c.SourceUtils.isAnonymousMethod(e.getName())){let t=e.getType().getMethodSignature(),r=this.context.getMethod(t);if(r)return this.anonymousMethodToString(r)}if(c.SourceUtils.isAnonymousClass(e.getName())){let t=e.getType().getClassSignature(),r=this.context.getClass(t);if(r)return this.anonymousClassToString(r)}return this.context.transTemp2Code(e)}return`${e}`}typeToString(e){if(e instanceof u.LiteralType){let t=e.getliteralName();return t.substring(0,t.length-7).toLowerCase()}if(e instanceof u.PrimitiveType)return e.getName();if(e instanceof u.TypeLiteralType){let t=[];for(const r of e.getMembers())t.push(r.getName()+":"+r.getType());return`{${t.join(",")}}`}if(e instanceof Array){let t=[];for(const r of e)t.push(this.typeToString(r));return t.join(" | ")}if(e instanceof u.UnknownType)return"any";if(e instanceof u.ClassType){let t=e.getClassSignature().getClassName();if(c.SourceUtils.isDefaultClass(t))return"any";if(c.SourceUtils.isAnonymousClass(t)){let t=this.context.getClass(e.getClassSignature());return t?this.anonymousClassToString(t):"any"}return t}if(e instanceof u.ArrayType){let t=e.getBaseType();if(t instanceof u.UnknownType){const t=[];t.push("(any)");for(let r=0;r=";break;case"<=":t=">";break;case">":t="<=";break;case">=":t="<";break;case"==":t="!=";break;case"===":t="!==";break;case"!=":t="==";break;case"!==":t="==="}return t}static isComponentPop(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName();return!(e.getMethodSignature().getMethodSubSignature().getMethodName()!=s.COMPONENT_POP_FUNCTION||!(0,s.isEtsSystemComponent)(t)&&!s.SPECIAL_CONTAINER_COMPONENT.has(t))}static isComponentCreate(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName();return!(e.getMethodSignature().getMethodSubSignature().getMethodName()!=s.COMPONENT_CREATE_FUNCTION||!(0,s.isEtsSystemComponent)(t)&&!s.SPECIAL_CONTAINER_COMPONENT.has(t))}static isComponentAttributeInvoke(e,t=new Set){if(t.has(e))return!1;t.add(e);let r=e.getBase();if(!(r instanceof a.Local))return c.error(`SourceUtils->isComponentAttributeInvoke illegal invoke expr ${e}`),!1;let n=r.getDeclaringStmt();if(!(n&&n instanceof o.ArkAssignStmt))return!1;let s=n.getRightOp();return s instanceof i.ArkInstanceInvokeExpr?l.isComponentAttributeInvoke(s,t):s instanceof i.ArkStaticInvokeExpr&&l.isComponentCreate(s)}static isComponentIfBranchInvoke(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName(),r=e.getMethodSignature().getMethodSubSignature().getMethodName();return t==s.COMPONENT_IF&&r==s.COMPONENT_BRANCH_FUNCTION}static isComponentIfElseInvoke(e){let t=e.getMethodSignature().getDeclaringClassSignature().getClassName(),r=e.getMethodSignature().getMethodSubSignature().getMethodName();if(t==s.COMPONENT_IF&&r==s.COMPONENT_BRANCH_FUNCTION){if("1"==e.getArg(0).getValue())return!0}return!1}}t.SourceUtils=l},5404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CfgUitls=void 0;const n=r(3755),i=r(4576),a=r(3938),o=r(9029);var s;!function(e){e[e.NORMAL=0]="NORMAL",e[e.WHILE=1]="WHILE",e[e.FOR=2]="FOR",e[e.CONTINUE=3]="CONTINUE",e[e.BREAK=4]="BREAK",e[e.IF=5]="IF",e[e.IF_ELSE=6]="IF_ELSE"}(s||(s={}));class c{constructor(e){this.blockSize=e.getBlocks().size,this.identifyBlocks(e)}static backtraceLocalInitValue(e){let t=e.getDeclaringStmt();if(t instanceof o.ArkAssignStmt){let e=t.getRightOp();return e instanceof i.Local?c.backtraceLocalInitValue(e):e}return e}static getStmtBindValues(e){let t=new Set;for(const r of e.getUses())if(r instanceof i.Local){c.getLocalBindValues(r).forEach((e=>{t.add(e)}))}return t}static getLocalBindValues(e){let t=new Set;t.add(e);const r=e.getDeclaringStmt();if(!r)return t;for(const e of r.getUses())e instanceof n.Constant||e instanceof a.ArkInstanceFieldRef?t.add(e):e instanceof i.Local&&c.getLocalBindValues(e).forEach((e=>{t.add(e)}));return t}getLoopPath(e){return this.loopPath.get(e)}isIfBlock(e){return this.blockTypes.get(e)==s.IF}isIfElseBlock(e){return this.blockTypes.get(e)==s.IF_ELSE}isWhileBlock(e){return this.blockTypes.get(e)==s.WHILE}isForBlock(e){return this.blockTypes.get(e)==s.FOR}isConinueBlock(e){return this.blockTypes.get(e)==s.CONTINUE}isBreakBlock(e){return this.blockTypes.get(e)==s.BREAK}isNormalBlock(e){return this.blockTypes.get(e)==s.NORMAL}identifyBlocks(e){let t=e.getBlocks(),r=new Set;this.blockTypes=new Map,this.loopPath=new Map;for(const e of t)if(!r.has(e))if(r.add(e),this.isIfStmtBB(e)&&this.isLoopBB(e,r)){let t=e.getStmts();t[t.length-1]instanceof o.ArkIfStmt?this.blockTypes.set(e,s.WHILE):this.blockTypes.set(e,s.FOR)}else this.isIfStmtBB(e)?this.isIfElseBB(e)?this.blockTypes.set(e,s.IF_ELSE):this.blockTypes.set(e,s.IF):this.isGotoStmtBB(e)?this.isContinueBB(e,this.blockTypes)?this.blockTypes.set(e,s.CONTINUE):this.blockTypes.set(e,s.BREAK):this.blockTypes.set(e,s.NORMAL)}isIfStmtBB(e){for(let t of e.getStmts())if(t instanceof o.ArkIfStmt)return!0;return!1}isLoopBB(e,t){let r=new Set,n=!1;if(t.delete(e),0==e.getSuccessors().length)return n;let i=e.getSuccessors()[0];return r.add(i),function i(a){if(a===e)return void(n=!0);for(const n of a.getSuccessors())t.has(n)||r.has(n)||n==e.getSuccessors()[1]||(r.add(n),i(n))}(i),t.add(e),n&&this.loopPath.set(e,r),n}isGotoStmtBB(e){for(let t of e.getStmts())if(t instanceof o.ArkGotoStmt)return!0;return!1}isContinueBB(e,t){let r=t.get(e.getSuccessors()[0]),n=!1;if(r!=s.FOR&&r!=s.WHILE||(n=!0),!n)return!1;let i=e,a=this.blockSize;for(let[t,r]of this.loopPath)r.has(e)&&r.size{const n=a.default.resolve(e,r.name);r.isDirectory()&&!s.FILE_FILTER.ignores.includes(r.name)?s.getFilesRecursively(n,t):a.default.basename(n).match(s.FILE_FILTER.include)&&t.push(n)}))}static getIndexFileName(e){for(const t of i.default.readdirSync(e,{withFileTypes:!0}))if(t.isFile()&&/^index/i.test(t.name))return t.name;return""}static isDirectory(e){try{return i.default.statSync(e).isDirectory()}catch(e){}return!1}}t.FileUtils=s,s.FILE_FILTER={ignores:[".git",".preview",".hvigor",".idea","test","ohosTest"],include:/(?{if(n.name===r)return a.default.resolve(t,n.name);e(a.default.resolve(t,"../"),r)})),""):(o.warn(`Input directory ${t} is not exist`),"")}},978:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractLastBracketContent=t.printCallGraphDetails=t.splitStringWithRegex=t.isItemRegistered=t.SceneManager=t.MethodSignatureManager=void 0;const i=n(r(7015)),a=r(2029),o=i.default.getLogger();t.MethodSignatureManager=class{constructor(){this._workList=[],this._processedList=[]}get workList(){return this._workList}set workList(e){this._workList=e}get processedList(){return this._processedList}set processedList(e){this._processedList=e}findInWorkList(e){return this.workList.find((t=>t===e))}findInProcessedList(e){return void 0!==this.processedList.find((t=>t.toString()===e.toString()))}addToWorkList(e){s(e,this.workList,((e,t)=>e.toString()===t.toString()))||this.workList.push(e)}addToProcessedList(e){s(e,this.processedList,((e,t)=>e===t))||this.processedList.push(e)}removeFromWorkList(e){this.workList=this.workList.filter((t=>t!==e))}removeFromProcessedList(e){this.processedList=this.processedList.filter((t=>t.toString()!==e.toString()))}};function s(e,t,r){for(let n of t)if(r(n,e))return!0;return!1}t.SceneManager=class{get scene(){return this._scene}set scene(e){this._scene=e}getMethod(e){let t=this._scene.getMethod(e);if(null==t){let t=this.scene.getSdkArkFilesMap();for(let r of t.values())if(r.getFileSignature().toString()==e.getDeclaringClassSignature().getDeclaringFileSignature().toString()){const t=a.ModelUtils.getAllMethodsInFile(r);for(let r of t)if(e.toString()==r.getSignature().toString())return r}}return t}getClass(e){if(void 0===e.getClassName())return null;let t=this._scene.getClass(e);if(null==t){let t=this._scene.getSdkArkFilesMap().get(e.getDeclaringFileSignature().toString());if(null!=t)for(let r of a.ModelUtils.getAllClassesInFile(t))if(r.getSignature().toString()===e.toString())return r}return t}getExtendedClasses(e){let t=[this.getClass(e)],r=[];for(;t.length>0;){let e=t.shift();if(null==e)continue;let n=Array.from(e.getExtendedClasses().values());if(n)for(let e of n)s(e,r,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||t.push(e);s(e,r,((e,t)=>e.getSignature().toString()===t.getSignature().toString()))||r.push(e)}return r}},t.isItemRegistered=s,t.splitStringWithRegex=function(e){const t=e.match(/^(\w+)\.(\w+)\.(\w+)\(\)$/);return t?t.slice(1):[]},t.printCallGraphDetails=function(e,t,r){o.info("Call Graph:\n"),o.info("\tMethods:"),e.forEach((e=>{o.info(`\t\t${e}`)})),o.info("\tCalls:"),Array.from(t.keys()).reduce(((e,t)=>Math.max(e,t.toString().length)),0),t.forEach(((e,t)=>{const r=`<${t}`;o.info(`\t\t${r.padEnd(4)} ->`);for(let t=0;t]*)\(\)>$/);return t&&t[1]?t[1].trim():""}},8089:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAllFiles=void 0;const i=n(r(9896)),a=n(r(6928)),o=n(r(7015)).default.getLogger();t.getAllFiles=function e(t,r,n=[]){if(!i.default.existsSync(t))return o.error("Input directory is not exist, please check!"),n;const s=i.default.realpathSync(t);return i.default.readdirSync(s).forEach((t=>{if("oh_modules"==t||"node_modules"==t||"hviforfile.ts"==t)return;const o=a.default.resolve(s,t);i.default.statSync(o).isDirectory()?e(o,r,n):r.includes(a.default.extname(t))&&n.push(o)})),n}},2293:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseJsonText=t.fetchDependenciesFromFile=void 0;const s=a(r(3221)),c=a(r(9896)),l=o(r(7015)).default.getLogger();function u(e){const t=s.parseJsonText("",e),r=function(e){if(!e.statements||!e.statements.length)return void l.error("The JSON5 file format is incorrect, the root node statements is empty.");const t=e.statements[0];if(t.kind!==s.SyntaxKind.ExpressionStatement)return void l.error(`The JSON5 file format is incorrect, the first child node is not ExpressionStatement. kind: ${t.kind}`);const r=t.expression;if(!r)return void l.error("The JSON5 file format is incorrect, the first child node is empty.");if(r.kind===s.SyntaxKind.ObjectLiteralExpression)return r;if(r.kind===s.SyntaxKind.ArrayLiteralExpression){const e=r.elements;if(e&&e.length&&e[0].kind===s.SyntaxKind.ObjectLiteralExpression)return e[0];l.error("The JSON5 file format is incorrect, the node ArrayLiteralExpression first element is not ObjectLiteralExpression.")}return void l.error("The JSON5 file format is incorrect.")}(t);return r?p(r,t):{}}function d(e,t){return e.kind===s.SyntaxKind.StringLiteral||e.kind===s.SyntaxKind.NumericLiteral?e.text:e.kind===s.SyntaxKind.PrefixUnaryExpression?e.getText(t):e.kind===s.SyntaxKind.ArrayLiteralExpression?function(e,t){const r=[];return e.elements.forEach((e=>{r.push(d(e,t))})),r}(e,t):e.kind===s.SyntaxKind.ObjectLiteralExpression?p(e,t):e.kind===s.SyntaxKind.TrueKeyword||e.kind!==s.SyntaxKind.FalseKeyword&&void 0}function p(e,t){const r={};return e.properties.forEach((e=>{const n=e,i=n.name.text,a=d(n.initializer,t);r[i]=a})),r}t.fetchDependenciesFromFile=function(e){return c.existsSync(e)?u(c.readFileSync(e,"utf-8")):{}},t.parseJsonText=u},7015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOG_LEVEL=void 0;const n=r(1779);var i;!function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(i||(t.LOG_LEVEL=i={}));t.default=class{static configure(e,t){(0,n.configure)({appenders:{file:{type:"fileSync",filename:`${e}`,maxLogSize:5242880,backups:5,compress:!0,encoding:"utf-8",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [ArkAnalyzer] - %m"}},console:{type:"console",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [ArkAnalyzer] - %m"}}},categories:{default:{appenders:["console"],level:"info",enableCallStack:!1},codelinter:{appenders:["file"],level:t,enableCallStack:!0}}})}static getLogger(){return(0,n.getLogger)("codelinter")}static setLogLevel(e){(0,n.getLogger)("codelinter").level=e}}},3387:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transfer2UnixPath=void 0;const i=n(r(6928));t.transfer2UnixPath=function(e){return i.default.posix.join(...e.split(/\\/))}},366:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.codeGen=t.handleError=void 0;const s=a(r(9896)),c=o(r(6928)),l=r(4399),u=r(5097),d=r(5932),p=o(r(3506)),_=p.default.getLogger();function f(e,t){if(p.default.getLogger().error(e),t.isAbortOnConvertError())throw new Error(e)}function g(e,t,r){if(e.has(t)){const n=e.get(t);if(void 0!==n[1]&&n[1]===r||n[0].add(r),n[1]===r)throw new Error(`generate imports error: import ${r} from '${t}' is not supported, please use import {${r}} from '${t}'`)}else e.set(t,[new Set([r]),void 0])}t.handleError=f,t.codeGen=function(e,t){const r=c.default.dirname(t.getTtsConfigJsonPath())+c.default.sep+".gitignore";if(t.needAddNewFileToGitIgnore())try{!function(e){if(!s.existsSync(e))return;const t=s.readFileSync(e,"utf-8").split("\n"),r=[];let n=-1,i=-1;for(let e=0;e=n&&(-1==i||e<=i)||r.push(t[e]);s.writeFileSync(e,r.join("\n"),"utf-8")}(r),s.existsSync(r)?s.appendFileSync(r,"\n"+d.gitIgnorePattern):s.writeFileSync(r,"\n"+d.gitIgnorePattern)}catch(e){f(`Error clearing previous gitignore content or adding gitignore pattern! Error msg: ${e}`,t)}try{e.getFiles().forEach((e=>{const n=function(e,t){try{const r=`${function(e,t){let r=!1,n=!1,i=[];e.getClasses().forEach((e=>{const a=(0,u.isSendableClass)(e,t);e.getFields().forEach((e=>{a&&(([l.BaseType.OBJECT,l.BaseType.MAP].includes(e.getType().category)||e.getType().genericTypes.find((e=>e.category===l.BaseType.OBJECT)))&&(n=!0),[l.BaseType.ARRAY,l.BaseType.MAP,l.BaseType.SET].includes(e.getType().category)&&(r=!0)),(l.BaseType.COLLECTIONS_MAP===e.getType().category||e.getType().genericTypes.find((e=>e.category===l.BaseType.OBJECT)))&&(n=!0),[l.BaseType.COLLECTIONS_ARRAY,l.BaseType.COLLECTIONS_MAP,l.BaseType.COLLECTIONS_SET].includes(e.getType().category)&&(r=!0);const t=null!=(0,u.getMergeFromTransformFn)(e)&&null!=(0,u.getToJsonTransformFn)(e);e.getType().category!==l.BaseType.CLASS&&e.getType().category!==l.BaseType.OTHERS||t||i.push(e.getType().name);const o=e.getType().genericTypes.find((e=>e.category===l.BaseType.CLASS||e.category===l.BaseType.OTHERS));null==o||t||i.push(o.name)}))}));const a=function(e){const t=new Map;return Array.from(e.getImportInfoMap()).forEach((([e,r])=>{var n;const i=null===(n=r.find((e=>!e.isNamedImport())))||void 0===n?void 0:n.getElementName(),a=[new Set(r.filter((e=>e.isNamedImport())).map((e=>e.getElementName()))),i];t.set(e,a)})),t}(e);r&&g(a,"@kit.ArkTS","collections");n&&g(a,"@kit.ArkTS","lang");return g(a,"sendable-transformer","ISerializable"),g(a,"sendable-transformer","ISerializableType"),`${Array.from(a).filter((([e,t])=>"class-transformer"!=e)).map((([e,t])=>`import { ${t.filter((e=>void 0!==e)).flatMap((e=>"string"==typeof e?e:e instanceof Set?`${Array.from(e).flatMap((e=>i.includes(e)?[e,(0,d.classFactory)(e)]:e)).join(", ")}`:void 0)).join(", ")} } from '${e}';`)).join("\n")}\n${t.getCopyImportPrefixes().join("\n")}`}(e,t)}\n${t.isSendable()?"'use shared'\n":""}\n${e.getClasses().filter((e=>e.getName()!==d.defaultArkClassName)).flatMap((e=>e.getType()===l.SRClassType.ENUM?(0,u.genEnumHelper)(e,t):e.getMethods().find((e=>"constructor"==e.getName()&&e.getParameters().length>0))?(_.info(`Class ${e.getName()} has constructor with parameters, transformed @Sendable class will remain the same!`),[e.getOriginalCode(),""]):[(0,u.genClass)(e,t),(0,u.genClassFactory)(e,t)])).join("\n\n")}\n `;return{ok:!0,path:e.getFilePath(),content:r}}catch(t){return{ok:!1,path:e.getFilePath(),reason:t.message}}}(e,t);if(!n.ok)return void f(`Error generating file: ${n.reason}`,t);let i=e.getFilePath().replace(/(.*)\.tts/,"$1.ets");s.mkdir(c.default.dirname(i),{recursive:!0},(e=>{e?f(`Error creating directory for generated ${i}! Error msg: ${e}`,t):s.writeFile(i,n.content,(e=>{e&&f(`Error creating file ${i}! Error msg: ${e}`,t)}))}));try{let e=i.replace(c.default.dirname(t.getTtsConfigJsonPath()),"");e=e.split(c.default.sep).join("/"),n.ok&&t.needAddNewFileToGitIgnore()&&(_.debug(`generate ets file for ${i} success!`),s.appendFileSync(r,"\n"+e))}catch(e){f(`Error adding generated ets files to gitignore! Error msg: ${e}`,t)}}))}catch(e){throw e}if(t.needAddNewFileToGitIgnore())try{s.appendFileSync(r,"\n"+d.gitIgnorePattern)}catch(e){f(`Error adding gitignore pattern afther adding the last of generated ets files! Error msg: ${e}`,t)}}},8481:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SRConfig=void 0;const s=o(r(9896)),c=o(r(6928)),l=r(1756),u=a(r(3506));const d=u.default.getConsoleLogger();t.SRConfig=class{constructor(){this.addNewFileToGitIgnore=!1,this.targetFiles=[],this.extraImportPrefixes=[],this.copyImportPrefixes=[],this.abortOptions={onConvertError:!0,onScanError:!0}}configure(e,t=!1,r=[],n){var i;this.logLevel=null!==(i=u.LogLevel[e])&&void 0!==i?i:u.LogLevel.WARN,u.default.configure(this.logFilePath,this.logLevel),this.projectPath=c.default.resolve(c.default.dirname(n),".."),this.addNewFileToGitIgnore=t,this.targetFiles=(0,l.globSync)(r,{cwd:c.default.parse(n).dir,posix:!0,dotRelative:!0}).filter((e=>!e.startsWith("./oh_modules")&&!e.startsWith("./node_modules")&&!e.startsWith("./build"))).map((e=>c.default.parse(n).dir+c.default.sep+c.default.normalize(e))),this.ttsConfigJsonPath=n}buildFromJson(e){var t,r,n,i,a,o,c;if(s.default.existsSync(e)){const l=s.default.readFileSync(e,"utf8"),u=JSON.parse(l),p=null!==(t=u.logLevel)&&void 0!==t?t:"WARN",_=null!==(r=u.addGeneratedFilesIntoGitIgnore)&&void 0!==r&&r;this.logFilePath=null!==(n=u.logFilePath)&&void 0!==n?n:"./out/SRCodeGen.log";const f=null!==(i=u.targetFiles)&&void 0!==i?i:[];return u.abortOptions&&(this.abortOptions.onConvertError=u.abortOptions.onConvertError,this.abortOptions.onScanError=u.abortOptions.onScanError),this.extraImportPrefixes=null!==(a=u.extraImportPrefixes)&&void 0!==a?a:[],this.copyImportPrefixes=null!==(o=u.copyImportPrefixes)&&void 0!==o?o:[],this.sendable=null===(c=u.sendable)||void 0===c||c,this.configure(p.toUpperCase(),_,f,e),d.info(`Found ${this.targetFiles.length} tts files...`),d.info(`log file path: ${this.logFilePath}`),!0}return console.error(`Your ttsConfigJsonPath: "${e}" is not exist.`),!1}needAddNewFileToGitIgnore(){return this.addNewFileToGitIgnore}getLogLevel(){return this.logLevel}getTargetFiles(){return this.targetFiles}getProjectPath(){return this.projectPath}isAbortOnConvertError(){return this.abortOptions.onConvertError}isAbortOnScanError(){return this.abortOptions.onScanError}getExtraImportPrefixes(){return this.extraImportPrefixes}getCopyImportPrefixes(){return this.copyImportPrefixes}getTtsConfigJsonPath(){return this.ttsConfigJsonPath}getLogFilePath(){return this.logFilePath}isSendable(){return this.sendable}}},4414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SRConfigBuilder=void 0;const n=r(8481);t.SRConfigBuilder=class{constructor(e){this.ttsConfigJsonPath=e,this.srConf=new n.SRConfig}getConfig(){return this.srConf}getJsonPath(){return this.ttsConfigJsonPath}build(){return this.srConf.buildFromJson(this.ttsConfigJsonPath)}}},4399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.THIS=t.SRImportElement=t.SRFieldRef=t.SRStmt=t.SRScene=t.SRNamespace=t.SRMethod=t.SRFile=t.BaseType=t.SRField=t.UnclearDecorator=t.SROption=t.SRCommonOption=t.SRDiscriminator=t.TransformDecorator=t.ExcludeDecorator=t.ExposeDecorator=t.TypeDecorator=t.SRDecorator=t.SRClassType=t.SRClass=void 0;class r{constructor(e){this.type=e}getType(){return this.type}setType(e){this.type=e}}t.SRDecorator=r;t.TypeDecorator=class extends r{constructor(e,t){super(e),this.option=t}getOption(){return this.option}setOption(e){this.option=e}};t.ExposeDecorator=class extends r{constructor(e,t){super(e),this.option=t}getOption(){return this.option}setOption(e){this.option=e}};t.ExcludeDecorator=class extends r{constructor(e){super(e)}};t.TransformDecorator=class extends r{constructor(e,t,r){super(e);const n=t.match(/Transform\(([^,]+),\s*({[^}]+})\)/);if(n){const e=n[1];this.anonymousMethod=e}this.options=r}setAnonymousMethod(e){this.anonymousMethod=e}getAnonymousMethod(){return this.anonymousMethod}getOptions(){return this.options}};t.UnclearDecorator=class extends r{constructor(e){super(e)}};class n{}t.SROption=n;t.SRDiscriminator=class extends n{constructor(e,t){super(),this.property=e,this.subTypes=t}getProperty(){return this.property}getSubTypes(){return this.subTypes}};t.SRCommonOption=class extends n{constructor(e){super(),this.options=new Map,Object.keys(e).forEach((t=>{if(!this.options.has(t)){let r=e[t];"true"===r?r=!0:"false"===r&&(r=!1),this.options.set(t,r)}}))}getOptions(){return this.options}};class i{constructor(e,t){this.elementName=e,this.namedImport=t}getElementName(){return this.elementName}isNamedImport(){return this.namedImport}equals(e){return this.elementName===e.elementName&&this.namedImport===e.namedImport}}var a;t.SRImportElement=i,function(e){e[e.BOOLEAN=0]="BOOLEAN",e[e.NUMBER=1]="NUMBER",e[e.BIGINIT=2]="BIGINIT",e[e.STRING=3]="STRING",e[e.ARRAY=4]="ARRAY",e[e.SET=5]="SET",e[e.MAP=6]="MAP",e[e.COLLECTIONS_ARRAY=7]="COLLECTIONS_ARRAY",e[e.COLLECTIONS_SET=8]="COLLECTIONS_SET",e[e.COLLECTIONS_MAP=9]="COLLECTIONS_MAP",e[e.ENUM=10]="ENUM",e[e.CLASS=11]="CLASS",e[e.OBJECT=12]="OBJECT",e[e.UNION=13]="UNION",e[e.OTHERS=14]="OTHERS"}(a||(t.BaseType=a={}));t.SRField=class{constructor(e){this.decorators=[],this.modifiers=[],this.name=e}getType(){return this.type}setType(e){this.type=e}getName(){return this.name}setName(e){this.name=e}isOptional(){return this._isOptional}setIsOptional(e){this._isOptional=e}getInitializer(){return this.initializer}setInitializer(e){this.initializer=e}static extractRightSideOfAssignment(e){const t=e.match(/=(.*)\s*;?\s*$/);return t?t[1].trim():""}getDecorators(){return this.decorators}addDecorator(e){this.decorators.push(e)}isStatic(){for(let e in this.modifiers)if("StaticKeyword"==e)return!0;return!1}getModifiers(){return this.modifiers}addModifier(e){this.modifiers.push(e)}setDeclaringClass(e){this.declaringClass=e}getDeclaringClass(){return this.declaringClass}};const o="this";t.THIS=o;t.SRFieldRef=class{constructor(e,t=o){this.name=e,this.base=t}getName(){return this.name}getBase(){return this.base}toString(){return this.base+"."+this.name}};t.SRStmt=class{constructor(e){this.fieldRefs=[],this.originalCode=e}getFieldRefs(){return this.fieldRefs}setFieldRefs(e){this.fieldRefs=e}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}addFieldRef(e){this.fieldRefs.push(e)}};t.SRMethod=class{constructor(e){this.parameters=[],this.modifiers=[],this.statements=[],this.name=e}getName(){return this.name}setName(e){this.name=e}getReturnType(){return this.returnType}setReturnType(e){this.returnType=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}isStatic(){for(let e in this.modifiers)if("StaticKeyword"==e)return!0;return!1}getModifiers(){return this.modifiers}setModifiers(e){this.modifiers=e}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}getStatements(){return this.statements}setStatements(e){this.statements=e}};var s;t.SRNamespace=class{constructor(e){this.classes=[],this.namespaces=[],this.name=e}getName(){return this.name}setName(e){this.name=e}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getClasses(){return this.classes}addClass(e){this.classes.push(e)}setClasses(e){this.classes=e}getNamespaces(){return this.namespaces}addNamespace(e){this.namespaces.push(e)}setNamespaces(e){this.namespaces=e}},function(e){e[e.INTERFACE=0]="INTERFACE",e[e.CLASS=1]="CLASS",e[e.STRUCT=2]="STRUCT",e[e.ENUM=3]="ENUM",e[e.OBJECT=4]="OBJECT"}(s||(t.SRClassType=s={}));t.SRClass=class{constructor(e,t){this.decorators=[],this.modifiers=[],this.implementClasses=[],this.methods=[],this.fields=[],this.name=e,this.type=t}getName(){return this.name}setName(e){this.name=e}getType(){return this.type}setType(e){this.type=e}getDecorators(){return this.decorators}addDecorator(e){this.decorators.push(e)}setDecorators(e){this.decorators=e}getSuperClass(){return this.superClass}setSuperClass(e){this.superClass=e}getMethods(){return this.methods}addMethod(e){this.methods.push(e)}setMethods(e){this.methods=e}getFields(){return this.fields}addField(e){this.fields.push(e)}setFields(e){this.fields=e}addModifier(e){this.modifiers.push(e)}getModifiers(){return this.modifiers}addImplementedClass(e){this.implementClasses.push(e)}setDeclaringFile(e){this.declaringFile=e}getDeclaringFile(){return this.declaringFile}getOriginalCode(){return this.originalCode}setOriginalCode(e){this.originalCode=e}};t.SRFile=class{constructor(e){this.classes=[],this.namespaces=[],this.importInfoMap=new Map,this.name=e}getName(){return this.name}setName(e){this.name=e}getFilePath(){return this.filePath}setFilePath(e){this.filePath=e}getDefaultClass(){return this.defaultClass}setDefaultClass(e){this.defaultClass=e}getClasses(){return this.classes}addClass(e){this.classes.push(e)}setClasses(e){this.classes=e}getNamespaces(){return this.namespaces}addNamespace(e){this.namespaces.push(e)}setNamespaces(e){this.namespaces=e}getImportInfoMap(){return this.importInfoMap}getImportInfoBy(e){return this.importInfoMap.get(e)}addImportInfo(e,t,r){if(this.importInfoMap.has(e)||this.importInfoMap.set(e,[]),""!==t){const n=this.importInfoMap.get(e);let a=new i(t,r),o=!1;for(let e of n)if(e.equals(a)){o=!0;break}o||n.push(a)}}getClassByName(e){return this.classes.find((t=>t.getName()===e))}};t.SRScene=class{constructor(){this.files=[]}getFiles(){return this.files}addFile(e){this.files.push(e)}setFiles(e){this.files=e}findFileByName(e){return this.files.find((t=>t.getName()===e))}findFileByPath(e){return this.files.find((t=>t.getFilePath()===e))}}},2752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SRSceneBuilder=void 0;const n=r(4399),i=r(5513),a=r(3506);t.SRSceneBuilder=class{constructor(){this.reverseFileMap=new Map,this.classMap=new Map,this.fieldMap=new Map}build(e){const t=new i.SceneConfig;t.buildConfig("dummy",e.getProjectPath(),"./out/SRSceneBuilder.log",a.LogLevel[e.getLogLevel()],[],e.getTargetFiles());const r=new i.Scene;r.buildSceneFromProjectDir(t),r.inferTypes(),this.scene=r;const o=new n.SRScene;return r.getFiles().forEach((e=>{o.addFile(this.buildFile(e))})),this.buildClassHierarchy(),this.buildFieldDecorators(),o}buildFile(e){const t=new n.SRFile(e.getName());return t.setFilePath(e.getFilePath()),e.getNamespaces().forEach((e=>t.addNamespace(this.buildNamespace(e)))),e.getClasses().forEach((e=>{const r=this.buildClass(e);t.addClass(r),r.setDeclaringFile(t),!t.getDefaultClass()&&e.isDefaultArkClass()&&t.setDefaultClass(r)})),e.getImportInfos().forEach((e=>{let r=e.getImportFrom(),n=e.getImportClauseName();const i=e.getNameBeforeAs();i&&(n=i+" as "+n),t.addImportInfo(r,n,"NamedImports"==e.getImportType())})),this.reverseFileMap.set(t,e),t}buildNamespace(e){const t=new n.SRNamespace(e.getName());return e.getClasses().forEach((e=>{const r=this.buildClass(e);t.addClass(r),!t.getDefaultClass()&&e.isDefaultArkClass()&&t.setDefaultClass(r)})),e.getNamespaces().forEach((e=>t.addNamespace(this.buildNamespace(e)))),t}buildClass(e){const t=e.getOriginType();let r=new n.SRClass(e.getName(),this.transformStrToClassType(t));return e.getModifiers().forEach((e=>{e instanceof i.Decorator?r.addDecorator(this.buildDecorator(e)):r.addModifier(this.transformModifierKeyword(e))})),e.getMethods().forEach((e=>{r.addMethod(this.buildMethod(e))})),e.getFields().forEach((e=>{let t=this.buildField(e);r.addField(t),t.setDeclaringClass(r)})),r.setOriginalCode(e.getCode()),this.classMap.set(e,r),r}buildMethod(e){const t=new n.SRMethod(e.getName()),r=[];e.getModifiers().forEach((e=>{r.push(this.transformModifierKeyword(e.toString()))})),t.setModifiers(r),t.setReturnType(e.getReturnType().toString());const a=[];e.getParameters().forEach((e=>{a.push(e.getName())})),t.setParameters(a),t.setOriginalCode(e.getCode());const o=e.getBody(),s=o.getCfg(),c=o.getOriginalCfg(),l=o.getStmtToOriginalStmt(),u=new Map,d=[];for(const e of c.getStmts()){const t=new n.SRStmt(e.toString());u.set(e,t),d.push(t)}for(const e of s.getStmts()){const t=l.get(e);if(!t)continue;const r=u.get(t);if(r)for(const t of e.getUses())if(t instanceof i.ArkInstanceFieldRef&&t.getBase().getName()==n.THIS){const e=new n.SRFieldRef(t.getFieldName());r.addFieldRef(e)}}return t.setStatements(d),t}buildField(e){let t=new n.SRField(e.getName());t.setInitializer(n.SRField.extractRightSideOfAssignment(e.getCode())),t.setIsOptional(e.getQuestionToken());let r=this.buildFieldType(e.getType());if(r.category==n.BaseType.ENUM){const t=e.getInitializer();if(null!=t){const e=t.getType();e instanceof i.NumberType?r.category=n.BaseType.NUMBER:e instanceof i.StringType&&(r.category=n.BaseType.STRING)}}return t.setType(r),this.fieldMap.set(e,t),t}buildFieldDecorators(){this.fieldMap.forEach(((e,t)=>{t.getModifiers().forEach((t=>{t instanceof i.Decorator?e.addDecorator(this.buildDecorator(t,e)):e.addModifier(this.transformModifierKeyword(t))}))}))}buildDecorator(e,t){const r=e.getKind(),i=e.getParam(),a=e.getContent();let o,s=t?this.buildOption(r,a,t):void 0;return o="Type"==r&&s?new n.TypeDecorator(i,s):"Expose"==r&&s?new n.ExposeDecorator(r,s):"Exclude"==r?new n.ExcludeDecorator(r):"Transform"==r&&s?new n.TransformDecorator(r,a,s):new n.UnclearDecorator(a),o}buildOption(e,t,r){let i=this.extractJson(t);if(""==i)return;let a=i.replace(/([a-zA-Z_]\w*)(?=\s*:)/g,'"$1"');a=a.replace(/:\s*'([^']*)'/g,':"$1"'),a=a.replace(/:\s*([A-Za-z_]\w*)(?=[,}])/g,':"$1"'),a=a.replace(/,\s*([}\]])/g,"$1");let o=JSON.parse(a);switch(e){case"Type":const e=Object.keys(o)[0];if("discriminator"==e){let e=o.discriminator.property,t=o.discriminator.subTypes,i=[];return t.forEach((e=>{var t,n;const a=r.getDeclaringClass().getDeclaringFile();let o=a.getClassByName(e.name);if(!o){const r=null===(n=null===(t=this.reverseFileMap.get(a).getImportInfoBy(e.name))||void 0===t?void 0:t.getLazyExportInfo())||void 0===n?void 0:n.getTypeSignature();o=this.classMap.get(this.scene.getClass(r))}i.push({name:e.name,value:o})})),new n.SRDiscriminator(e,i)}return"postProcess"==e||"passThrough"==e?new n.SRCommonOption(o):void 0;case"Expose":case"Transform":return new n.SRCommonOption(o);default:return}}buildFieldType(e){const t=this.transformStrToFieldType(e),r=this.transformFieldName(e,t),a=[];if(e instanceof i.UnclearReferenceType&&t!=n.BaseType.OTHERS){e.getGenericTypes().forEach((e=>{a.push(this.buildFieldType(e))}))}else if(e instanceof i.ArrayType){const t=e.getBaseType();a.push(this.buildFieldType(t))}else e instanceof i.UnionType&&e.getTypes().forEach((e=>{a.push(this.buildFieldType(e))}));return{category:t,name:r,genericTypes:a}}buildClassHierarchy(){this.classMap.forEach(((e,t)=>{const r=t.getSuperClass();r&&e.setSuperClass(this.classMap.get(r));t.getImplementedInterfaceNames().forEach((r=>{const n=t.getExtendedClasses().get(r);null!=n&&e.addImplementedClass(this.classMap.get(n))}))}))}transformStrToFieldType(e){if(e instanceof i.BooleanType)return n.BaseType.BOOLEAN;if(e instanceof i.StringType)return n.BaseType.STRING;if(e instanceof i.NumberType)return n.BaseType.NUMBER;if(e instanceof i.ClassType){const t=this.scene.getClass(e.getClassSignature());return null==t||"Enum"!=t.getOriginType()?n.BaseType.CLASS:n.BaseType.ENUM}if(e instanceof i.ArrayType)return n.BaseType.ARRAY;if(e instanceof i.UnionType)return n.BaseType.UNION;if(e instanceof i.UnclearReferenceType)switch(e.getName()){case"Set":return n.BaseType.SET;case"collections.Set":return n.BaseType.COLLECTIONS_SET;case"Map":return n.BaseType.MAP;case"collections.Map":return n.BaseType.COLLECTIONS_MAP;case"Array":return n.BaseType.ARRAY;case"collections.Array":return n.BaseType.COLLECTIONS_ARRAY;case"BigIntKeyword":return n.BaseType.BIGINIT;case"ObjectKeyword":return n.BaseType.OBJECT;default:return n.BaseType.OTHERS}return n.BaseType.OTHERS}transformFieldName(e,t){switch(t){case n.BaseType.BIGINIT:case n.BaseType.ARRAY:case n.BaseType.MAP:case n.BaseType.SET:case n.BaseType.UNION:return e.toString().match("BigIntKeyword")?e.toString().replace("BigIntKeyword","bigint"):e.toString().match("ObjectKeyword")?e.toString().replace("ObjectKeyword","object"):e.toString();case n.BaseType.CLASS:case n.BaseType.ENUM:const t=e.toString().split(":");return t.length>1?t[t.length-1].trim():e.toString();default:return e.toString()}}transformStrToClassType(e){switch(e){case"Class":return n.SRClassType.CLASS;case"Struct":return n.SRClassType.STRUCT;case"Interface":return n.SRClassType.INTERFACE;case"Enum":return n.SRClassType.ENUM;default:return n.SRClassType.OBJECT}}transformModifierKeyword(e){switch(e){case"ExportKeyword":return"export";case"PublicKeyword":return"public";case"ProtectedKeyword":return"protected";case"PrivateKeyword":return"private";case"ReadonlyKeyword":return"readonly";case"StaticKeyword":return"static";case"AsyncKeyword":return"async";case"AbstractKeyword":return"abstract";case"DefaultKeyword":return"default";case"ConstKeyword":return"const";default:return e}}extractJson(e){const t=e.indexOf("{");if(-1===t)return"";let r=0;for(let n=t;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDefaultOptional=t.getToJsonTransformFn=t.getMergeFromTransformFn=t.isOptional=t.needInitByCtor=t.needJudgmentInToJson=t.isSendableClass=t.isPostProcess=t.isPassThrough=t.copyMethods=t.genEnumHelper=t.genToJsonStmt=t.genMergeFromStmt=t.genMergeFromStmts=t.genCtorInitialization=t.genFieldDeclaration=t.genClassFactory=t.genClass=void 0;const n=r(4399),i=r(4897),a=r(5932);function o(e){var t;for(let r of e.getDecorators())if(r instanceof n.ExposeDecorator)return null!==(t=r.getOption().getOptions().get("name"))&&void 0!==t?t:null;return null}function s(e,t){const r=t?"convertType":"typeName",n=Object.assign(Object.assign({},e.getType()),{optional:h(e),sendable:t?"convertType":"typeName"}),a=(0,i.template)(n,r),o=e.getInitializer(),s=h(e)?"?":"";return`${e.getName()}${s}: ${a(n)}${o&&b(e)?" = "+o:""};`}function c(e,t){const r=Object.assign(Object.assign({},e.getType()),{optional:h(e),sendable:t?"convertType":"typeName"}),n=(0,i.template)(r,"ctor")(r);return n?`this.${e.getName()} = new ${n}()`:null}function l(e,t){const r=e.getFields().filter(p);let n="";r.length>0&&(n=`if(jsonObj){\n${r.map((e=>a.T.repeat(3)+u(e,"jsonObj",t))).join("\n")}\n${a.T}${a.T}}`);const i=_(e)?"this.postProcess();":"";return`${e.getSuperClass()?"super.mergeFrom(jsonObj)\n":""}${n}${e.getFields().filter((e=>!p(e))).map((e=>u(e,"jsonObj",t))).join(`\n${a.T}`)}\n${a.T}${a.T}${i}`}function u(e,t,r){if(e.getDecorators().find((e=>e instanceof n.ExcludeDecorator)))return"";const s=e.getType(),c=o(e),l=Object.assign(Object.assign({},s),{optional:h(e),sendable:r?"convertType":"typeName"}),u=e.getDecorators().find((e=>e instanceof n.TypeDecorator));(null==u?void 0:u.getOption())instanceof n.SRDiscriminator&&(l.discriminator=u.getOption());const d=y(e);let _="";d&&(l.transformFn=(0,a.transformFnName)(e.getName()),_=`let ${l.transformFn} = ${d}\n${a.T.repeat(3)}`);const f=(0,i.template)(l,"copy")(l);if(p(e))return`${_}${f(t,`this.${e.getName()}`)}`;const g=`${f(`${c?`${t}['${c}'] ?? `:""}${t}['${e.getName()}']`,`this.${e.getName()}`)}`,m=""+(c?`${b(e)?`${t}['${c}']`:(0,a.judgeNotNullStmt)(`${t}['${c}']`)}|| `:""),v=`${b(e)?`${t}['${e.getName()}']`:(0,a.judgeNotNullStmt)(`${t}['${e.getName()}']`)}`;return`\n${a.T}${a.T}if (${m}${v}) {\n${a.T}${a.T}${a.T}${_}${g}\n${a.T}${a.T}}`}function d(e,t,r){if(e.getDecorators().find((e=>e instanceof n.ExcludeDecorator)))return"";const s=e.getType(),c=o(e),l=Object.assign(Object.assign({},s),{optional:h(e),sendable:r?"convertType":"typeName"}),u=e.getDecorators().find((e=>e instanceof n.TypeDecorator));(null==u?void 0:u.getOption())instanceof n.SRDiscriminator&&(l.discriminator=u.getOption());const d=v(e);let p="";d&&(l.transformFn=(0,a.transformFnName)(e.getName()),p=`let ${l.transformFn} = ${d}`);const _=(0,i.template)(l,"toJson")(l);return g(e)?`${p}\n${a.T}${a.T}if(this.${e.getName()}) {\n${a.T}${a.T}${a.T}${_(`${e.getName()}`,`${t}['${null!=c?c:e.getName()}']`)}\n${a.T}${a.T}}`:p+`\n${a.T}${a.T}`+_(`${e.getName()}`,`${t}['${null!=c?c:e.getName()}']`)}function p(e){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.TransformDecorator)return null!=e.getOptions().getOptions().get("passThrough");if(e instanceof n.TypeDecorator&&e.getOption()instanceof n.SRCommonOption){return null!=e.getOption().getOptions().get("passThrough")}}))}function _(e){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.UnclearDecorator)return"PostProcess"===e.getType()}))}function f(e,t){return void 0!==e.getDecorators().find((e=>{if(e instanceof n.UnclearDecorator)return"Sendable"===e.getType()}))||t.isSendable()}function g(e){return(!b(e)||e.getType().category===n.BaseType.CLASS||e.getType().category===n.BaseType.OTHERS)&&(!b(e)&&0!==e.getInitializer().length||0===e.getInitializer().length&&h(e))}function m(e){return(0===e.getInitializer().length||!b(e))&&(!e.isOptional()&&!b(e))}function h(e){return!!e.isOptional()||b(e)&&0===e.getInitializer().length}function y(e){const t=e.getDecorators().find((e=>e instanceof n.TransformDecorator&&e.getOptions().getOptions().get("toClassOnly")));return null==t?void 0:t.getAnonymousMethod()}function v(e){const t=e.getDecorators().find((e=>e instanceof n.TransformDecorator&&e.getOptions().getOptions().get("toPlainOnly")));return null==t?void 0:t.getAnonymousMethod()}function b(e){switch(e.getType().category){case n.BaseType.BOOLEAN:case n.BaseType.NUMBER:case n.BaseType.BIGINIT:case n.BaseType.STRING:case n.BaseType.OBJECT:case n.BaseType.CLASS:case n.BaseType.OTHERS:case n.BaseType.ENUM:case n.BaseType.UNION:return!0;case n.BaseType.ARRAY:case n.BaseType.COLLECTIONS_ARRAY:case n.BaseType.COLLECTIONS_SET:case n.BaseType.COLLECTIONS_MAP:case n.BaseType.SET:case n.BaseType.MAP:return!1}}t.genClass=function(e,t){const r=f(e,t);return`${r?"@Sendable":""}\n${function(e){return`${e.getModifiers().includes("export")?"export ":""}${e.getModifiers().includes("abstract")?"abstract ":""}class ${e.getName()}${e.getSuperClass()?" extends "+e.getSuperClass().getName():""} implements ISerializable<${e.getName()}>`}(e)} {\n${a.T}${e.getFields().map((e=>s(e,r))).join(`\n${a.T}`)}\n\n${a.T}${function(e,t){const r=e.getFields().map((e=>{if(m(e))return c(e,t)})).filter((e=>null!=e)).join(`;\n${a.T}${a.T}`);return e.getModifiers().includes("abstract")?"":`constructor() {\n${a.T}${a.T}${e.getSuperClass()?"super();\n":""}${r}\n${a.T}}`}(e,r)}\n\n${a.T}${e.getMethods().filter((e=>"constructor"!=e.getName()&&!e.getName().startsWith("AnonymousMethod-"))).map((e=>e.getOriginalCode())).join("\n"+a.T)}\n \n${a.T}mergeFrom(jsonObj: object): void {\n${a.T}${a.T}${l(e,r)}\n${a.T}}\n${a.T}toJson(): object {\n${a.T}${a.T}let ans:object = ${e.getSuperClass()?"super.toJson();":"new Object;"}\n${a.T}${a.T}${e.getFields().map((e=>d(e,"ans",r))).join("\n"+a.T.repeat(2))}\n${a.T}${a.T}return ans;\n${a.T}}\n}\n`},t.genClassFactory=function(e,t){const r=f(e,t);if(e.getModifiers().includes("abstract"))return"";const n=(0,a.classFactory)(e.getName());return`${r?"@Sendable":""}\n${e.getModifiers().includes("export")?"export ":""}class ${n} implements ISerializableType<${e.getName()}> {\n${a.T}fromJson(obj: object): ${e.getName()} {\n${a.T}${a.T}const o = new ${e.getName()}();\n${a.T}${a.T}o.mergeFrom(obj);\n${a.T}${a.T}return o;\n${a.T}}\n\n${a.T}toJson(o: ${e.getName()}): object {\n${a.T}${a.T}return o.toJson();\n${a.T}}\n\n${a.T}static instance: ${n} = new ${n}();\n}`},t.genFieldDeclaration=s,t.genCtorInitialization=c,t.genMergeFromStmts=l,t.genMergeFromStmt=u,t.genToJsonStmt=d,t.genEnumHelper=function(e,t){const r=f(e,t),i=(0,a.enumHelper)(e.getName()),o=e.getFields().find((e=>e.getType().category===n.BaseType.NUMBER));return`\n${e.getModifiers().join(" ")} enum ${e.getName()} {\n${a.T}${e.getFields().map((e=>{const t=e.getInitializer();return`${e.getName()}${t?" = "+t:""}`})).join(",\n"+a.T)}\n}\n${r?"@Sendable":""}\nexport class ${i} {\n${a.T}static toEnum(obj: object): ${e.getName()} {\n${a.T}${a.T}if (typeof obj === 'string') {\n${a.T}${a.T}${a.T}switch (String(obj)) {\n${a.T}${a.T}${a.T}${e.getFields().map((t=>`\n${a.T}${a.T}${a.T}${a.T}case '${t.getName()}':{\n${a.T}${a.T}${a.T}${a.T}${a.T}return ${e.getName()}.${t.getName()};\n${a.T}${a.T}${a.T}${a.T}}`)).join("\n")}\n${a.T}${a.T}${a.T}}\n${a.T}${a.T}}${void 0!==o?` else if (typeof obj === 'number') {\n${a.T}${a.T}${a.T}return Number(obj);\n${a.T}${a.T}}`:""} \n${a.T}${a.T}throw new Error('Invalid ${e.getName()}: ' + JSON.stringify(obj));\n${a.T}}\n}`},t.copyMethods=function(e){return""},t.isPassThrough=p,t.isPostProcess=_,t.isSendableClass=f,t.needJudgmentInToJson=g,t.needInitByCtor=m,t.isOptional=h,t.getMergeFromTransformFn=y,t.getToJsonTransformFn=v,t.isDefaultOptional=b},3044:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(4414),a=r(2752),o=r(366),s=n(r(6928)),c=n(r(3506));const l=process.argv.slice(1);l[1]=String(l[1]);const u=process.cwd(),d=(p=l[1],/^(\/|\\|[A-Za-z]:\\)/.test(p)?l[1]:s.default.resolve(u,l[1]));var p;console.info(`input path of ttsconfig.json5: ${d}`);const _=new i.SRConfigBuilder(d);try{if(_.build()){const e=_.getConfig(),t=(new a.SRSceneBuilder).build(e);c.default.configure(e.getLogFilePath(),e.getLogLevel()),(0,o.codeGen)(t,e)}else console.error("parse ttsconfig.json error!")}catch(e){console.error(`Fatal ERROR occurred, Class-Transformer exit! Error msg: ${e}`)}},4897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.template=void 0;const n=r(4399),i=r(5932);function a(e,t,r,n,i){return{typeName:e,convertType:t,ctor:r,copy:n,toJson:i}}function o(e,t){return w[e.category][t]}t.template=o;const s=()=>"bigint",c=()=>"boolean",l=()=>"number",u=()=>"string",d=()=>"lang.ISendable",p=e=>e.name,_=e=>e.name,f=e=>e.genericTypes.map((t=>{const r=Object.assign(Object.assign(Object.assign({},e),t),{optional:!1});return`${o(t,"convertType")(r)}`})).join("|"),g=e=>{const t=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return`collections.Array<${o(e.genericTypes[0],"convertType")(t)}>`},m=e=>`collections.Map<${o(e.genericTypes[0],"convertType")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}, ${o(e.genericTypes[1],"convertType")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1}))}>`,h=e=>{const t=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return`collections.Set<${o(e.genericTypes[0],"convertType")(t)}>`},y=()=>null,v=e=>o(e,e.sendable)(e),b=e=>(t,r)=>{var n;return(null===(n=e.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`let field: object = ${t};\n${i.T}${i.T}${i.T}if (!field['__type']) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in jsonObj: ' + JSON.stringify(jsonObj));\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (field['__type']) {\n${i.T}${i.T}${i.T}${i.T}${e.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${r} = ${(0,i.classFactory)(e.value.getName())}.instance.fromJson(field);\n${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}`:r?`${r} = ${(0,i.classFactory)(e.name)}.instance.fromJson(${t})`:`${(0,i.classFactory)(e.name)}.instance.fromJson(${t})`},x=e=>(t,r)=>{var n;const a=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),s=o(a,"copy")(a),c=e.optional?`${r} ??= new ${v(e)}();\n`:"";return(null===(n=a.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as object[])) {\n${i.T}${i.T}${i.T}${i.T}if (!item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in item: ' + JSON.stringify(item));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${a.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.push(${(0,i.classFactory)(e.value.getName())}.instance.fromJson(item));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as Object[])) {\n${i.T}${i.T}${i.T}${i.T}${r}.push(${s("item")});\n${i.T}${i.T}${i.T}}`},D=e=>(t,r)=>{var a;const s=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),c=(o(s,"convertType")(s),Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1})),l=(o(c,"convertType")(c),o(c,"copy")(c)),u=e.optional?`${r} ??= new ${v(e)}();`:"";let d={category:n.BaseType.OBJECT,name:"object",genericTypes:[]};e.genericTypes[1].category==n.BaseType.BIGINIT&&(d={category:n.BaseType.UNION,name:"union",genericTypes:[{category:n.BaseType.STRING,name:"string",genericTypes:[]},{category:n.BaseType.NUMBER,name:"number",genericTypes:[]},{category:n.BaseType.BIGINIT,name:"bigint",genericTypes:[]}]});const p=Object.assign(Object.assign({},e),{genericTypes:[e.genericTypes[0],d]});return(null===(a=c.discriminator)||void 0===a?void 0:a.getSubTypes().length)?`${u}\n${i.T}${i.T}${i.T}const map: ${v(e)} = ${t};\n${i.T}${i.T}${i.T}for (let entry of map.entries()) {\n${i.T}${i.T}${i.T}${i.T}if (!entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in entry[1]: ' + JSON.stringify(entry[1]));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${c.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.set(entry[0], ${(0,i.classFactory)(e.value.getName())}.instance.fromJson(entry[1]));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${u}\n${i.T}${i.T}${i.T}const map: ${v(p)} = ${t};\n${i.T}${i.T}${i.T}for (let entry of map.entries()) {\n${i.T}${i.T}${i.T}${i.T}${r}.set(entry[0], ${l("entry[1]")});\n${i.T}${i.T}${i.T}}`},S=e=>(t,r)=>{var n;const a=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}),s=o(a,"copy")(a),c=e.optional?`${r} ??= new ${v(e)}();`:"";return(null===(n=a.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as object[])) {\n${i.T}${i.T}${i.T}${i.T}if (!item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('No __type field in item: ' + JSON.stringify(item));\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item['__type']) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${a.discriminator.getSubTypes().map(((e,t,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r}.add(${(0,i.classFactory)(e.value.getName())}.instance.fromJson(item));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${t!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}`:`${c}\n${i.T}${i.T}${i.T}for (let item of ((${t}) as Object[])) {\n${i.T}${i.T}${i.T}${i.T}${r}.add(${s("item")});\n${i.T}${i.T}${i.T}}`},T=e=>t=>t.transformFn?(e=>(t,r)=>r?`${r} = ${e.transformFn}(${t})`:`${e.transformFn}(${t})`)(t):e(t),C=e=>t=>t.transformFn?(e=>(t,r)=>r?`${r} = ${e.transformFn}(this.${t})`:`${e.transformFn}(${t}) as object`)(t):e(t),E=C((e=>(e,t)=>`${t} = this.${(0,i.id)(e)};`)),k=e=>{var t;const r=o(e.genericTypes[0],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});return r===E?(e,t)=>`${t} = Array.from(this.${e})`:(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)?(e,t)=>{var r;return`${t} = Array.from(this.${e}.map(x => {\n${i.T}${i.T}${i.T}if (!x.__type) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (x.__type) {\n${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map((e=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}return ${(0,i.classFactory)(e.value.getName())}.instance.toJson(x as ${e.value.getName()});\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}return x;\n${i.T}${i.T}}));`}:(e,t)=>`${t} = Array.from(this.${e}).map(x => ${r(n)("x")})`},A=e=>{var t;const r=o(e.genericTypes[1],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1});if(r===E)return(e,t)=>`${t} = new Map(this.${e}.entries())`;if(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)return(e,t)=>{var r;return`if (this.${e}) {\n${i.T}${i.T}${i.T}const ${e} = new Map();\n${i.T}${i.T}${i.T}for (let entry of this.${e}.entries()) {\n${i.T}${i.T}${i.T}${i.T}if (!entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (entry[1].__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map(((t,r,n)=>`case '${t.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${e}.set(entry[0], ${(0,i.classFactory)(t.value.getName())}.instance.toJson(entry[1] as ${t.value.getName()}));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${t} = ${e};\n${i.T}${i.T}}`};{const t=e.optional?i.T:"";return(e,a)=>`const ${e} = new Map();\n${t}${i.T}${i.T}for (let entry of this.${e}.entries()) {\n${t}${i.T}${i.T}${i.T}${e}.set(entry[0], ${r(n)("entry[1]")});\n${t}${i.T}${i.T}}\n${t}${i.T}${i.T}${a} = ${e};\n`}},N=e=>{var t;const r=o(e.genericTypes[0],"toJson"),n=Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1});if(r===E)return(e,t)=>`${t} = Array.from(this.${e}.keys())`;if(null===(t=n.discriminator)||void 0===t?void 0:t.getSubTypes().length)return(e,t)=>{var r;return`if (this.${e}) {\n${i.T}${i.T}${i.T}const ${e} = new Set();\n${i.T}${i.T}${i.T}for (let item of this.${e}.keys()) {\n${i.T}${i.T}${i.T}${i.T}if (!item.__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${i.T}switch (item.__type) {\n${i.T}${i.T}${i.T}${i.T}${i.T}${null===(r=n.discriminator)||void 0===r?void 0:r.getSubTypes().map(((t,r,n)=>`case '${t.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${e}.add(${(0,i.classFactory)(t.value.getName())}.instance.toJson(item as ${t.value.getName()}));\n${i.T}${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(5))}\n${i.T}${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}${t} = ${e};\n${i.T}${i.T}}`};{const t=e.optional?i.T:"";return(e,a)=>`const ${e} = new Set();\n${t}${i.T}${i.T}for (let item of this.${e}.keys()) {\n${t}${i.T}${i.T}${i.T}${e}.add(${r(n)("(item)")});\n${t}${i.T}${i.T}}\n${t}${i.T}${i.T}${a} = ${e};\n`}},F=e=>(t,r)=>{var n,a;return(null===(n=e.discriminator)||void 0===n?void 0:n.getSubTypes().length)?`if (!this.${t}.__type) {\n${i.T}${i.T}${i.T}${i.T}throw new Error('__type field is empty, do not know to serialize. ');\n${i.T}${i.T}${i.T}}\n${i.T}${i.T}${i.T}switch (this.${t}.__type) {\n${i.T}${i.T}${i.T}${i.T}${null===(a=e.discriminator)||void 0===a?void 0:a.getSubTypes().map(((e,r,n)=>`case '${e.value.getName()}': {\n${i.T}${i.T}${i.T}${i.T}${i.T}ans['${t}'] = ${(0,i.classFactory)(e.value.getName())}.instance.toJson(this.${t} as ${e.value.getName()});\n${i.T}${i.T}${i.T}${i.T}${i.T}${r!=n.length-1?"break;\n":""}\n${i.T}${i.T}${i.T}${i.T}}`)).join("\n"+i.T.repeat(4))}\n${i.T}${i.T}${i.T}}`:r?`${r} = ${(0,i.classFactory)(e.name)}.instance.toJson(this.${t});`:`${(0,i.classFactory)(e.name)}.instance.toJson(${t})`},w={[n.BaseType.BIGINIT]:a(s,s,y,T((()=>(e,t)=>t?`${t} = BigInt(${e})`:`BigInt(${e} as (string | number | bigint))`)),E),[n.BaseType.BOOLEAN]:a(c,c,y,T((()=>(e,t)=>t?`${t} = Boolean(${e})`:`Boolean(${e})`)),E),[n.BaseType.NUMBER]:a(l,l,y,T((()=>(e,t)=>t?`${t} = Number(${e})`:`Number(${e})`)),E),[n.BaseType.STRING]:a(u,u,y,T((()=>(e,t)=>t?`${t} = String(${e})`:`String(${e})`)),E),[n.BaseType.OBJECT]:a((()=>"object"),d,y,T((()=>(e,t)=>t?`${t} = ${e} as lang.ISendable`:`${e} as lang.ISendable`)),E),[n.BaseType.ARRAY]:a((e=>`Array<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}>`),g,v,x,k),[n.BaseType.MAP]:a((e=>`Map<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}, ${o(e.genericTypes[1],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[1]),{optional:!1}))}>`),m,v,D,A),[n.BaseType.SET]:a((e=>`Set<${o(e.genericTypes[0],"typeName")(Object.assign(Object.assign(Object.assign({},e),e.genericTypes[0]),{optional:!1}))}>`),h,v,S,N),[n.BaseType.ENUM]:a(p,p,y,(e=>(t,r)=>r?`${r} = ${(0,i.enumHelper)(e.name)}.toEnum(${t})`:`${(0,i.enumHelper)(e.name)}.toEnum(${t})`),E),[n.BaseType.OTHERS]:a(_,_,y,T(b),C(F)),[n.BaseType.UNION]:a(f,f,y,T((()=>(e,t)=>`${t} = ${e}`)),E),[n.BaseType.CLASS]:a(_,_,y,T(b),C(F)),[n.BaseType.COLLECTIONS_ARRAY]:a(g,g,v,x,k),[n.BaseType.COLLECTIONS_MAP]:a(m,m,v,D,A),[n.BaseType.COLLECTIONS_SET]:a(h,h,v,S,N)}},3506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0;const n=r(1779);var i;!function(e){e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(i||(t.LogLevel=i={}));t.default=class{static configure(e,t){(0,n.configure)({appenders:{file:{type:"fileSync",filename:`${e}`,maxLogSize:5242880,backups:5,compress:!0,encoding:"utf-8",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [SendableClassTransformer] - %m"}},console:{type:"console",layout:{type:"pattern",pattern:"[%d] [%p] [%z] [SendableClassTransformer] - %m"}}},categories:{default:{appenders:["console"],level:"INFO",enableCallStack:!1},codegen:{appenders:["file"],level:t,enableCallStack:!0}}})}static getLogger(){return(0,n.getLogger)("codegen")}static getConsoleLogger(){return(0,n.getLogger)("console")}static setLogLevel(e){(0,n.getLogger)("codegen").level=e}static setConsoleLogLevel(e){(0,n.getLogger)("console").level=e}}},5932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformFnName=t.judgeNotNullStmt=t.defaultArkClassName=t.gitIgnorePattern=t.T=t.classFactory=t.enumHelper=t.id=void 0;t.id=e=>e;t.enumHelper=e=>`${e}Helper`;t.classFactory=e=>`${e}Type`,t.T=" ",t.gitIgnorePattern="################ content generated by Sendable Class Transformer ################",t.defaultArkClassName="_DEFAULT_ARK_CLASS";t.judgeNotNullStmt=e=>`${e} !== undefined && ${e} !== null`;t.transformFnName=e=>`${e}TransformFn`},1236:(e,t)=>{"use strict";t.S=function(e){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((t,r)=>{arguments[arguments.length]=(e,n)=>{if(e)return r(e);t(n)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})},t.z=function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if("function"!=typeof t)return e.apply(this,arguments);e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},2613:e=>{"use strict";e.exports=require("assert")},181:e=>{"use strict";e.exports=require("buffer")},9907:e=>{"use strict";e.exports=require("cluster")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},9896:e=>{"use strict";e.exports=require("fs")},264:e=>{"use strict";e.exports=require("inspector")},9278:e=>{"use strict";e.exports=require("net")},8474:e=>{"use strict";e.exports=require("node:events")},3024:e=>{"use strict";e.exports=require("node:fs")},1455:e=>{"use strict";e.exports=require("node:fs/promises")},6760:e=>{"use strict";e.exports=require("node:path")},7075:e=>{"use strict";e.exports=require("node:stream")},6193:e=>{"use strict";e.exports=require("node:string_decoder")},3136:e=>{"use strict";e.exports=require("node:url")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2987:e=>{"use strict";e.exports=require("perf_hooks")},2203:e=>{"use strict";e.exports=require("stream")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},7035:(e,t)=>{"use strict";const{parse:r,stringify:n}=JSON,{keys:i}=Object,a=String,o="string",s={},c="object",l=(e,t)=>t,u=e=>e instanceof a?a(e):e,d=(e,t)=>typeof t===o?new a(t):t,p=(e,t,r,n)=>{const o=[];for(let l=i(r),{length:u}=l,d=0;d{const n=a(t.push(r)-1);return e.set(r,n),n},f=(e,t)=>{const n=r(e,d).map(u),i=n[0],a=t||l,o=typeof i===c&&i?p(n,new Set,i,a):i;return a.call({"":o},"",o)};t.parse=f;const g=(e,t,r)=>{const i=t&&typeof t===c?(e,r)=>""===e||-1r(g(e));t.fromJSON=e=>f(n(e))},3876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Glob=void 0;const n=r(8722),i=r(3136),a=r(8576),o=r(4478),s=r(3984),c="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class l{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=(0,i.fileURLToPath)(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=!1!==t.includeChildMatches,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth="number"==typeof t.maxDepth?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof e&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(e=e.map((e=>e.replace(/\\/g,"/")))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map((e=>e.includes("/")?e:`./**/${e}`))}if(this.pattern=e,this.platform=t.platform||c,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,void 0!==t.nocase&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const e="win32"===t.platform?a.PathScurryWin32:"darwin"===t.platform?a.PathScurryDarwin:t.platform?a.PathScurryPosix:a.PathScurry;this.scurry=new e(this.cwd,{nocase:t.nocase,fs:t.fs})}this.nocase=this.scurry.nocase;const r="darwin"===this.platform||"win32"===this.platform,s={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},l=this.pattern.map((e=>new n.Minimatch(e,s))),[u,d]=l.reduce(((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e)),[[],[]]);this.patterns=u.map(((e,t)=>{const r=d[t];if(!r)throw new Error("invalid pattern object");return new o.Pattern(e,r,0,this.platform)}))}async walk(){return[...await new s.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new s.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new s.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new s.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}t.Glob=l},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasMagic=void 0;const n=r(8722);t.hasMagic=(e,t={})=>{Array.isArray(e)||(e=[e]);for(const r of e)if(new n.Minimatch(r,t).hasMagic())return!0;return!1}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ignore=void 0;const n=r(8722),i=r(4478),a="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";t.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:n,noglobstar:i,platform:o=a}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:n,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const t of e)this.add(t)}add(e){const t=new n.Minimatch(e,this.mmopts);for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.glob=t.sync=t.iterate=t.iterateSync=t.stream=t.streamSync=t.Ignore=t.hasMagic=t.Glob=t.unescape=t.escape=void 0,t.globStreamSync=u,t.globStream=d,t.globSync=p,t.globIterateSync=f,t.globIterate=g;const n=r(8722),i=r(3876),a=r(3046);var o=r(8722);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return o.unescape}});var s=r(3876);Object.defineProperty(t,"Glob",{enumerable:!0,get:function(){return s.Glob}});var c=r(3046);Object.defineProperty(t,"hasMagic",{enumerable:!0,get:function(){return c.hasMagic}});var l=r(7972);function u(e,t={}){return new i.Glob(e,t).streamSync()}function d(e,t={}){return new i.Glob(e,t).stream()}function p(e,t={}){return new i.Glob(e,t).walkSync()}async function _(e,t={}){return new i.Glob(e,t).walk()}function f(e,t={}){return new i.Glob(e,t).iterateSync()}function g(e,t={}){return new i.Glob(e,t).iterate()}Object.defineProperty(t,"Ignore",{enumerable:!0,get:function(){return l.Ignore}}),t.streamSync=u,t.stream=Object.assign(d,{sync:u}),t.iterateSync=f,t.iterate=Object.assign(g,{sync:f}),t.sync=Object.assign(p,{stream:u,iterate:f}),t.glob=Object.assign(_,{glob:_,globSync:p,sync:t.sync,globStream:d,stream:t.stream,globStreamSync:u,streamSync:t.streamSync,globIterate:g,iterate:t.iterate,globIterateSync:f,iterateSync:t.iterateSync,Glob:i.Glob,hasMagic:a.hasMagic,escape:n.escape,unescape:n.unescape}),t.glob.glob=t.glob},4478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0;const n=r(8722);class i{#e;#t;#r;length;#n;#i;#a;#o;#s;#c;#l=!0;constructor(e,t,r,n){if(!(e.length>=1))throw new TypeError("empty pattern list");if(!(t.length>=1))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#r=r,this.#n=n,0===this.#r)if(this.isUNC()){const[e,t,r,n,...i]=this.#e,[a,o,s,c,...l]=this.#t;""===i[0]&&(i.shift(),l.shift());const u=[e,t,r,n,""].join("/"),d=[a,o,s,c,""].join("/");this.#e=[u,...i],this.#t=[d,...l],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){const[e,...t]=this.#e,[r,...n]=this.#t;""===t[0]&&(t.shift(),n.shift());const i=e+"/",a=r+"/";this.#e=[i,...t],this.#t=[a,...n],this.length=this.#e.length}}pattern(){return this.#e[this.#r]}isString(){return"string"==typeof this.#e[this.#r]}isGlobstar(){return this.#e[this.#r]===n.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#a=this.#a||(0===this.#r?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return void 0!==this.#i?this.#i:this.hasMore()?(this.#i=new i(this.#e,this.#t,this.#r+1,this.#n),this.#i.#c=this.#c,this.#i.#s=this.#s,this.#i.#o=this.#o,this.#i):this.#i=null}isUNC(){const e=this.#e;return void 0!==this.#s?this.#s:this.#s="win32"===this.#n&&0===this.#r&&""===e[0]&&""===e[1]&&"string"==typeof e[2]&&!!e[2]&&"string"==typeof e[3]&&!!e[3]}isDrive(){const e=this.#e;return void 0!==this.#o?this.#o:this.#o="win32"===this.#n&&0===this.#r&&this.length>1&&"string"==typeof e[0]&&/^[a-z]:$/i.test(e[0])}isAbsolute(){const e=this.#e;return void 0!==this.#c?this.#c:this.#c=""===e[0]&&e.length>1||this.isDrive()||this.isUNC()}root(){const e=this.#e[0];return"string"==typeof e&&this.isAbsolute()&&0===this.#r?e:""}checkFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return!(0===this.#r||!this.isGlobstar()||!this.#l)&&(this.#l=!1,!0)}}t.Pattern=i},800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Processor=t.SubWalks=t.MatchRecord=t.HasWalkedCache=void 0;const n=r(8722);class i{store;constructor(e=new Map){this.store=e}copy(){return new i(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){const r=e.fullpath(),n=this.store.get(r);n?n.add(t.globString()):this.store.set(r,new Set([t.globString()]))}}t.HasWalkedCache=i;class a{store=new Map;add(e,t,r){const n=(t?2:0)|(r?1:0),i=this.store.get(e);this.store.set(e,void 0===i?n:n&i)}entries(){return[...this.store.entries()].map((([e,t])=>[e,!!(2&t),!!(1&t)]))}}t.MatchRecord=a;class o{store=new Map;add(e,t){if(!e.canReaddir())return;const r=this.store.get(e);r?r.find((e=>e.globString()===t.globString()))||r.push(t):this.store.set(e,[t])}get(e){const t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map((e=>[e,this.store.get(e)]))}keys(){return[...this.store.keys()].filter((e=>e.canReaddir()))}}t.SubWalks=o;class s{hasWalkedCache;matches=new a;subwalks=new o;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new i}processPatterns(e,t){this.patterns=t;const r=t.map((t=>[e,t]));for(let[e,t]of r){this.hasWalkedCache.storeWalked(e,t);const r=t.root(),i=t.isAbsolute()&&!1!==this.opts.absolute;if(r){e=e.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);const n=t.rest();if(!n){this.matches.add(e,!0,!1);continue}t=n}if(e.isENOENT())continue;let a,o,s=!1;for(;"string"==typeof(a=t.pattern())&&(o=t.rest());){const r=e.resolve(a);e=r,t=o,s=!0}if(a=t.pattern(),o=t.rest(),s){if(this.hasWalkedCache.hasWalked(e,t))continue;this.hasWalkedCache.storeWalked(e,t)}if("string"!=typeof a)if(a===n.GLOBSTAR){(!e.isSymbolicLink()||this.follow||t.checkFollowGlobstar())&&this.subwalks.add(e,t);const r=o?.pattern(),n=o?.rest();if(o&&(""!==r&&"."!==r||n)){if(".."===r){const t=e.parent||e;n?this.hasWalkedCache.hasWalked(t,n)||this.subwalks.add(t,n):this.matches.add(t,i,!0)}}else this.matches.add(e,i,""===r||"."===r)}else a instanceof RegExp&&this.subwalks.add(e,t);else{const t=".."===a||""===a||"."===a;this.matches.add(e.resolve(a),i,t)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new s(this.opts,this.hasWalkedCache)}filterEntries(e,t){const r=this.subwalks.get(e),i=this.child();for(const e of t)for(const t of r){const r=t.isAbsolute(),a=t.pattern(),o=t.rest();a===n.GLOBSTAR?i.testGlobstar(e,t,o,r):a instanceof RegExp?i.testRegExp(e,a,o,r):i.testString(e,a,o,r)}return i}testGlobstar(e,t,r,n){if(!this.dot&&e.name.startsWith(".")||(t.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){const t=r.pattern();if("string"==typeof t&&".."!==t&&""!==t&&"."!==t)this.testString(e,t,r.rest(),n);else if(".."===t){const t=e.parent||e;this.subwalks.add(t,r)}else t instanceof RegExp&&this.testRegExp(e,t,r.rest(),n)}}testRegExp(e,t,r,n){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}testString(e,t,r,n){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,n,!1))}}t.Processor=s},3984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobStream=t.GlobWalker=t.GlobUtil=void 0;const n=r(5420),i=r(7972),a=r(800);class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#u=[];#d;#p;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#p=r.posix||"win32"!==r.platform?"/":"\\",this.includeChildMatches=!1!==r.includeChildMatches,(r.ignore||!this.includeChildMatches)&&(this.#d=((e,t)=>"string"==typeof e?new i.Ignore([e],t):Array.isArray(e)?new i.Ignore(e,t):e)(r.ignore??[],r),!this.includeChildMatches&&"function"!=typeof this.#d.add)){throw new Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",(()=>{this.#u.length=0})))}#_(e){return this.seen.has(e)||!!this.#d?.ignored?.(e)}#f(e){return!!this.#d?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let e;for(this.paused=!1;!this.paused&&(e=this.#u.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#u.push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=await n.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(n,t)}matchCheckTest(e,t){return!e||!(this.maxDepth===1/0||e.depth()<=this.maxDepth)||t&&!e.canReaddir()||this.opts.nodir&&e.isDirectory()||this.opts.nodir&&this.opts.follow&&e.isSymbolicLink()&&e.realpathCached()?.isDirectory()||this.#_(e)?void 0:e}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}const n=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&n?.isSymbolicLink()){const e=n.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(n,t)}matchFinish(e,t){if(this.#_(e))return;if(!this.includeChildMatches&&this.#d?.add){const t=`${e.relativePosix()}/**`;this.#d.add(t)}const r=void 0===this.opts.absolute?t:this.opts.absolute;this.seen.add(e);const n=this.opts.mark&&e.isDirectory()?this.#p:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){const t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+n)}else{const t=this.opts.posix?e.relativePosix():e.relative(),r=this.opts.dotRelative&&!t.startsWith(".."+this.#p)?"."+this.#p:"";this.matchEmit(t?r+t+n:"."+n)}}async match(e,t,r){const n=await this.matchCheck(e,r);n&&this.matchFinish(n,t)}matchSync(e,t,r){const n=this.matchCheckSync(e,r);n&&this.matchFinish(n,t)}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new a.Processor(this.opts),r)}walkCB2(e,t,r,n){if(this.#f(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(e,t,r,n)));r.processPatterns(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||(i++,this.match(e,t,n).then((()=>a())));for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,r,a):e.readdirCB(((t,n)=>this.walkCB3(e,n,r,a)),!0)}a()}walkCB3(e,t,r,n){r=r.filterEntries(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||(i++,this.match(e,t,n).then((()=>a())));for(const[e,t]of r.subwalks.entries())i++,this.walkCB2(e,t,r.child(),a);a()}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new a.Processor(this.opts),r)}walkCB2Sync(e,t,r,n){if(this.#f(e))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(e,t,r,n)));r.processPatterns(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||this.matchSync(e,t,n);for(const e of r.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;i++;const t=e.readdirSync();this.walkCB3Sync(e,t,r,a)}a()}walkCB3Sync(e,t,r,n){r=r.filterEntries(e,t);let i=1;const a=()=>{0==--i&&n()};for(const[e,t,n]of r.matches.entries())this.#_(e)||this.matchSync(e,t,n);for(const[e,t]of r.subwalks.entries())i++,this.walkCB2Sync(e,t,r.child(),a);a()}}t.GlobUtil=o;t.GlobWalker=class extends o{matches=new Set;constructor(e,t,r){super(e,t,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((e,t)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};t.GlobStream=class extends o{results;constructor(e,t,r){super(e,t,r),this.results=new n.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){const e=this.path;return e.isUnknown()?e.lstat().then((()=>{this.walkCB(e,this.patterns,(()=>this.results.end()))})):this.walkCB(e,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}},9096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n=new Set,i="object"==typeof process&&process?process:{},a=(e,t,r,n)=>{"function"==typeof i.emitWarning?i.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let o=globalThis.AbortController,s=globalThis.AbortSignal;if(void 0===o){s=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},o=class{constructor(){t()}signal=new s;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(const t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==i.env?.LRU_CACHE_IGNORE_AC_WARNING;const t=()=>{e&&(e=!1,a("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");const c=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),l=e=>c(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?u:null:null;class u extends Array{constructor(e){super(e),this.fill(0)}}class d{heap;length;static#g=!1;static create(e){const t=l(e);if(!t)return[];d.#g=!0;const r=new d(e,t);return d.#g=!1,r}constructor(e,t){if(!d.#g)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class p{#m;#h;#y;#v;#b;#x;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#D;#S;#T;#C;#E;#k;#A;#N;#F;#w;#P;#I;#O;#M;#L;#R;#B;static unsafeExposeInternals(e){return{starts:e.#O,ttls:e.#M,sizes:e.#I,keyMap:e.#T,keyList:e.#C,valList:e.#E,next:e.#k,prev:e.#A,get head(){return e.#N},get tail(){return e.#F},free:e.#w,isBackgroundFetch:t=>e.#j(t),backgroundFetch:(t,r,n,i)=>e.#J(t,r,n,i),moveToTail:t=>e.#U(t),indexes:t=>e.#z(t),rindexes:t=>e.#V(t),isStale:t=>e.#K(t)}}get max(){return this.#m}get maxSize(){return this.#h}get calculatedSize(){return this.#S}get size(){return this.#D}get fetchMethod(){return this.#b}get memoMethod(){return this.#x}get dispose(){return this.#y}get disposeAfter(){return this.#v}constructor(e){const{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:u,allowStale:_,dispose:f,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:h,maxSize:y=0,maxEntrySize:v=0,sizeCalculation:b,fetchMethod:x,memoMethod:D,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:T,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:E,ignoreFetchAbort:k}=e;if(0!==t&&!c(t))throw new TypeError("max option must be a nonnegative integer");const A=t?l(t):Array;if(!A)throw new Error("invalid max value: "+t);if(this.#m=t,this.#h=y,this.maxEntrySize=v||this.#h,this.sizeCalculation=b,this.sizeCalculation){if(!this.#h&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==D&&"function"!=typeof D)throw new TypeError("memoMethod must be a function if defined");if(this.#x=D,void 0!==x&&"function"!=typeof x)throw new TypeError("fetchMethod must be a function if specified");if(this.#b=x,this.#R=!!x,this.#T=new Map,this.#C=new Array(t).fill(void 0),this.#E=new Array(t).fill(void 0),this.#k=new A(t),this.#A=new A(t),this.#N=0,this.#F=0,this.#w=d.create(t),this.#D=0,this.#S=0,"function"==typeof f&&(this.#y=f),"function"==typeof g?(this.#v=g,this.#P=[]):(this.#v=void 0,this.#P=void 0),this.#L=!!this.#y,this.#B=!!this.#v,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#h&&!c(this.#h))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#W()}if(this.allowStale=!!_,this.noDeleteOnStaleGet=!!T,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!u,this.ttlResolution=c(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#q()}if(0===this.#m&&0===this.ttl&&0===this.#h)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#m&&!this.#h){const e="LRU_CACHE_UNBOUNDED";if((e=>!n.has(e))(e)){n.add(e);a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,p)}}}getRemainingTTL(e){return this.#T.has(e)?1/0:0}#q(){const e=new u(this.#m),t=new u(this.#m);this.#M=e,this.#O=t,this.#$=(n,i,a=r.now())=>{if(t[n]=0!==i?a:0,e[n]=i,0!==i&&this.ttlAutopurge){const e=setTimeout((()=>{this.#K(n)&&this.#G(this.#C[n],"expire")}),i+1);e.unref&&e.unref()}},this.#H=n=>{t[n]=0!==e[n]?r.now():0},this.#Q=(r,a)=>{if(e[a]){const o=e[a],s=t[a];if(!o||!s)return;r.ttl=o,r.start=s,r.now=n||i();const c=r.now-s;r.remainingTTL=o-c}};let n=0;const i=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{const a=this.#T.get(r);if(void 0===a)return 0;const o=e[a],s=t[a];if(!o||!s)return 1/0;return o-((n||i())-s)},this.#K=r=>{const a=t[r],o=e[r];return!!o&&!!a&&(n||i())-a>o}}#H=()=>{};#Q=()=>{};#$=()=>{};#K=()=>!1;#W(){const e=new u(this.#m);this.#S=0,this.#I=e,this.#X=t=>{this.#S-=e[t],e[t]=0},this.#Y=(e,t,r,n)=>{if(this.#j(t))return 0;if(!c(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!c(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.#Z=(t,r,n)=>{if(e[t]=r,this.#h){const r=this.#h-e[t];for(;this.#S>r;)this.#ee(!0)}this.#S+=e[t],n&&(n.entrySize=r,n.totalCalculatedSize=this.#S)}}#X=e=>{};#Z=(e,t,r)=>{};#Y=(e,t,r,n)=>{if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#z({allowStale:e=this.allowStale}={}){if(this.#D)for(let t=this.#F;this.#te(t)&&(!e&&this.#K(t)||(yield t),t!==this.#N);)t=this.#A[t]}*#V({allowStale:e=this.allowStale}={}){if(this.#D)for(let t=this.#N;this.#te(t)&&(!e&&this.#K(t)||(yield t),t!==this.#F);)t=this.#k[t]}#te(e){return void 0!==e&&this.#T.get(this.#C[e])===e}*entries(){for(const e of this.#z())void 0===this.#E[e]||void 0===this.#C[e]||this.#j(this.#E[e])||(yield[this.#C[e],this.#E[e]])}*rentries(){for(const e of this.#V())void 0===this.#E[e]||void 0===this.#C[e]||this.#j(this.#E[e])||(yield[this.#C[e],this.#E[e]])}*keys(){for(const e of this.#z()){const t=this.#C[e];void 0===t||this.#j(this.#E[e])||(yield t)}}*rkeys(){for(const e of this.#V()){const t=this.#C[e];void 0===t||this.#j(this.#E[e])||(yield t)}}*values(){for(const e of this.#z()){void 0===this.#E[e]||this.#j(this.#E[e])||(yield this.#E[e])}}*rvalues(){for(const e of this.#V()){void 0===this.#E[e]||this.#j(this.#E[e])||(yield this.#E[e])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#z()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;if(void 0!==i&&e(i,this.#C[r],this))return this.get(this.#C[r],t)}}forEach(e,t=this){for(const r of this.#z()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#C[r],this)}}rforEach(e,t=this){for(const r of this.#V()){const n=this.#E[r],i=this.#j(n)?n.__staleWhileFetching:n;void 0!==i&&e.call(t,i,this.#C[r],this)}}purgeStale(){let e=!1;for(const t of this.#V({allowStale:!0}))this.#K(t)&&(this.#G(this.#C[t],"expire"),e=!0);return e}info(e){const t=this.#T.get(e);if(void 0===t)return;const n=this.#E[t],i=this.#j(n)?n.__staleWhileFetching:n;if(void 0===i)return;const a={value:i};if(this.#M&&this.#O){const e=this.#M[t],n=this.#O[t];if(e&&n){const t=e-(r.now()-n);a.ttl=t,a.start=Date.now()}}return this.#I&&(a.size=this.#I[t]),a}dump(){const e=[];for(const t of this.#z({allowStale:!0})){const n=this.#C[t],i=this.#E[t],a=this.#j(i)?i.__staleWhileFetching:i;if(void 0===a||void 0===n)continue;const o={value:a};if(this.#M&&this.#O){o.ttl=this.#M[t];const e=r.now()-this.#O[t];o.start=Math.floor(Date.now()-e)}this.#I&&(o.size=this.#I[t]),e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(void 0===t)return this.delete(e),this;const{ttl:n=this.ttl,start:i,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:s}=r;let{noUpdateTTL:c=this.noUpdateTTL}=r;const l=this.#Y(e,t,r.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#G(e,"set"),this;let u=0===this.#D?void 0:this.#T.get(e);if(void 0===u)u=0===this.#D?this.#F:0!==this.#w.length?this.#w.pop():this.#D===this.#m?this.#ee(!1):this.#D,this.#C[u]=e,this.#E[u]=t,this.#T.set(e,u),this.#k[this.#F]=u,this.#A[u]=this.#F,this.#F=u,this.#D++,this.#Z(u,l,s),s&&(s.set="add"),c=!1;else{this.#U(u);const r=this.#E[u];if(t!==r){if(this.#R&&this.#j(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;void 0===t||a||(this.#L&&this.#y?.(t,e,"set"),this.#B&&this.#P?.push([t,e,"set"]))}else a||(this.#L&&this.#y?.(r,e,"set"),this.#B&&this.#P?.push([r,e,"set"]));if(this.#X(u),this.#Z(u,l,s),this.#E[u]=t,s){s.set="replace";const e=r&&this.#j(r)?r.__staleWhileFetching:r;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0===n||this.#M||this.#q(),this.#M&&(c||this.#$(u,n,i),s&&this.#Q(s,u)),!a&&this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}return this}pop(){try{for(;this.#D;){const e=this.#E[this.#N];if(this.#ee(!0),this.#j(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}}}#ee(e){const t=this.#N,r=this.#C[t],n=this.#E[t];return this.#R&&this.#j(n)?n.__abortController.abort(new Error("evicted")):(this.#L||this.#B)&&(this.#L&&this.#y?.(n,r,"evict"),this.#B&&this.#P?.push([n,r,"evict"])),this.#X(t),e&&(this.#C[t]=void 0,this.#E[t]=void 0,this.#w.push(t)),1===this.#D?(this.#N=this.#F=0,this.#w.length=0):this.#N=this.#k[t],this.#T.delete(r),this.#D--,t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t,i=this.#T.get(e);if(void 0!==i){const e=this.#E[i];if(this.#j(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#K(i))return r&&this.#H(i),n&&(n.has="hit",this.#Q(n,i)),!0;n&&(n.has="stale",this.#Q(n,i))}else n&&(n.has="miss");return!1}peek(e,t={}){const{allowStale:r=this.allowStale}=t,n=this.#T.get(e);if(void 0===n||!r&&this.#K(n))return;const i=this.#E[n];return this.#j(i)?i.__staleWhileFetching:i}#J(e,t,r,n){const i=void 0===t?void 0:this.#E[t];if(this.#j(i))return i;const a=new o,{signal:s}=r;s?.addEventListener("abort",(()=>a.abort(s.reason)),{signal:a.signal});const c={signal:a.signal,options:r,context:n},l=(n,i=!1)=>{const{aborted:o}=a.signal,s=r.ignoreFetchAbort&&void 0!==n;if(r.status&&(o&&!i?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,s&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),o&&!s&&!i)return u(a.signal.reason);const l=d;return this.#E[t]===d&&(void 0===n?l.__staleWhileFetching?this.#E[t]=l.__staleWhileFetching:this.#G(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,c.options))),n},u=n=>{const{aborted:i}=a.signal,o=i&&r.allowStaleOnFetchAbort,s=o||r.allowStaleOnFetchRejection,c=s||r.noDeleteOnFetchRejection,l=d;if(this.#E[t]===d){!c||void 0===l.__staleWhileFetching?this.#G(e,"fetch"):o||(this.#E[t]=l.__staleWhileFetching)}if(s)return r.status&&void 0!==l.__staleWhileFetching&&(r.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw n};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(((t,n)=>{const o=this.#b?.(e,i,c);o&&o instanceof Promise&&o.then((e=>t(void 0===e?void 0:e)),n),a.signal.addEventListener("abort",(()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(void 0),r.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))}))})).then(l,(e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),u(e)))),p=Object.assign(d,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return void 0===t?(this.set(e,p,{...c.options,status:void 0}),t=this.#T.get(e)):this.#E[t]=p,p}#j(e){if(!this.#R)return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof o}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:_=this.allowStaleOnFetchAbort,context:f,forceRefresh:g=!1,status:m,signal:h}=t;if(!this.#R)return m&&(m.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:m});const y={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:s,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:_,ignoreFetchAbort:p,status:m,signal:h};let v=this.#T.get(e);if(void 0===v){m&&(m.fetch="miss");const t=this.#J(e,v,y,f);return t.__returned=t}{const t=this.#E[v];if(this.#j(t)){const e=r&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}const i=this.#K(v);if(!g&&!i)return m&&(m.fetch="hit"),this.#U(v),n&&this.#H(v),m&&this.#Q(m,v),t;const a=this.#J(e,v,y,f),o=void 0!==a.__staleWhileFetching&&r;return m&&(m.fetch=i?"stale":"refresh",o&&i&&(m.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async forceFetch(e,t={}){const r=await this.fetch(e,t);if(void 0===r)throw new Error("fetch() returned undefined");return r}memo(e,t={}){const r=this.#x;if(!r)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...a}=t,o=this.get(e,a);if(!i&&void 0!==o)return o;const s=r(e,o,{options:a,context:n});return this.set(e,s,a),s}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=this.#T.get(e);if(void 0!==o){const t=this.#E[o],s=this.#j(t);return a&&this.#Q(a,o),this.#K(o)?(a&&(a.get="stale"),s?(a&&r&&void 0!==t.__staleWhileFetching&&(a.returnedStale=!0),r?t.__staleWhileFetching:void 0):(i||this.#G(e,"expire"),a&&r&&(a.returnedStale=!0),r?t:void 0)):(a&&(a.get="hit"),s?t.__staleWhileFetching:(this.#U(o),n&&this.#H(o),t))}a&&(a.get="miss")}#re(e,t){this.#A[t]=e,this.#k[e]=t}#U(e){e!==this.#F&&(e===this.#N?this.#N=this.#k[e]:this.#re(this.#A[e],this.#k[e]),this.#re(this.#F,e),this.#F=e)}delete(e){return this.#G(e,"delete")}#G(e,t){let r=!1;if(0!==this.#D){const n=this.#T.get(e);if(void 0!==n)if(r=!0,1===this.#D)this.#ne(t);else{this.#X(n);const r=this.#E[n];if(this.#j(r)?r.__abortController.abort(new Error("deleted")):(this.#L||this.#B)&&(this.#L&&this.#y?.(r,e,t),this.#B&&this.#P?.push([r,e,t])),this.#T.delete(e),this.#C[n]=void 0,this.#E[n]=void 0,n===this.#F)this.#F=this.#A[n];else if(n===this.#N)this.#N=this.#k[n];else{const e=this.#A[n];this.#k[e]=this.#k[n];const t=this.#k[n];this.#A[t]=this.#A[n]}this.#D--,this.#w.push(n)}}if(this.#B&&this.#P?.length){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}return r}clear(){return this.#ne("delete")}#ne(e){for(const t of this.#V({allowStale:!0})){const r=this.#E[t];if(this.#j(r))r.__abortController.abort(new Error("deleted"));else{const n=this.#C[t];this.#L&&this.#y?.(r,n,e),this.#B&&this.#P?.push([r,n,e])}}if(this.#T.clear(),this.#E.fill(void 0),this.#C.fill(void 0),this.#M&&this.#O&&(this.#M.fill(0),this.#O.fill(0)),this.#I&&this.#I.fill(0),this.#N=0,this.#F=0,this.#w.length=0,this.#S=0,this.#D=0,this.#B&&this.#P){const e=this.#P;let t;for(;t=e?.shift();)this.#v?.(...t)}}}t.LRUCache=p},9274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;t.assertValidPattern=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")}},1674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;const n=r(3843),i=r(4116),a=new Set(["!","?","+","*","@"]),o=e=>a.has(e),s="(?!\\.)",c=new Set(["[","."]),l=new Set(["..","."]),u=new Set("().*{}+?[]^$\\!"),d="[^/]",p=d+"*?",_=d+"+?";class f{type;#ie;#ae;#oe=!1;#se=[];#ce;#le;#ue;#de=!1;#pe;#_e;#fe=!1;constructor(e,t,r={}){this.type=e,e&&(this.#ae=!0),this.#ce=t,this.#ie=this.#ce?this.#ce.#ie:this,this.#pe=this.#ie===this?r:this.#ie.#pe,this.#ue=this.#ie===this?[]:this.#ie.#ue,"!"!==e||this.#ie.#de||this.#ue.push(this),this.#le=this.#ce?this.#ce.#se.length:0}get hasMagic(){if(void 0!==this.#ae)return this.#ae;for(const e of this.#se)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#ae=!0;return this.#ae}toString(){return void 0!==this.#_e?this.#_e:this.type?this.#_e=this.type+"("+this.#se.map((e=>String(e))).join("|")+")":this.#_e=this.#se.map((e=>String(e))).join("")}#ge(){if(this!==this.#ie)throw new Error("should only call on root");if(this.#de)return this;let e;for(this.toString(),this.#de=!0;e=this.#ue.pop();){if("!"!==e.type)continue;let t=e,r=t.#ce;for(;r;){for(let n=t.#le+1;!r.type&&n"string"==typeof e?e:e.toJSON())):[this.type,...this.#se.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#ie||this.#ie.#de&&"!"===this.#ce?.type)&&e.push({}),e}isStart(){if(this.#ie===this)return!0;if(!this.#ce?.isStart())return!1;if(0===this.#le)return!0;const e=this.#ce;for(let t=0;t{const[n,i,a,o]="string"==typeof t?f.#he(t,this.#ae,r):t.toRegExpSource(e);return this.#ae=this.#ae||a,this.#oe=this.#oe||o,n})).join("");let a="";if(this.isStart()&&"string"==typeof this.#se[0]){if(!(1===this.#se.length&&l.has(this.#se[0]))){const r=c,i=t&&r.has(n.charAt(0))||n.startsWith("\\.")&&r.has(n.charAt(2))||n.startsWith("\\.\\.")&&r.has(n.charAt(4)),o=!t&&!e&&r.has(n.charAt(0));a=i?"(?!(?:^|/)\\.\\.?(?:$|/))":o?s:""}}let o="";this.isEnd()&&this.#ie.#de&&"!"===this.#ce?.type&&(o="(?:$|\\/)");return[a+n+o,(0,i.unescape)(n),this.#ae=!!this.#ae,this.#oe]}const r="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let a=this.#ye(t);if(this.isStart()&&this.isEnd()&&!a&&"!"!==this.type){const e=this.toString();return this.#se=[e],this.type=null,this.#ae=void 0,[e,(0,i.unescape)(this.toString()),!1,!1]}let o=!r||e||t?"":this.#ye(!0);o===a&&(o=""),o&&(a=`(?:${a})(?:${o})*?`);let u="";if("!"===this.type&&this.#fe)u=(this.isStart()&&!t?s:"")+_;else{u=n+a+("!"===this.type?"))"+(!this.isStart()||t||e?"":s)+p+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`)}return[u,(0,i.unescape)(a),this.#ae=!!this.#ae,this.#oe]}#ye(e){return this.#se.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[r,n,i,a]=t.toRegExpSource(e);return this.#oe=this.#oe||a,r})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#he(e,t,r=!1){let a=!1,o="",s=!1;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;const r={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},n=e=>e.replace(/[[\]\\-]/g,"\\$&"),i=e=>e.join("");t.parseClass=(e,t)=>{const a=t;if("["!==e.charAt(a))throw new Error("not in a brace expression");const o=[],s=[];let c=a+1,l=!1,u=!1,d=!1,p=!1,_=a,f="";e:for(;cf?o.push(n(f)+"-"+n(t)):t===f&&o.push(n(t)),f="",c++):e.startsWith("-]",c+1)?(o.push(n(t+"-")),c+=2):e.startsWith("-",c+1)?(f=t,c+=2):(o.push(n(t)),c++)}else d=!0,c++}else p=!0,c++}if(_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0;t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},8722:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const i=n(r(8928)),a=r(9274),o=r(1674),s=r(2363),c=r(4116);t.minimatch=(e,t,r={})=>((0,a.assertValidPattern)(t),!(!r.nocomment&&"#"===t.charAt(0))&&new O(t,r).match(e));const l=/^\*+([^+@!?\*\[\(]*)$/,u=e=>t=>!t.startsWith(".")&&t.endsWith(e),d=e=>t=>t.endsWith(e),p=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),_=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),f=/^\*+\.\*+$/,g=e=>!e.startsWith(".")&&e.includes("."),m=e=>"."!==e&&".."!==e&&e.includes("."),h=/^\.\*+$/,y=e=>"."!==e&&".."!==e&&e.startsWith("."),v=/^\*+$/,b=e=>0!==e.length&&!e.startsWith("."),x=e=>0!==e.length&&"."!==e&&".."!==e,D=/^\?+([^+@!?\*\[\(]*)?$/,S=([e,t=""])=>{const r=k([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},T=([e,t=""])=>{const r=A([e]);return t?(t=t.toLowerCase(),e=>r(e)&&e.toLowerCase().endsWith(t)):r},C=([e,t=""])=>{const r=A([e]);return t?e=>r(e)&&e.endsWith(t):r},E=([e,t=""])=>{const r=k([e]);return t?e=>r(e)&&e.endsWith(t):r},k=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},A=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},N="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",F={sep:"\\"},w={sep:"/"};t.sep="win32"===N?F.sep:w.sep,t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR;t.filter=(e,r={})=>n=>(0,t.minimatch)(n,e,r),t.minimatch.filter=t.filter;const P=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const r=t.minimatch;return Object.assign(((t,n,i={})=>r(t,n,P(e,i))),{Minimatch:class extends r.Minimatch{constructor(t,r={}){super(t,P(e,r))}static defaults(t){return r.defaults(P(e,t)).Minimatch}},AST:class extends r.AST{constructor(t,r,n={}){super(t,r,P(e,n))}static fromGlob(t,n={}){return r.AST.fromGlob(t,P(e,n))}},unescape:(t,n={})=>r.unescape(t,P(e,n)),escape:(t,n={})=>r.escape(t,P(e,n)),filter:(t,n={})=>r.filter(t,P(e,n)),defaults:t=>r.defaults(P(e,t)),makeRe:(t,n={})=>r.makeRe(t,P(e,n)),braceExpand:(t,n={})=>r.braceExpand(t,P(e,n)),match:(t,n,i={})=>r.match(t,n,P(e,i)),sep:r.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults;t.braceExpand=(e,t={})=>((0,a.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,i.default)(e)),t.minimatch.braceExpand=t.braceExpand;t.makeRe=(e,t={})=>new O(e,t).makeRe(),t.minimatch.makeRe=t.makeRe;t.match=(e,t,r={})=>{const n=new O(t,r);return e=e.filter((e=>n.match(e))),n.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;const I=/[?*]|[+@!]\(.*?\)|\[|\]/;class O{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,a.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||N,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);const r=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((e,t,r)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&I.test(e[2])||I.test(e[3])),r=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(r)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,n),this.set=n.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let r=t;for(;"**"===e[r+1];)r++;r!==t&&e.splice(t,r-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const r=e[e.length-1];return"**"===t&&"**"===r?e:".."===t&&r&&".."!==r&&"."!==r&&"**"!==r?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let r=1;rn&&r.splice(n+1,i-n);let a=r[n+1];const o=r[n+2],s=r[n+3];if(".."!==a)continue;if(!o||"."===o||".."===o||!s||"."===s||".."===s)continue;t=!0,r.splice(n,1);const c=r.slice(0);c[n]="**",e.push(c),n--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length))}partsMatch(e,t,r=!1){let n=0,i=0,a=[],o="";for(;na?r=r.slice(o):a>o&&(e=e.slice(a)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var o=0,s=0,c=e.length,l=r.length;o>> no match, partial?",e,p,r,_),p!==c))}let a;if("string"==typeof u?(a=d===u,this.debug("string match",u,d,a)):(a=u.test(d),this.debug("pattern match",u,d,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return n;if(s===l)return o===c-1&&""===e[o];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,a.assertValidPattern)(e);const r=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let n,i=null;(n=e.match(v))?i=r.dot?x:b:(n=e.match(l))?i=(r.nocase?r.dot?_:p:r.dot?d:u)(n[1]):(n=e.match(D))?i=(r.nocase?r.dot?T:S:r.dot?C:E)(n):(n=e.match(f))?i=r.dot?m:g:(n=e.match(h))&&(i=y);const s=o.AST.fromGlob(e,this.options).toMMPattern();return i&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(r.nocase?["i"]:[]);let a=e.map((e=>{const r=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))i.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));return r.forEach(((e,i)=>{const a=r[i+1],o=r[i-1];e===t.GLOBSTAR&&o!==t.GLOBSTAR&&(void 0===o?void 0!==a&&a!==t.GLOBSTAR?r[i+1]="(?:\\/|"+n+"\\/)?"+a:r[i]=n:void 0===a?r[i-1]=o+"(?:\\/|"+n+")?":a!==t.GLOBSTAR&&(r[i-1]=o+"(?:\\/|\\/"+n+"\\/)"+a,r[i+1]=t.GLOBSTAR))})),r.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[o,s]=e.length>1?["(?:",")"]:["",""];a="^"+o+a+s+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...i].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const r=this.options;this.isWindows&&(e=e.split("\\").join("/"));const n=this.slashSplit(e);this.debug(this.pattern,"split",n);const i=this.set;this.debug(this.pattern,"set",i);let a=n[n.length-1];if(!a)for(let e=n.length-2;!a&&e>=0;e--)a=n[e];for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0;t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},5420:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Minipass=t.isWritable=t.isReadable=t.isStream=void 0;const i="object"==typeof process&&process?process:{stdout:null,stderr:null},a=r(8474),o=n(r(7075)),s=r(6193);t.isStream=e=>!!e&&"object"==typeof e&&(e instanceof V||e instanceof o.default||(0,t.isReadable)(e)||(0,t.isWritable)(e));t.isReadable=e=>!!e&&"object"==typeof e&&e instanceof a.EventEmitter&&"function"==typeof e.pipe&&e.pipe!==o.default.Writable.prototype.pipe;t.isWritable=e=>!!e&&"object"==typeof e&&e instanceof a.EventEmitter&&"function"==typeof e.write&&"function"==typeof e.end;const c=Symbol("EOF"),l=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),d=Symbol("emittingEnd"),p=Symbol("emittedError"),_=Symbol("closed"),f=Symbol("read"),g=Symbol("flush"),m=Symbol("flushChunk"),h=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),b=Symbol("paused"),x=Symbol("resume"),D=Symbol("buffer"),S=Symbol("pipes"),T=Symbol("bufferLength"),C=Symbol("bufferPush"),E=Symbol("bufferShift"),k=Symbol("objectMode"),A=Symbol("destroyed"),N=Symbol("error"),F=Symbol("emitData"),w=Symbol("emitEnd"),P=Symbol("emitEnd2"),I=Symbol("async"),O=Symbol("abort"),M=Symbol("aborted"),L=Symbol("signal"),R=Symbol("dataListeners"),B=Symbol("discarded"),j=e=>Promise.resolve().then(e),J=e=>e();class U{src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[x](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class z extends U{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,t,r){super(e,t,r),this.proxyErrors=e=>t.emit("error",e),e.on("error",this.proxyErrors)}}class V extends a.EventEmitter{[v]=!1;[b]=!1;[S]=[];[D]=[];[k];[h];[I];[y];[c]=!1;[u]=!1;[d]=!1;[_]=!1;[p]=null;[T]=0;[A]=!1;[L];[M]=!1;[R]=0;[B]=!1;writable=!0;readable=!0;constructor(...e){const t=e[0]||{};if(super(),t.objectMode&&"string"==typeof t.encoding)throw new TypeError("Encoding and objectMode may not be used together");t.objectMode?(this[k]=!0,this[h]=null):(e=>!e.objectMode&&!!e.encoding&&"buffer"!==e.encoding)(t)?(this[h]=t.encoding,this[k]=!1):(this[k]=!1,this[h]=null),this[I]=!!t.async,this[y]=this[h]?new s.StringDecoder(this[h]):null,t&&!0===t.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[D]}),t&&!0===t.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[S]});const{signal:r}=t;r&&(this[L]=r,r.aborted?this[O]():r.addEventListener("abort",(()=>this[O]())))}get bufferLength(){return this[T]}get encoding(){return this[h]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[k]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[I]}set async(e){this[I]=this[I]||!!e}[O](){this[M]=!0,this.emit("abort",this[L]?.reason),this.destroy(this[L]?.reason)}get aborted(){return this[M]}set aborted(e){}write(e,t,r){if(this[M])return!1;if(this[c])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof t&&(r=t,t="utf8"),t||(t="utf8");const n=this[I]?j:J;if(!this[k]&&!Buffer.isBuffer(e))if(i=e,!Buffer.isBuffer(i)&&ArrayBuffer.isView(i))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if((e=>e instanceof ArrayBuffer||!!e&&"object"==typeof e&&e.constructor&&"ArrayBuffer"===e.constructor.name&&e.byteLength>=0)(e))e=Buffer.from(e);else if("string"!=typeof e)throw new Error("Non-contiguous data written to non-objectMode stream");var i;return this[k]?(this[v]&&0!==this[T]&&this[g](!0),this[v]?this.emit("data",e):this[C](e),0!==this[T]&&this.emit("readable"),r&&n(r),this[v]):e.length?("string"!=typeof e||t===this[h]&&!this[y]?.lastNeed||(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[h]&&(e=this[y].write(e)),this[v]&&0!==this[T]&&this[g](!0),this[v]?this.emit("data",e):this[C](e),0!==this[T]&&this.emit("readable"),r&&n(r),this[v]):(0!==this[T]&&this.emit("readable"),r&&n(r),this[v])}read(e){if(this[A])return null;if(this[B]=!1,0===this[T]||0===e||e&&e>this[T])return this[l](),null;this[k]&&(e=null),this[D].length>1&&!this[k]&&(this[D]=[this[h]?this[D].join(""):Buffer.concat(this[D],this[T])]);const t=this[f](e||null,this[D][0]);return this[l](),t}[f](e,t){if(this[k])this[E]();else{const r=t;e===r.length||null===e?this[E]():"string"==typeof r?(this[D][0]=r.slice(e),t=r.slice(0,e),this[T]-=e):(this[D][0]=r.subarray(e),t=r.subarray(0,e),this[T]-=e)}return this.emit("data",t),this[D].length||this[c]||this.emit("drain"),t}end(e,t,r){return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t="utf8"),void 0!==e&&this.write(e,t),r&&this.once("end",r),this[c]=!0,this.writable=!1,!this[v]&&this[b]||this[l](),this}[x](){this[A]||(this[R]||this[S].length||(this[B]=!0),this[b]=!1,this[v]=!0,this.emit("resume"),this[D].length?this[g]():this[c]?this[l]():this.emit("drain"))}resume(){return this[x]()}pause(){this[v]=!1,this[b]=!0,this[B]=!1}get destroyed(){return this[A]}get flowing(){return this[v]}get paused(){return this[b]}[C](e){this[k]?this[T]+=1:this[T]+=e.length,this[D].push(e)}[E](){return this[k]?this[T]-=1:this[T]-=this[D][0].length,this[D].shift()}[g](e=!1){do{}while(this[m](this[E]())&&this[D].length);e||this[D].length||this[c]||this.emit("drain")}[m](e){return this.emit("data",e),this[v]}pipe(e,t){if(this[A])return e;this[B]=!1;const r=this[u];return t=t||{},e===i.stdout||e===i.stderr?t.end=!1:t.end=!1!==t.end,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[S].push(t.proxyErrors?new z(this,e,t):new U(this,e,t)),this[I]?j((()=>this[x]())):this[x]()),e}unpipe(e){const t=this[S].find((t=>t.dest===e));t&&(1===this[S].length?(this[v]&&0===this[R]&&(this[v]=!1),this[S]=[]):this[S].splice(this[S].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){const r=super.on(e,t);if("data"===e)this[B]=!1,this[R]++,this[S].length||this[v]||this[x]();else if("readable"===e&&0!==this[T])super.emit("readable");else if((e=>"end"===e||"finish"===e||"prefinish"===e)(e)&&this[u])super.emit(e),this.removeAllListeners(e);else if("error"===e&&this[p]){const e=t;this[I]?j((()=>e.call(this,this[p]))):e.call(this,this[p])}return r}removeListener(e,t){return this.off(e,t)}off(e,t){const r=super.off(e,t);return"data"===e&&(this[R]=this.listeners("data").length,0!==this[R]||this[B]||this[S].length||(this[v]=!1)),r}removeAllListeners(e){const t=super.removeAllListeners(e);return"data"!==e&&void 0!==e||(this[R]=0,this[B]||this[S].length||(this[v]=!1)),t}get emittedEnd(){return this[u]}[l](){this[d]||this[u]||this[A]||0!==this[D].length||!this[c]||(this[d]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[_]&&this.emit("close"),this[d]=!1)}emit(e,...t){const r=t[0];if("error"!==e&&"close"!==e&&e!==A&&this[A])return!1;if("data"===e)return!(!this[k]&&!r)&&(this[I]?(j((()=>this[F](r))),!0):this[F](r));if("end"===e)return this[w]();if("close"===e){if(this[_]=!0,!this[u]&&!this[A])return!1;const e=super.emit("close");return this.removeAllListeners("close"),e}if("error"===e){this[p]=r,super.emit(N,r);const e=!(this[L]&&!this.listeners("error").length)&&super.emit("error",r);return this[l](),e}if("resume"===e){const e=super.emit("resume");return this[l](),e}if("finish"===e||"prefinish"===e){const t=super.emit(e);return this.removeAllListeners(e),t}const n=super.emit(e,...t);return this[l](),n}[F](e){for(const t of this[S])!1===t.dest.write(e)&&this.pause();const t=!this[B]&&super.emit("data",e);return this[l](),t}[w](){return!this[u]&&(this[u]=!0,this.readable=!1,this[I]?(j((()=>this[P]())),!0):this[P]())}[P](){if(this[y]){const e=this[y].end();if(e){for(const t of this[S])t.dest.write(e);this[B]||super.emit("data",e)}}for(const e of this[S])e.end();const e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){const e=Object.assign([],{dataLength:0});this[k]||(e.dataLength=0);const t=this.promise();return this.on("data",(t=>{e.push(t),this[k]||(e.dataLength+=t.length)})),await t,e}async concat(){if(this[k])throw new Error("cannot concat in objectMode");const e=await this.collect();return this[h]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise(((e,t)=>{this.on(A,(()=>t(new Error("stream destroyed")))),this.on("error",(e=>t(e))),this.on("end",(()=>e()))}))}[Symbol.asyncIterator](){this[B]=!1;let e=!1;const t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();const r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[c])return t();let n,i;const a=e=>{this.off("data",o),this.off("end",s),this.off(A,l),t(),i(e)},o=e=>{this.off("error",a),this.off("end",s),this.off(A,l),this.pause(),n({value:e,done:!!this[c]})},s=()=>{this.off("error",a),this.off("data",o),this.off(A,l),t(),n({done:!0,value:void 0})},l=()=>a(new Error("stream destroyed"));return new Promise(((e,t)=>{i=t,n=e,this.once(A,l),this.once("error",a),this.once("end",s),this.once("data",o)}))},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[B]=!1;let e=!1;const t=()=>(this.pause(),this.off(N,t),this.off(A,t),this.off("end",t),e=!0,{done:!0,value:void 0});return this.once("end",t),this.once(N,t),this.once(A,t),{next:()=>{if(e)return t();const r=this.read();return null===r?t():{done:!1,value:r}},throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[A])return e?this.emit("error",e):this.emit(A),this;this[A]=!0,this[B]=!0,this[D].length=0,this[T]=0;return"function"!=typeof this.close||this[_]||this.close(),e?this.emit("error",e):this.emit(A),this}static get isStream(){return t.isStream}}t.Minipass=V},8576:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PathScurry=t.Path=t.PathScurryDarwin=t.PathScurryPosix=t.PathScurryWin32=t.PathScurryBase=t.PathPosix=t.PathWin32=t.PathBase=t.ChildrenCache=t.ResolveCache=void 0;const o=r(9096),s=r(6760),c=r(3136),l=r(9896),u=a(r(3024)),d=l.realpathSync.native,p=r(1455),_=r(5420),f={lstatSync:l.lstatSync,readdir:l.readdir,readdirSync:l.readdirSync,readlinkSync:l.readlinkSync,realpathSync:d,promises:{lstat:p.lstat,readdir:p.readdir,readlink:p.readlink,realpath:p.realpath}},g=e=>e&&e!==f&&e!==u?{...f,...e,promises:{...f.promises,...e.promises||{}}}:f,m=/^\\\\\?\\([a-z]:)\\?$/i,h=/[\\\/]/,y=10,v=15,b=-16,x=128,D=256,S=512,T=e=>e.isFile()?8:e.isDirectory()?4:e.isSymbolicLink()?y:e.isCharacterDevice()?2:e.isBlockDevice()?6:e.isSocket()?12:e.isFIFO()?1:0,C=new Map,E=e=>{const t=C.get(e);if(t)return t;const r=e.normalize("NFKD");return C.set(e,r),r},k=new Map,A=e=>{const t=k.get(e);if(t)return t;const r=E(e.toLowerCase());return k.set(e,r),r};class N extends o.LRUCache{constructor(){super({max:256})}}t.ResolveCache=N;class F extends o.LRUCache{constructor(e=16384){super({maxSize:e,sizeCalculation:e=>e.length+1})}}t.ChildrenCache=F;const w=Symbol("PathScurry setAsCwd");class P{name;root;roots;parent;nocase;isCWD=!1;#ve;#be;get dev(){return this.#be}#xe;get mode(){return this.#xe}#De;get nlink(){return this.#De}#Se;get uid(){return this.#Se}#Te;get gid(){return this.#Te}#Ce;get rdev(){return this.#Ce}#Ee;get blksize(){return this.#Ee}#ke;get ino(){return this.#ke}#D;get size(){return this.#D}#Ae;get blocks(){return this.#Ae}#Ne;get atimeMs(){return this.#Ne}#Fe;get mtimeMs(){return this.#Fe}#we;get ctimeMs(){return this.#we}#Pe;get birthtimeMs(){return this.#Pe}#Ie;get atime(){return this.#Ie}#Oe;get mtime(){return this.#Oe}#Me;get ctime(){return this.#Me}#Le;get birthtime(){return this.#Le}#Re;#Be;#je;#Je;#Ue;#ze;#Ve;#Ke;#We;#qe;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=0,r,n,i,a,o){this.name=e,this.#Re=i?A(e):E(e),this.#Ve=1023&t,this.nocase=i,this.roots=n,this.root=r||this,this.#Ke=a,this.#je=o.fullpath,this.#Ue=o.relative,this.#ze=o.relativePosix,this.parent=o.parent,this.parent?this.#ve=this.parent.#ve:this.#ve=g(o.fs)}depth(){return void 0!==this.#Be?this.#Be:this.parent?this.#Be=this.parent.depth()+1:this.#Be=0}childrenCache(){return this.#Ke}resolve(e){if(!e)return this;const t=this.getRootString(e),r=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#$e(r):this.#$e(r)}#$e(e){let t=this;for(const r of e)t=t.child(r);return t}children(){const e=this.#Ke.get(this);if(e)return e;const t=Object.assign([],{provisional:0});return this.#Ke.set(this,t),this.#Ve&=-17,t}child(e,t){if(""===e||"."===e)return this;if(".."===e)return this.parent||this;const r=this.children(),n=this.nocase?A(e):E(e);for(const e of r)if(e.#Re===n)return e;const i=this.parent?this.sep:"",a=this.#je?this.#je+i+e:void 0,o=this.newChild(e,0,{...t,parent:this,fullpath:a});return this.canReaddir()||(o.#Ve|=x),r.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#Ue)return this.#Ue;const e=this.name,t=this.parent;if(!t)return this.#Ue=this.name;const r=t.relative();return r+(r&&t.parent?this.sep:"")+e}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#ze)return this.#ze;const e=this.name,t=this.parent;if(!t)return this.#ze=this.fullpathPosix();const r=t.relativePosix();return r+(r&&t.parent?"/":"")+e}fullpath(){if(void 0!==this.#je)return this.#je;const e=this.name,t=this.parent;if(!t)return this.#je=this.name;const r=t.fullpath()+(t.parent?this.sep:"")+e;return this.#je=r}fullpathPosix(){if(void 0!==this.#Je)return this.#Je;if("/"===this.sep)return this.#Je=this.fullpath();if(!this.parent){const e=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(e)?this.#Je=`//?/${e}`:this.#Je=e}const e=this.parent,t=e.fullpathPosix(),r=t+(t&&e.parent?"/":"")+this.name;return this.#Je=r}isUnknown(){return!(this.#Ve&v)}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Ve&v)}isDirectory(){return 4==(this.#Ve&v)}isCharacterDevice(){return 2==(this.#Ve&v)}isBlockDevice(){return 6==(this.#Ve&v)}isFIFO(){return 1==(this.#Ve&v)}isSocket(){return 12==(this.#Ve&v)}isSymbolicLink(){return(this.#Ve&y)===y}lstatCached(){return 32&this.#Ve?this:void 0}readlinkCached(){return this.#We}realpathCached(){return this.#qe}readdirCached(){const e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#We)return!0;if(!this.parent)return!1;const e=this.#Ve&v;return!(0!==e&&e!==y||this.#Ve&D||this.#Ve&x)}calledReaddir(){return!!(16&this.#Ve)}isENOENT(){return!!(this.#Ve&x)}isNamed(e){return this.nocase?this.#Re===A(e):this.#Re===E(e)}async readlink(){const e=this.#We;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=await this.#ve.promises.readlink(this.fullpath()),t=(await this.parent.realpath())?.resolve(e);if(t)return this.#We=t}catch(e){return void this.#Ge(e.code)}}readlinkSync(){const e=this.#We;if(e)return e;if(this.canReadlink()&&this.parent)try{const e=this.#ve.readlinkSync(this.fullpath()),t=this.parent.realpathSync()?.resolve(e);if(t)return this.#We=t}catch(e){return void this.#Ge(e.code)}}#He(e){this.#Ve|=16;for(let t=e.provisional;tt(null,e)))}readdirCB(e,t=!1){if(!this.canReaddir())return void(t?e(null,[]):queueMicrotask((()=>e(null,[]))));const r=this.children();if(this.calledReaddir()){const n=r.slice(0,r.provisional);return void(t?e(null,n):queueMicrotask((()=>e(null,n))))}if(this.#st.push(e),this.#ct)return;this.#ct=!0;const n=this.fullpath();this.#ve.readdir(n,{withFileTypes:!0},((e,t)=>{if(e)this.#et(e.code),r.provisional=0;else{for(const e of t)this.#rt(e,r);this.#He(r)}this.#lt(r.slice(0,r.provisional))}))}#ut;async readdir(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();if(this.#ut)await this.#ut;else{let r=()=>{};this.#ut=new Promise((e=>r=e));try{for(const r of await this.#ve.promises.readdir(t,{withFileTypes:!0}))this.#rt(r,e);this.#He(e)}catch(t){this.#et(t.code),e.provisional=0}this.#ut=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];const e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);const t=this.fullpath();try{for(const r of this.#ve.readdirSync(t,{withFileTypes:!0}))this.#rt(r,e);this.#He(e)}catch(t){this.#et(t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(704&this.#Ve)return!1;const e=v&this.#Ve;return 0===e||4===e||e===y}shouldWalk(e,t){return!(4&~this.#Ve)&&!(704&this.#Ve)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#qe)return this.#qe;if(!(896&this.#Ve))try{const e=await this.#ve.promises.realpath(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Ye()}}realpathSync(){if(this.#qe)return this.#qe;if(!(896&this.#Ve))try{const e=this.#ve.realpathSync(this.fullpath());return this.#qe=this.resolve(e)}catch(e){this.#Ye()}}[w](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;const t=new Set([]);let r=[],n=this;for(;n&&n.parent;)t.add(n),n.#Ue=r.join(this.sep),n.#ze=r.join("/"),n=n.parent,r.push("..");for(n=e;n&&n.parent&&!t.has(n);)n.#Ue=void 0,n.#ze=void 0,n=n.parent}}t.PathBase=P;class I extends P{sep="\\";splitSep=h;constructor(e,t=0,r,n,i,a,o){super(e,t,r,n,i,a,o)}newChild(e,t=0,r={}){return new I(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return s.win32.parse(e).root}getRoot(e){if((e=(e=>e.replace(/\//g,"\\").replace(m,"$1\\"))(e.toUpperCase()))===this.root.name)return this.root;for(const[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new L(e,this).root}sameRoot(e,t=this.root.name){return(e=e.toUpperCase().replace(/\//g,"\\").replace(m,"$1\\"))===t}}t.PathWin32=I;class O extends P{splitSep="/";sep="/";constructor(e,t=0,r,n,i,a,o){super(e,t,r,n,i,a,o)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=0,r={}){return new O(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}}t.PathPosix=O;class M{root;rootPath;roots;cwd;#dt;#pt;#Ke;nocase;#ve;constructor(e=process.cwd(),t,r,{nocase:n,childrenCacheSize:i=16384,fs:a=f}={}){this.#ve=g(a),(e instanceof URL||e.startsWith("file://"))&&(e=(0,c.fileURLToPath)(e));const o=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#dt=new N,this.#pt=new N,this.#Ke=new F(i);const s=o.substring(this.rootPath.length).split(r);if(1!==s.length||s[0]||s.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#ve),this.roots[this.rootPath]=this.root;let l=this.root,u=s.length-1;const d=t.sep;let p=this.rootPath,_=!1;for(const e of s){const t=u--;l=l.child(e,{relative:new Array(t).fill("..").join(d),relativePosix:new Array(t).fill("..").join("/"),fullpath:p+=(_?"":d)+e}),_=!0}this.cwd=l}depth(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#Ke}resolve(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#dt.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpath();return this.#dt.set(t,n),n}resolvePosix(...e){let t="";for(let r=e.length-1;r>=0;r--){const n=e[r];if(n&&"."!==n&&(t=t?`${n}/${t}`:n,this.isAbsolute(n)))break}const r=this.#pt.get(t);if(void 0!==r)return r;const n=this.cwd.resolve(t).fullpathPosix();return this.#pt.set(t,n),n}relative(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r}=t;if(e.canReaddir()){const t=await e.readdir();return r?t:t.map((e=>e.name))}return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map((e=>e.name)):[]}async lstat(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return"string"==typeof e&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e.withFileTypes,e=this.cwd);const r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=[];i&&!i(e)||o.push(r?e:e.fullpath());const s=new Set,c=(e,t)=>{s.add(e),e.readdirCB(((e,l)=>{if(e)return t(e);let u=l.length;if(!u)return t();const d=()=>{0==--u&&t()};for(const e of l)i&&!i(e)||o.push(r?e:e.fullpath()),n&&e.isSymbolicLink()?e.realpath().then((e=>e?.isUnknown()?e.lstat():e)).then((e=>e?.shouldWalk(s,a)?c(e,d):d())):e.shouldWalk(s,a)?c(e,d):d()}),!0)},l=e;return new Promise(((e,t)=>{c(l,(r=>{if(r)return t(r);e(o)}))}))}walkSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=[];i&&!i(e)||o.push(r?e:e.fullpath());const s=new Set([e]);for(const e of s){const t=e.readdirSync();for(const e of t){i&&!i(e)||o.push(r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&s.add(t)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t;i&&!i(e)||(yield r?e:e.fullpath());const o=new Set([e]);for(const e of o){const t=e.readdirSync();for(const e of t){i&&!i(e)||(yield r?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,a)&&o.add(t)}}}stream(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=new _.Minipass({objectMode:!0});i&&!i(e)||o.write(r?e:e.fullpath());const s=new Set,c=[e];let l=0;const u=()=>{let e=!1;for(;!e;){const t=c.shift();if(!t)return void(0===l&&o.end());l++,s.add(t);const d=(t,_,f=!1)=>{if(t)return o.emit("error",t);if(n&&!f){const e=[];for(const t of _)t.isSymbolicLink()&&e.push(t.realpath().then((e=>e?.isUnknown()?e.lstat():e)));if(e.length)return void Promise.all(e).then((()=>d(null,_,!0)))}for(const t of _)!t||i&&!i(t)||o.write(r?t:t.fullpath())||(e=!0);l--;for(const e of _){const t=e.realpathCached()||e;t.shouldWalk(s,a)&&c.push(t)}e&&!o.flowing?o.once("drain",u):p||u()};let p=!0;t.readdirCB(d,!0),p=!1}};return u(),o}streamSync(e=this.cwd,t={}){"string"==typeof e?e=this.cwd.resolve(e):e instanceof P||(t=e,e=this.cwd);const{withFileTypes:r=!0,follow:n=!1,filter:i,walkFilter:a}=t,o=new _.Minipass({objectMode:!0}),s=new Set;i&&!i(e)||o.write(r?e:e.fullpath());const c=[e];let l=0;const u=()=>{let e=!1;for(;!e;){const t=c.shift();if(!t)return void(0===l&&o.end());l++,s.add(t);const u=t.readdirSync();for(const t of u)i&&!i(t)||o.write(r?t:t.fullpath())||(e=!0);l--;for(const e of u){let t=e;if(e.isSymbolicLink()){if(!n||!(t=e.realpathSync()))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&c.push(t)}}e&&!o.flowing&&o.once("drain",u)};return u(),o}chdir(e=this.cwd){const t=this.cwd;this.cwd="string"==typeof e?this.cwd.resolve(e):e,this.cwd[w](t)}}t.PathScurryBase=M;class L extends M{sep="\\";constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,s.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return s.win32.parse(e).root.toUpperCase()}newRoot(e){return new I(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}}t.PathScurryWin32=L;class R extends M{sep="/";constructor(e=process.cwd(),t={}){const{nocase:r=!1}=t;super(e,s.posix,"/",{...t,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new O(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}}t.PathScurryPosix=R;class B extends R{constructor(e=process.cwd(),t={}){const{nocase:r=!0}=t;super(e,{...t,nocase:r})}}t.PathScurryDarwin=B,t.Path="win32"===process.platform?I:O,t.PathScurry="win32"===process.platform?L:"darwin"===process.platform?B:R},9429:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>L});var n={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},i={isSpaceSeparator:e=>"string"==typeof e&&n.Space_Separator.test(e),isIdStartChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||n.ID_Start.test(e)),isIdContinueChar:e=>"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||n.ID_Continue.test(e)),isDigit:e=>"string"==typeof e&&/[0-9]/.test(e),isHexDigit:e=>"string"==typeof e&&/[0-9A-Fa-f]/.test(e)};let a,o,s,c,l,u,d,p,_;function f(e,t,r){const n=e[t];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(let e=0;e0;){const t=x();if(!i.isHexDigit(t))throw F(D());e+=D()}return String.fromCodePoint(parseInt(e,16))}const k={start(){if("eof"===d.type)throw w();A()},beforePropertyName(){switch(d.type){case"identifier":case"string":return p=d.value,void(o="afterPropertyName");case"punctuator":return void N();case"eof":throw w()}},afterPropertyName(){if("eof"===d.type)throw w();o="beforePropertyValue"},beforePropertyValue(){if("eof"===d.type)throw w();A()},beforeArrayValue(){if("eof"===d.type)throw w();"punctuator"!==d.type||"]"!==d.value?A():N()},afterPropertyValue(){if("eof"===d.type)throw w();switch(d.value){case",":return void(o="beforePropertyName");case"}":N()}},afterArrayValue(){if("eof"===d.type)throw w();switch(d.value){case",":return void(o="beforeArrayValue");case"]":N()}},end(){}};function A(){let e;switch(d.type){case"punctuator":switch(d.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=d.value}if(void 0===_)_=e;else{const t=s[s.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,p,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)s.push(e),o=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=s[s.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}}function N(){s.pop();const e=s[s.length-1];o=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function F(e){return O(void 0===e?`JSON5: invalid end of input at ${l}:${u}`:`JSON5: invalid character '${I(e)}' at ${l}:${u}`)}function w(){return O(`JSON5: invalid end of input at ${l}:${u}`)}function P(){return u-=5,O(`JSON5: invalid identifier character at ${l}:${u}`)}function I(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function O(e){const t=new SyntaxError(e);return t.lineNumber=l,t.columnNumber=u,t}const M={parse:function(e,t){a=String(e),o="start",s=[],c=0,l=1,u=0,d=void 0,p=void 0,_=void 0;do{d=b(),k[o]()}while("eof"!==d.type);return"function"==typeof t?f({"":_},"",t):_},stringify:function(e,t,r){const n=[];let a,o,s,c="",l="";if(null==t||"object"!=typeof t||Array.isArray(t)||(r=t.space,s=t.quote,t=t.replacer),"function"==typeof t)o=t;else if(Array.isArray(t)){a=[];for(const e of t){let t;"string"==typeof e?t=e:("number"==typeof e||e instanceof String||e instanceof Number)&&(t=String(e)),void 0!==t&&a.indexOf(t)<0&&a.push(t)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),l=" ".substr(0,r)):"string"==typeof r&&(l=r.substr(0,10)),u("",{"":e});function u(e,t){let r=t[e];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(e):"function"==typeof r.toJSON&&(r=r.toJSON(e))),o&&(r=o.call(t,e,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?d(r):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?function(e){if(n.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=c;c+=l;let r,i=[];for(let t=0;t=0)throw TypeError("Converting circular structure to JSON5");n.push(e);let t=c;c+=l;let r,i=a||Object.keys(e),o=[];for(const t of i){const r=u(t,e);if(void 0!==r){let e=p(t)+":";""!==l&&(e+=" "),e+=r,o.push(e)}}if(0===o.length)r="{}";else{let e;if(""===l)e=o.join(","),r="{"+e+"}";else{let n=",\n"+c;e=o.join(n),r="{\n"+c+e+",\n"+t+"}"}}return n.pop(),c=t,r}(r):void 0}function d(e){const t={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let n="";for(let a=0;at[e]{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n=r(r.s=3044);module.exports=n})(); \ No newline at end of file diff --git a/src/classTemplates.ts b/src/classTemplates.ts index 668b5c0..3436bce 100644 --- a/src/classTemplates.ts +++ b/src/classTemplates.ts @@ -254,6 +254,9 @@ export function needJudgmentInToJson(field: SRField): boolean { if (isDefaultOptional(field) && field.getType().category!==BaseType.CLASS && field.getType().category!==BaseType.OTHERS) { return false; } + if (!isDefaultOptional(field) && field.getInitializer().length !== 0) { + return true; + } return field.getInitializer().length === 0 && isOptional(field); } -- Gitee