eslint-plugin-qwik 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -422,7 +422,7 @@ m2: `).concat(this.mapper2.__debugToString().split(`
422
422
  `:return e.formatting.formatOnEnter(It,en,rr)}return[]}function gr(tt,It,Ft,jt,en,rr){rr===void 0&&(rr=e.emptyOptions),fe();var vt=ke(tt),Ht=e.createTextSpanFromBounds(It,Ft),Kn=e.formatting.getFormatContext(en,Z);return e.flatMap(e.deduplicate(jt,e.equateValues,e.compareValues),function(hi){return Ve.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:hi,sourceFile:vt,span:Ht,program:ye,host:Z,cancellationToken:Ve,formatContext:Kn,preferences:rr})})}function Ae(tt,It,Ft,jt){jt===void 0&&(jt=e.emptyOptions),fe(),e.Debug.assert(tt.type==="file");var en=ke(tt.fileName),rr=e.formatting.getFormatContext(Ft,Z);return e.codefix.getAllFixes({fixId:It,sourceFile:en,program:ye,host:Z,cancellationToken:Ve,formatContext:rr,preferences:jt})}function je(tt,It,Ft){var jt;Ft===void 0&&(Ft=e.emptyOptions),fe(),e.Debug.assert(tt.type==="file");var en=ke(tt.fileName),rr=e.formatting.getFormatContext(It,Z),vt=(jt=tt.mode)!==null&&jt!==void 0?jt:tt.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(en,rr,Z,ye,Ft,vt)}function ze(tt,It,Ft,jt){return jt===void 0&&(jt=e.emptyOptions),e.getEditsForFileRename(B(),tt,It,Z,e.formatting.getFormatContext(Ft,Z),jt,Be)}function ge(tt,It){var Ft=typeof tt=="string"?It:tt;return e.isArray(Ft)?Promise.all(Ft.map(function(jt){return $e(jt)})):$e(Ft)}function $e(tt){var It=function(Ft){return e.toPath(Ft,Ue,Le)};return e.Debug.assertEqual(tt.type,"install package"),Z.installPackage?Z.installPackage({fileName:It(tt.file),packageName:tt.packageName}):Promise.reject("Host does not implement `installPackage`")}function ar(tt,It,Ft){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(Z),pe.getCurrentSourceFile(tt),It,Ft)}function xr(tt,It,Ft){if(Ft===60)return!1;var jt=pe.getCurrentSourceFile(tt);if(e.isInString(jt,It))return!1;if(e.isInsideJsxElementOrAttribute(jt,It))return Ft===123;if(e.isInTemplateString(jt,It))return!1;switch(Ft){case 39:case 34:case 96:return!e.isInComment(jt,It)}return!0}function hr(tt,It){var Ft=pe.getCurrentSourceFile(tt),jt=e.findPrecedingToken(It,Ft);if(!!jt){var en=jt.kind===31&&e.isJsxOpeningElement(jt.parent)?jt.parent.parent:e.isJsxText(jt)&&e.isJsxElement(jt.parent)?jt.parent:void 0;if(en&&_t(en))return{newText:"</".concat(en.openingElement.tagName.getText(Ft),">")};var rr=jt.kind===31&&e.isJsxOpeningFragment(jt.parent)?jt.parent.parent:e.isJsxText(jt)&&e.isJsxFragment(jt.parent)?jt.parent:void 0;if(rr&&Ot(rr))return{newText:"</>"}}}function Jr(tt,It){return{lineStarts:tt.getLineStarts(),firstLine:tt.getLineAndCharacterOfPosition(It.pos).line,lastLine:tt.getLineAndCharacterOfPosition(It.end).line}}function Qr(tt,It,Ft){for(var jt=pe.getCurrentSourceFile(tt),en=[],rr=Jr(jt,It),vt=rr.lineStarts,Ht=rr.firstLine,Kn=rr.lastLine,hi=Ft||!1,Xn=Number.MAX_VALUE,wn=new e.Map,ki=new RegExp(/\S/),fi=e.isInsideJsxElement(jt,vt[Ht]),ri=fi?"{/*":"//",fn=Ht;fn<=Kn;fn++){var Qa=jt.text.substring(vt[fn],jt.getLineEndOfPosition(vt[fn])),Ha=ki.exec(Qa);Ha&&(Xn=Math.min(Xn,Ha.index),wn.set(fn.toString(),Ha.index),Qa.substr(Ha.index,ri.length)!==ri&&(hi=Ft===void 0||Ft))}for(var fn=Ht;fn<=Kn;fn++)if(!(Ht!==Kn&&vt[fn]===It.end)){var Ka=wn.get(fn.toString());Ka!==void 0&&(fi?en.push.apply(en,Et(tt,{pos:vt[fn]+Xn,end:jt.getLineEndOfPosition(vt[fn])},hi,fi)):hi?en.push({newText:ri,span:{length:0,start:vt[fn]+Xn}}):jt.text.substr(vt[fn]+Ka,ri.length)===ri&&en.push({newText:"",span:{length:ri.length,start:vt[fn]+Ka}}))}return en}function Et(tt,It,Ft,jt){for(var en,rr=pe.getCurrentSourceFile(tt),vt=[],Ht=rr.text,Kn=!1,hi=Ft||!1,Xn=[],wn=It.pos,ki=jt!==void 0?jt:e.isInsideJsxElement(rr,wn),fi=ki?"{/*":"/*",ri=ki?"*/}":"*/",fn=ki?"\\{\\/\\*":"\\/\\*",Qa=ki?"\\*\\/\\}":"\\*\\/";wn<=It.end;){var Ha=Ht.substr(wn,fi.length)===fi?fi.length:0,Ka=e.isInComment(rr,wn+Ha);if(Ka)ki&&(Ka.pos--,Ka.end++),Xn.push(Ka.pos),Ka.kind===3&&Xn.push(Ka.end),Kn=!0,wn=Ka.end+1;else{var Lo=Ht.substring(wn,It.end).search("(".concat(fn,")|(").concat(Qa,")"));hi=Ft!==void 0?Ft:hi||!e.isTextWhiteSpaceLike(Ht,wn,Lo===-1?It.end:wn+Lo),wn=Lo===-1?It.end+1:wn+Lo+ri.length}}if(hi||!Kn){((en=e.isInComment(rr,It.pos))===null||en===void 0?void 0:en.kind)!==2&&e.insertSorted(Xn,It.pos,e.compareValues),e.insertSorted(Xn,It.end,e.compareValues);var Fa=Xn[0];Ht.substr(Fa,fi.length)!==fi&&vt.push({newText:fi,span:{length:0,start:Fa}});for(var Po=1;Po<Xn.length-1;Po++)Ht.substr(Xn[Po]-ri.length,ri.length)!==ri&&vt.push({newText:ri,span:{length:0,start:Xn[Po]}}),Ht.substr(Xn[Po],fi.length)!==fi&&vt.push({newText:fi,span:{length:0,start:Xn[Po]}});vt.length%2!==0&&vt.push({newText:ri,span:{length:0,start:Xn[Xn.length-1]}})}else for(var La=0,Qn=Xn;La<Qn.length;La++){var ti=Qn[La],go=ti-ri.length>0?ti-ri.length:0,Ha=Ht.substr(go,ri.length)===ri?ri.length:0;vt.push({newText:"",span:{length:fi.length,start:ti-Ha}})}return vt}function Yr(tt,It){var Ft=pe.getCurrentSourceFile(tt),jt=Jr(Ft,It),en=jt.firstLine,rr=jt.lastLine;return en===rr&&It.pos!==It.end?Et(tt,It,!0):Qr(tt,It,!0)}function Wt(tt,It){var Ft=pe.getCurrentSourceFile(tt),jt=[],en=It.pos,rr=It.end;en===rr&&(rr+=e.isInsideJsxElement(Ft,en)?2:1);for(var vt=en;vt<=rr;vt++){var Ht=e.isInComment(Ft,vt);if(Ht){switch(Ht.kind){case 2:jt.push.apply(jt,Qr(tt,{end:Ht.end,pos:Ht.pos+1},!1));break;case 3:jt.push.apply(jt,Et(tt,{end:Ht.end,pos:Ht.pos+1},!1))}vt=Ht.end+1}}return jt}function _t(tt){var It=tt.openingElement,Ft=tt.closingElement,jt=tt.parent;return!e.tagNamesAreEquivalent(It.tagName,Ft.tagName)||e.isJsxElement(jt)&&e.tagNamesAreEquivalent(It.tagName,jt.openingElement.tagName)&&_t(jt)}function Ot(tt){var It=tt.closingFragment,Ft=tt.parent;return!!(It.flags&131072)||e.isJsxFragment(Ft)&&Ot(Ft)}function xt(tt,It,Ft){var jt=pe.getCurrentSourceFile(tt),en=e.formatting.getRangeOfEnclosingComment(jt,It);return en&&(!Ft||en.kind===3)?e.createTextSpanFromRange(en):void 0}function Pt(tt,It){fe();var Ft=ke(tt);Ve.throwIfCancellationRequested();var jt=Ft.text,en=[];if(It.length>0&&!Qa(Ft.fileName))for(var rr=ri(),vt=void 0;vt=rr.exec(jt);){Ve.throwIfCancellationRequested();var Ht=3;e.Debug.assert(vt.length===It.length+Ht);var Kn=vt[1],hi=vt.index+Kn.length;if(!!e.isInComment(Ft,hi)){for(var Xn=void 0,wn=0;wn<It.length;wn++)vt[wn+Ht]&&(Xn=It[wn]);if(Xn===void 0)return e.Debug.fail();if(!fn(jt.charCodeAt(hi+Xn.text.length))){var ki=vt[2];en.push({descriptor:Xn,message:ki,position:hi})}}}return en;function fi(Ha){return Ha.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ri(){var Ha=/(?:\/\/+\s*)/.source,Ka=/(?:\/\*+\s*)/.source,Lo=/(?:^(?:\s|\*)*)/.source,Fa="("+Lo+"|"+Ha+"|"+Ka+")",Po="(?:"+e.map(It,function(xo){return"("+fi(xo.text)+")"}).join("|")+")",La=/(?:$|\*\/)/.source,Qn=/(?:.*?)/.source,ti="("+Po+Qn+")",go=Fa+ti+La;return new RegExp(go,"gim")}function fn(Ha){return Ha>=97&&Ha<=122||Ha>=65&&Ha<=90||Ha>=48&&Ha<=57}function Qa(Ha){return e.stringContains(Ha,"/node_modules/")}}function dn(tt,It,Ft){return fe(),e.Rename.getRenameInfo(ye,ke(tt),It,Ft||{})}function tn(tt,It,Ft,jt,en,rr){var vt=typeof It=="number"?[It,void 0]:[It.pos,It.end],Ht=vt[0],Kn=vt[1];return{file:tt,startPosition:Ht,endPosition:Kn,program:B(),host:Z,formatContext:e.formatting.getFormatContext(jt,Z),cancellationToken:Ve,preferences:Ft,triggerReason:en,kind:rr}}function re(tt,It,Ft){return{file:tt,program:B(),host:Z,span:It,preferences:Ft,cancellationToken:Ve}}function Oe(tt,It){return e.SmartSelectionRange.getSmartSelectionRange(It,pe.getCurrentSourceFile(tt))}function _r(tt,It,Ft,jt,en){Ft===void 0&&(Ft=e.emptyOptions),fe();var rr=ke(tt);return e.refactor.getApplicableRefactors(tn(rr,It,Ft,e.emptyOptions,jt,en))}function pr(tt,It,Ft,jt,en,rr){rr===void 0&&(rr=e.emptyOptions),fe();var vt=ke(tt);return e.refactor.getEditsForRefactor(tn(vt,Ft,rr,It),jt,en)}function ve(tt,It){return It===0?{line:0,character:0}:Be.toLineColumnOffset(tt,It)}function dr(tt,It){fe();var Ft=e.CallHierarchy.resolveCallHierarchyDeclaration(ye,e.getTouchingPropertyName(ke(tt),It));return Ft&&e.mapOneOrMany(Ft,function(jt){return e.CallHierarchy.createCallHierarchyItem(ye,jt)})}function Te(tt,It){fe();var Ft=ke(tt),jt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(ye,It===0?Ft:e.getTouchingPropertyName(Ft,It)));return jt?e.CallHierarchy.getIncomingCalls(ye,jt,Ve):[]}function ut(tt,It){fe();var Ft=ke(tt),jt=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(ye,It===0?Ft:e.getTouchingPropertyName(Ft,It)));return jt?e.CallHierarchy.getOutgoingCalls(ye,jt):[]}function At(tt,It,Ft){Ft===void 0&&(Ft=e.emptyOptions),fe();var jt=ke(tt);return e.InlayHints.provideInlayHints(re(jt,It,Ft))}var gt={dispose:We,cleanupSemanticCache:we,getSyntacticDiagnostics:or,getSemanticDiagnostics:Wr,getSuggestionDiagnostics:wr,getCompilerOptionsDiagnostics:He,getSyntacticClassifications:wt,getSemanticClassifications:br,getEncodedSyntacticClassifications:Nt,getEncodedSemanticClassifications:Gr,getCompletionsAtPosition:_,getCompletionEntryDetails:Zr,getCompletionEntrySymbol:bt,getSignatureHelpItems:Qe,getQuickInfoAtPosition:Tr,getDefinitionAtPosition:zr,getDefinitionAndBoundSpan:Lr,getImplementationAtPosition:Hr,getTypeDefinitionAtPosition:ft,getReferencesAtPosition:Fe,findReferences:Vr,getFileReferences:Ie,getOccurrencesAtPosition:Dt,getDocumentHighlights:De,getNameOrDottedNameSpan:Or,getBreakpointStatementAtPosition:Kr,getNavigateToItems:yr,getRenameInfo:dn,getSmartSelectionRange:Oe,findRenameLocations:mr,getNavigationBarItems:Se,getNavigationTree:Ge,getOutliningSpans:Qt,getTodoComments:Pt,getBraceMatchingAtPosition:kr,getIndentationAtPosition:Mr,getFormattingEditsForRange:Rr,getFormattingEditsForDocument:ot,getFormattingEditsAfterKeystroke:Ne,getDocCommentTemplateAtPosition:ar,isValidBraceCompletionAtPosition:xr,getJsxClosingTagAtPosition:hr,getSpanOfEnclosingComment:xt,getCodeFixesAtPosition:gr,getCombinedCodeFix:Ae,applyCodeActionCommand:ge,organizeImports:je,getEditsForFileRename:ze,getEmitOutput:nr,getNonBoundSourceFile:Er,getProgram:B,getCurrentProgram:function(){return ye},getAutoImportProvider:ue,updateIsDefinitionOfReferencedSymbols:Pe,getApplicableRefactors:_r,getEditsForRefactor:pr,toLineColumnOffset:ve,getSourceMapper:function(){return Be},clearSourceMapperCache:function(){return Be.clearCache()},prepareCallHierarchy:dr,provideCallHierarchyIncomingCalls:Te,provideCallHierarchyOutgoingCalls:ut,toggleLineComment:Qr,toggleMultilineComment:Et,commentSelection:Yr,uncommentSelection:Wt,provideInlayHints:At};switch(W){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:ee.forEach(function(tt){return gt[tt]=function(){throw new Error("LanguageService Operation: ".concat(tt," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:R.forEach(function(tt){return gt[tt]=function(){throw new Error("LanguageService Operation: ".concat(tt," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(W)}return gt}e.createLanguageService=V;function U(Z){return Z.nameTable||X(Z),Z.nameTable}e.getNameTable=U;function X(Z){var C=Z.nameTable=new e.Map;Z.forEachChild(function Y(Q){if(e.isIdentifier(Q)&&!e.isTagName(Q)&&Q.escapedText||e.isStringOrNumericLiteralLike(Q)&&ie(Q)){var ae=e.getEscapedTextOfIdentifierOrLiteral(Q);C.set(ae,C.get(ae)===void 0?Q.pos:-1)}else if(e.isPrivateIdentifier(Q)){var ae=Q.escapedText;C.set(ae,C.get(ae)===void 0?Q.pos:-1)}if(e.forEachChild(Q,Y),e.hasJSDocNodes(Q))for(var W=0,pe=Q.jsDoc;W<pe.length;W++){var ye=pe[W];e.forEachChild(ye,Y)}})}function ie(Z){return e.isDeclarationName(Z)||Z.parent.kind===280||q(Z)||e.isLiteralComputedPropertyDeclarationName(Z)}function ce(Z){var C=Ee(Z);return C&&(e.isObjectLiteralExpression(C.parent)||e.isJsxAttributes(C.parent))?C:void 0}e.getContainingObjectLiteralElement=ce;function Ee(Z){switch(Z.kind){case 10:case 14:case 8:if(Z.parent.kind===164)return e.isObjectLiteralElement(Z.parent.parent)?Z.parent.parent:void 0;case 79:return e.isObjectLiteralElement(Z.parent)&&(Z.parent.parent.kind===207||Z.parent.parent.kind===289)&&Z.parent.name===Z?Z.parent:void 0}}function J(Z,C){var Y=ce(Z);if(Y){var Q=C.getContextualType(Y.parent),ae=Q&&$(Y,C,Q,!1);if(ae&&ae.length===1)return e.first(ae)}return C.getSymbolAtLocation(Z)}function $(Z,C,Y,Q){var ae=e.getNameFromPropertyName(Z.name);if(!ae)return e.emptyArray;if(!Y.isUnion()){var W=Y.getProperty(ae);return W?[W]:e.emptyArray}var pe=e.mapDefined(Y.types,function(ye){return(e.isObjectLiteralExpression(Z.parent)||e.isJsxAttributes(Z.parent))&&C.isTypeInvalidDueToUnionDiscriminant(ye,Z.parent)?void 0:ye.getProperty(ae)});if(Q&&(pe.length===0||pe.length===Y.types.length)){var W=Y.getProperty(ae);if(W)return[W]}return pe.length===0?e.mapDefined(Y.types,function(ye){return ye.getProperty(ae)}):pe}e.getPropertySymbolsFromContextualType=$;function q(Z){return Z&&Z.parent&&Z.parent.kind===209&&Z.parent.argumentExpression===Z}function te(Z){if(typeof __dirname<"u")return e.combinePaths(__dirname,e.getDefaultLibFileName(Z));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=te,e.setObjectAllocator(N())})(Ar||(Ar={}));var Ar;(function(e){var r;(function(n){function i(a,s){if(a.isDeclarationFile)return;var u=e.getTokenAtPosition(a,s),p=a.getLineAndCharacterOfPosition(s).line;if(a.getLineAndCharacterOfPosition(u.getStart(a)).line>p){var d=e.findPrecedingToken(u.pos,a);if(!d||a.getLineAndCharacterOfPosition(d.getEnd()).line!==p)return;u=d}if(u.flags&16777216)return;return k(u);function f(E,P){var b=e.canHaveDecorators(E)?e.findLast(E.modifiers,e.isDecorator):void 0,N=b?e.skipTrivia(a.text,b.end):E.getStart(a);return e.createTextSpanFromBounds(N,(P||E).getEnd())}function m(E,P){return f(E,e.findNextToken(P,P.parent,a))}function S(E,P){return E&&p===a.getLineAndCharacterOfPosition(E.getStart(a)).line?k(E):k(P)}function v(E,P,b){if(E){var N=E.indexOf(P);if(N>=0){for(var y=N,A=N+1;y>0&&b(E[y-1]);)y--;for(;A<E.length&&b(E[A]);)A++;return e.createTextSpanFromBounds(e.skipTrivia(a.text,E[y].pos),E[A-1].end)}}return f(P)}function h(E){return k(e.findPrecedingToken(E.pos,a))}function D(E){return k(e.findNextToken(E,E.parent,a))}function k(E){if(E){var P=E.parent;switch(E.kind){case 240:return se(E.declarationList.declarations[0]);case 257:case 169:case 168:return se(E);case 166:return l(E);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return G(E);case 238:if(e.isFunctionBlock(E))return I(E);case 265:return j(E);case 295:return j(E.block);case 241:return f(E.expression);case 250:return f(E.getChildAt(0),E.expression);case 244:return m(E,E.expression);case 243:return k(E.statement);case 256:return f(E.getChildAt(0));case 242:return m(E,E.expression);case 253:return k(E.statement);case 249:case 248:return f(E.getChildAt(0),E.label);case 245:return R(E);case 246:return m(E,E.expression);case 247:return ee(E);case 252:return m(E,E.expression);case 292:case 293:return k(E.statements[0]);case 255:return j(E.tryBlock);case 254:return f(E,E.expression);case 274:return f(E,E.expression);case 268:return f(E,E.moduleReference);case 269:return f(E,E.moduleSpecifier);case 275:return f(E,E.moduleSpecifier);case 264:if(e.getModuleInstanceState(E)!==1)return;case 260:case 263:case 302:case 205:return f(E);case 251:return k(E.statement);case 167:return v(P.modifiers,E,e.isDecorator);case 203:case 204:return V(E);case 261:case 262:return;case 26:case 1:return S(e.findPrecedingToken(E.pos,a));case 27:return h(E);case 18:return X(E);case 19:return ie(E);case 23:return ce(E);case 20:return Ee(E);case 21:return J(E);case 58:return $(E);case 31:case 29:return q(E);case 115:return te(E);case 91:case 83:case 96:return D(E);case 162:return Z(E);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(E))return U(E);if((E.kind===79||E.kind===227||E.kind===299||E.kind===300)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(P))return f(E);if(E.kind===223){var b=E,N=b.left,y=b.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(N))return U(N);if(y.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent))return f(E);if(y.kind===27)return k(N)}if(e.isExpressionNode(E))switch(P.kind){case 243:return h(E);case 167:return k(E.parent);case 245:case 247:return f(E);case 223:if(E.parent.operatorToken.kind===27)return f(E);break;case 216:if(E.parent.body===E)return f(E);break}switch(E.parent.kind){case 299:if(E.parent.name===E&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(E.parent.parent))return k(E.parent.initializer);break;case 213:if(E.parent.type===E)return D(E.parent.type);break;case 257:case 166:{var A=E.parent,w=A.initializer,L=A.type;if(w===E||L===E||e.isAssignmentOperator(E.kind))return h(E);break}case 223:{var N=E.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(N)&&E!==N)return h(E);break}default:if(e.isFunctionLike(E.parent)&&E.parent.type===E)return h(E)}return k(E.parent)}}function ne(C){return e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]===C?f(e.findPrecedingToken(C.pos,a,C.parent),C):f(C)}function se(C){if(C.parent.parent.kind===246)return k(C.parent.parent);var Y=C.parent;if(e.isBindingPattern(C.name))return V(C.name);if(e.hasOnlyExpressionInitializer(C)&&C.initializer||e.hasSyntacticModifier(C,1)||Y.parent.kind===247)return ne(C);if(e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]!==C)return k(e.findPrecedingToken(C.pos,a,C.parent))}function K(C){return!!C.initializer||C.dotDotDotToken!==void 0||e.hasSyntacticModifier(C,12)}function l(C){if(e.isBindingPattern(C.name))return V(C.name);if(K(C))return f(C);var Y=C.parent,Q=Y.parameters.indexOf(C);return e.Debug.assert(Q!==-1),Q!==0?l(Y.parameters[Q-1]):k(Y.body)}function F(C){return e.hasSyntacticModifier(C,1)||C.parent.kind===260&&C.kind!==173}function G(C){if(!!C.body)return F(C)?f(C):k(C.body)}function I(C){var Y=C.statements.length?C.statements[0]:C.getLastToken();return F(C.parent)?S(C.parent,Y):k(Y)}function j(C){switch(C.parent.kind){case 264:if(e.getModuleInstanceState(C.parent)!==1)return;case 244:case 242:case 246:return S(C.parent,C.statements[0]);case 245:case 247:return S(e.findPrecedingToken(C.pos,a,C.parent),C.statements[0])}return k(C.statements[0])}function ee(C){if(C.initializer.kind===258){var Y=C.initializer;if(Y.declarations.length>0)return k(Y.declarations[0])}else return k(C.initializer)}function R(C){if(C.initializer)return ee(C);if(C.condition)return f(C.condition);if(C.incrementor)return f(C.incrementor)}function V(C){var Y=e.forEach(C.elements,function(Q){return Q.kind!==229?Q:void 0});return Y?k(Y):C.parent.kind===205?f(C.parent):ne(C.parent)}function U(C){e.Debug.assert(C.kind!==204&&C.kind!==203);var Y=C.kind===206?C.elements:C.properties,Q=e.forEach(Y,function(ae){return ae.kind!==229?ae:void 0});return Q?k(Q):f(C.parent.kind===223?C.parent:C)}function X(C){switch(C.parent.kind){case 263:var Y=C.parent;return S(e.findPrecedingToken(C.pos,a,C.parent),Y.members.length?Y.members[0]:Y.getLastToken(a));case 260:var Q=C.parent;return S(e.findPrecedingToken(C.pos,a,C.parent),Q.members.length?Q.members[0]:Q.getLastToken(a));case 266:return S(C.parent.parent,C.parent.clauses[0])}return k(C.parent)}function ie(C){switch(C.parent.kind){case 265:if(e.getModuleInstanceState(C.parent.parent)!==1)return;case 263:case 260:return f(C);case 238:if(e.isFunctionBlock(C.parent))return f(C);case 295:return k(e.lastOrUndefined(C.parent.statements));case 266:var Y=C.parent,Q=e.lastOrUndefined(Y.clauses);return Q?k(e.lastOrUndefined(Q.statements)):void 0;case 203:var ae=C.parent;return k(e.lastOrUndefined(ae.elements)||ae);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var W=C.parent;return f(e.lastOrUndefined(W.properties)||W)}return k(C.parent)}}function ce(C){switch(C.parent.kind){case 204:var Y=C.parent;return f(e.lastOrUndefined(Y.elements)||Y);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var Q=C.parent;return f(e.lastOrUndefined(Q.elements)||Q)}return k(C.parent)}}function Ee(C){return C.parent.kind===243||C.parent.kind===210||C.parent.kind===211?h(C):C.parent.kind===214?D(C):k(C.parent)}function J(C){switch(C.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return h(C);default:return k(C.parent)}}function $(C){return e.isFunctionLike(C.parent)||C.parent.kind===299||C.parent.kind===166?h(C):k(C.parent)}function q(C){return C.parent.kind===213?D(C):k(C.parent)}function te(C){return C.parent.kind===243?m(C,C.parent.expression):k(C.parent)}function Z(C){return C.parent.kind===247?D(C):k(C.parent)}}}n.spanInSourceFileAtLocation=i})(r=e.BreakpointResolver||(e.BreakpointResolver={}))})(Ar||(Ar={}));var Ar;(function(e){function r(n,i,a){var s=[];a=e.fixupCompilerOptions(a,s);var u=e.isArray(n)?n:[n],p=e.transformNodes(void 0,void 0,e.factory,a,u,i,!0);return p.diagnostics=e.concatenate(p.diagnostics,s),p}e.transform=r})(Ar||(Ar={}));var OU=function(){return this}(),Ar;(function(e){function r(E,P){E&&E.log("*INTERNAL ERROR* - Exception in typescript services: "+P.message)}var n=function(){function E(P){this.scriptSnapshotShim=P}return E.prototype.getText=function(P,b){return this.scriptSnapshotShim.getText(P,b)},E.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},E.prototype.getChangeRange=function(P){var b=P,N=this.scriptSnapshotShim.getChangeRange(b.scriptSnapshotShim);if(N===null)return null;var y=JSON.parse(N);return e.createTextChangeRange(e.createTextSpan(y.span.start,y.span.length),y.newLength)},E.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},E}(),i=function(){function E(P){var b=this;this.shimHost=P,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(N,y){var A=JSON.parse(b.shimHost.getModuleResolutionsForFile(y));return e.map(N,function(w){var L=e.getProperty(A,w);return L?{resolvedFileName:L,extension:e.extensionFromPath(L),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(N){return b.shimHost.directoryExists(N)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(N,y){var A=JSON.parse(b.shimHost.getTypeReferenceDirectiveResolutionsForFile(y));return e.map(N,function(w){return e.getProperty(A,e.isString(w)?w:w.fileName.toLowerCase())})})}return E.prototype.log=function(P){this.loggingEnabled&&this.shimHost.log(P)},E.prototype.trace=function(P){this.tracingEnabled&&this.shimHost.trace(P)},E.prototype.error=function(P){this.shimHost.error(P)},E.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},E.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},E.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},E.prototype.getCompilationSettings=function(){var P=this.shimHost.getCompilationSettings();if(P===null||P==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var b=JSON.parse(P);return b.allowNonTsExtensions=!0,b},E.prototype.getScriptFileNames=function(){var P=this.shimHost.getScriptFileNames();return JSON.parse(P)},E.prototype.getScriptSnapshot=function(P){var b=this.shimHost.getScriptSnapshot(P);return b&&new n(b)},E.prototype.getScriptKind=function(P){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(P):0},E.prototype.getScriptVersion=function(P){return this.shimHost.getScriptVersion(P)},E.prototype.getLocalizedDiagnosticMessages=function(){var P=this.shimHost.getLocalizedDiagnosticMessages();if(P===null||P==="")return null;try{return JSON.parse(P)}catch(b){return this.log(b.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},E.prototype.getCancellationToken=function(){var P=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(P)},E.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},E.prototype.getDirectories=function(P){return JSON.parse(this.shimHost.getDirectories(P))},E.prototype.getDefaultLibFileName=function(P){return this.shimHost.getDefaultLibFileName(JSON.stringify(P))},E.prototype.readDirectory=function(P,b,N,y,A){var w=e.getFileMatcherPatterns(P,N,y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(P,JSON.stringify(b),JSON.stringify(w.basePaths),w.excludePattern,w.includeFilePattern,w.includeDirectoryPattern,A))},E.prototype.readFile=function(P,b){return this.shimHost.readFile(P,b)},E.prototype.fileExists=function(P){return this.shimHost.fileExists(P)},E}();e.LanguageServiceShimHostAdapter=i;var a=function(){function E(P){var b=this;this.shimHost=P,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(N){return b.shimHost.directoryExists(N)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(N){return b.shimHost.realpath(N)}:this.realpath=void 0}return E.prototype.readDirectory=function(P,b,N,y,A){var w=e.getFileMatcherPatterns(P,N,y,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(P,JSON.stringify(b),JSON.stringify(w.basePaths),w.excludePattern,w.includeFilePattern,w.includeDirectoryPattern,A))},E.prototype.fileExists=function(P){return this.shimHost.fileExists(P)},E.prototype.readFile=function(P){return this.shimHost.readFile(P)},E.prototype.getDirectories=function(P){return JSON.parse(this.shimHost.getDirectories(P))},E}();e.CoreServicesShimHostAdapter=a;function s(E,P,b,N){var y;N&&(E.log(P),y=e.timestamp());var A=b();if(N){var w=e.timestamp();if(E.log("".concat(P," completed in ").concat(w-y," msec")),e.isString(A)){var L=A;L.length>128&&(L=L.substring(0,128)+"..."),E.log(" result.length=".concat(L.length,", result='").concat(JSON.stringify(L),"'"))}}return A}function u(E,P,b,N){return p(E,P,!0,b,N)}function p(E,P,b,N,y){try{var A=s(E,P,N,y);return b?JSON.stringify({result:A}):A}catch(w){return w instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(r(E,w),w.description=P,JSON.stringify({error:w}))}}var d=function(){function E(P){this.factory=P,P.registerShim(this)}return E.prototype.dispose=function(P){this.factory.unregisterShim(this)},E}();function f(E,P){return E.map(function(b){return m(b,P)})}e.realizeDiagnostics=f;function m(E,P){return{message:e.flattenDiagnosticMessageText(E.messageText,P),start:E.start,length:E.length,category:e.diagnosticCategoryName(E),code:E.code,reportsUnnecessary:E.reportsUnnecessary,reportsDeprecated:E.reportsDeprecated}}var S=function(E){zE(P,E);function P(b,N,y){var A=E.call(this,b)||this;return A.host=N,A.languageService=y,A.logPerformance=!1,A.logger=A.host,A}return P.prototype.forwardJSONCall=function(b,N){return u(this.logger,b,N,this.logPerformance)},P.prototype.dispose=function(b){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,OU&&OU.CollectGarbage&&(OU.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,E.prototype.dispose.call(this,b)},P.prototype.refresh=function(b){this.forwardJSONCall("refresh(".concat(b,")"),function(){return null})},P.prototype.cleanupSemanticCache=function(){var b=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return b.languageService.cleanupSemanticCache(),null})},P.prototype.realizeDiagnostics=function(b){var N=e.getNewLineOrDefaultFromHost(this.host);return f(b,N)},P.prototype.getSyntacticClassifications=function(b,N,y){var A=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return A.languageService.getSyntacticClassifications(b,e.createTextSpan(N,y))})},P.prototype.getSemanticClassifications=function(b,N,y){var A=this;return this.forwardJSONCall("getSemanticClassifications('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return A.languageService.getSemanticClassifications(b,e.createTextSpan(N,y))})},P.prototype.getEncodedSyntacticClassifications=function(b,N,y){var A=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return v(A.languageService.getEncodedSyntacticClassifications(b,e.createTextSpan(N,y)))})},P.prototype.getEncodedSemanticClassifications=function(b,N,y){var A=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return v(A.languageService.getEncodedSemanticClassifications(b,e.createTextSpan(N,y)))})},P.prototype.getSyntacticDiagnostics=function(b){var N=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(b,"')"),function(){var y=N.languageService.getSyntacticDiagnostics(b);return N.realizeDiagnostics(y)})},P.prototype.getSemanticDiagnostics=function(b){var N=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(b,"')"),function(){var y=N.languageService.getSemanticDiagnostics(b);return N.realizeDiagnostics(y)})},P.prototype.getSuggestionDiagnostics=function(b){var N=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(b,"')"),function(){return N.realizeDiagnostics(N.languageService.getSuggestionDiagnostics(b))})},P.prototype.getCompilerOptionsDiagnostics=function(){var b=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var N=b.languageService.getCompilerOptionsDiagnostics();return b.realizeDiagnostics(N)})},P.prototype.getQuickInfoAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getQuickInfoAtPosition(b,N)})},P.prototype.getNameOrDottedNameSpan=function(b,N,y){var A=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return A.languageService.getNameOrDottedNameSpan(b,N,y)})},P.prototype.getBreakpointStatementAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getBreakpointStatementAtPosition(b,N)})},P.prototype.getSignatureHelpItems=function(b,N,y){var A=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(b,"', ").concat(N,")"),function(){return A.languageService.getSignatureHelpItems(b,N,y)})},P.prototype.getDefinitionAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getDefinitionAtPosition(b,N)})},P.prototype.getDefinitionAndBoundSpan=function(b,N){var y=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getDefinitionAndBoundSpan(b,N)})},P.prototype.getTypeDefinitionAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getTypeDefinitionAtPosition(b,N)})},P.prototype.getImplementationAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getImplementationAtPosition(b,N)})},P.prototype.getRenameInfo=function(b,N,y){var A=this;return this.forwardJSONCall("getRenameInfo('".concat(b,"', ").concat(N,")"),function(){return A.languageService.getRenameInfo(b,N,y)})},P.prototype.getSmartSelectionRange=function(b,N){var y=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getSmartSelectionRange(b,N)})},P.prototype.findRenameLocations=function(b,N,y,A,w){var L=this;return this.forwardJSONCall("findRenameLocations('".concat(b,"', ").concat(N,", ").concat(y,", ").concat(A,", ").concat(w,")"),function(){return L.languageService.findRenameLocations(b,N,y,A,w)})},P.prototype.getBraceMatchingAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getBraceMatchingAtPosition(b,N)})},P.prototype.isValidBraceCompletionAtPosition=function(b,N,y){var A=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return A.languageService.isValidBraceCompletionAtPosition(b,N,y)})},P.prototype.getSpanOfEnclosingComment=function(b,N,y){var A=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(b,"', ").concat(N,")"),function(){return A.languageService.getSpanOfEnclosingComment(b,N,y)})},P.prototype.getIndentationAtPosition=function(b,N,y){var A=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(b,"', ").concat(N,")"),function(){var w=JSON.parse(y);return A.languageService.getIndentationAtPosition(b,N,w)})},P.prototype.getReferencesAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getReferencesAtPosition(b,N)})},P.prototype.findReferences=function(b,N){var y=this;return this.forwardJSONCall("findReferences('".concat(b,"', ").concat(N,")"),function(){return y.languageService.findReferences(b,N)})},P.prototype.getFileReferences=function(b){var N=this;return this.forwardJSONCall("getFileReferences('".concat(b,")"),function(){return N.languageService.getFileReferences(b)})},P.prototype.getOccurrencesAtPosition=function(b,N){var y=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(b,"', ").concat(N,")"),function(){return y.languageService.getOccurrencesAtPosition(b,N)})},P.prototype.getDocumentHighlights=function(b,N,y){var A=this;return this.forwardJSONCall("getDocumentHighlights('".concat(b,"', ").concat(N,")"),function(){var w=A.languageService.getDocumentHighlights(b,N,JSON.parse(y)),L=e.toFileNameLowerCase(e.normalizeSlashes(b));return e.filter(w,function(ne){return e.toFileNameLowerCase(e.normalizeSlashes(ne.fileName))===L})})},P.prototype.getCompletionsAtPosition=function(b,N,y,A){var w=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(b,"', ").concat(N,", ").concat(y,", ").concat(A,")"),function(){return w.languageService.getCompletionsAtPosition(b,N,y,A)})},P.prototype.getCompletionEntryDetails=function(b,N,y,A,w,L,ne){var se=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(b,"', ").concat(N,", '").concat(y,"')"),function(){var K=A===void 0?void 0:JSON.parse(A);return se.languageService.getCompletionEntryDetails(b,N,y,K,w,L,ne)})},P.prototype.getFormattingEditsForRange=function(b,N,y,A){var w=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){var L=JSON.parse(A);return w.languageService.getFormattingEditsForRange(b,N,y,L)})},P.prototype.getFormattingEditsForDocument=function(b,N){var y=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(b,"')"),function(){var A=JSON.parse(N);return y.languageService.getFormattingEditsForDocument(b,A)})},P.prototype.getFormattingEditsAfterKeystroke=function(b,N,y,A){var w=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(b,"', ").concat(N,", '").concat(y,"')"),function(){var L=JSON.parse(A);return w.languageService.getFormattingEditsAfterKeystroke(b,N,y,L)})},P.prototype.getDocCommentTemplateAtPosition=function(b,N,y){var A=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(b,"', ").concat(N,")"),function(){return A.languageService.getDocCommentTemplateAtPosition(b,N,y)})},P.prototype.getNavigateToItems=function(b,N,y){var A=this;return this.forwardJSONCall("getNavigateToItems('".concat(b,"', ").concat(N,", ").concat(y,")"),function(){return A.languageService.getNavigateToItems(b,N,y)})},P.prototype.getNavigationBarItems=function(b){var N=this;return this.forwardJSONCall("getNavigationBarItems('".concat(b,"')"),function(){return N.languageService.getNavigationBarItems(b)})},P.prototype.getNavigationTree=function(b){var N=this;return this.forwardJSONCall("getNavigationTree('".concat(b,"')"),function(){return N.languageService.getNavigationTree(b)})},P.prototype.getOutliningSpans=function(b){var N=this;return this.forwardJSONCall("getOutliningSpans('".concat(b,"')"),function(){return N.languageService.getOutliningSpans(b)})},P.prototype.getTodoComments=function(b,N){var y=this;return this.forwardJSONCall("getTodoComments('".concat(b,"')"),function(){return y.languageService.getTodoComments(b,JSON.parse(N))})},P.prototype.prepareCallHierarchy=function(b,N){var y=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(b,"', ").concat(N,")"),function(){return y.languageService.prepareCallHierarchy(b,N)})},P.prototype.provideCallHierarchyIncomingCalls=function(b,N){var y=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(b,"', ").concat(N,")"),function(){return y.languageService.provideCallHierarchyIncomingCalls(b,N)})},P.prototype.provideCallHierarchyOutgoingCalls=function(b,N){var y=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(b,"', ").concat(N,")"),function(){return y.languageService.provideCallHierarchyOutgoingCalls(b,N)})},P.prototype.provideInlayHints=function(b,N,y){var A=this;return this.forwardJSONCall("provideInlayHints('".concat(b,"', '").concat(JSON.stringify(N),"', ").concat(JSON.stringify(y),")"),function(){return A.languageService.provideInlayHints(b,N,y)})},P.prototype.getEmitOutput=function(b){var N=this;return this.forwardJSONCall("getEmitOutput('".concat(b,"')"),function(){var y=N.languageService.getEmitOutput(b),A=y.diagnostics,w=LU(y,["diagnostics"]);return Un(Un({},w),{diagnostics:N.realizeDiagnostics(A)})})},P.prototype.getEmitOutputObject=function(b){var N=this;return p(this.logger,"getEmitOutput('".concat(b,"')"),!1,function(){return N.languageService.getEmitOutput(b)},this.logPerformance)},P.prototype.toggleLineComment=function(b,N){var y=this;return this.forwardJSONCall("toggleLineComment('".concat(b,"', '").concat(JSON.stringify(N),"')"),function(){return y.languageService.toggleLineComment(b,N)})},P.prototype.toggleMultilineComment=function(b,N){var y=this;return this.forwardJSONCall("toggleMultilineComment('".concat(b,"', '").concat(JSON.stringify(N),"')"),function(){return y.languageService.toggleMultilineComment(b,N)})},P.prototype.commentSelection=function(b,N){var y=this;return this.forwardJSONCall("commentSelection('".concat(b,"', '").concat(JSON.stringify(N),"')"),function(){return y.languageService.commentSelection(b,N)})},P.prototype.uncommentSelection=function(b,N){var y=this;return this.forwardJSONCall("uncommentSelection('".concat(b,"', '").concat(JSON.stringify(N),"')"),function(){return y.languageService.uncommentSelection(b,N)})},P}(d);function v(E){return{spans:E.spans.join(","),endOfLineState:E.endOfLineState}}var h=function(E){zE(P,E);function P(b,N){var y=E.call(this,b)||this;return y.logger=N,y.logPerformance=!1,y.classifier=e.createClassifier(),y}return P.prototype.getEncodedLexicalClassifications=function(b,N,y){var A=this;return y===void 0&&(y=!1),u(this.logger,"getEncodedLexicalClassifications",function(){return v(A.classifier.getEncodedLexicalClassifications(b,N,y))},this.logPerformance)},P.prototype.getClassificationsForLine=function(b,N,y){y===void 0&&(y=!1);for(var A=this.classifier.getClassificationsForLine(b,N,y),w="",L=0,ne=A.entries;L<ne.length;L++){var se=ne[L];w+=se.length+`
423
423
  `,w+=se.classification+`
424
424
  `}return w+=A.finalLexState,w},P}(d),D=function(E){zE(P,E);function P(b,N,y){var A=E.call(this,b)||this;return A.logger=N,A.host=y,A.logPerformance=!1,A}return P.prototype.forwardJSONCall=function(b,N){return u(this.logger,b,N,this.logPerformance)},P.prototype.resolveModuleName=function(b,N,y){var A=this;return this.forwardJSONCall("resolveModuleName('".concat(b,"')"),function(){var w=JSON.parse(y),L=e.resolveModuleName(N,e.normalizeSlashes(b),w,A.host),ne=L.resolvedModule?L.resolvedModule.resolvedFileName:void 0;return L.resolvedModule&&L.resolvedModule.extension!==".ts"&&L.resolvedModule.extension!==".tsx"&&L.resolvedModule.extension!==".d.ts"&&(ne=void 0),{resolvedFileName:ne,failedLookupLocations:L.failedLookupLocations,affectingLocations:L.affectingLocations}})},P.prototype.resolveTypeReferenceDirective=function(b,N,y){var A=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(b,")"),function(){var w=JSON.parse(y),L=e.resolveTypeReferenceDirective(N,e.normalizeSlashes(b),w,A.host);return{resolvedFileName:L.resolvedTypeReferenceDirective?L.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:L.resolvedTypeReferenceDirective?L.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:L.failedLookupLocations}})},P.prototype.getPreProcessedFileInfo=function(b,N){var y=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(b,"')"),function(){var A=e.preProcessFile(e.getSnapshotText(N),!0,!0);return{referencedFiles:y.convertFileReferences(A.referencedFiles),importedFiles:y.convertFileReferences(A.importedFiles),ambientExternalModules:A.ambientExternalModules,isLibFile:A.isLibFile,typeReferenceDirectives:y.convertFileReferences(A.typeReferenceDirectives),libReferenceDirectives:y.convertFileReferences(A.libReferenceDirectives)}})},P.prototype.getAutomaticTypeDirectiveNames=function(b){var N=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(b,"')"),function(){var y=JSON.parse(b);return e.getAutomaticTypeDirectiveNames(y,N.host)})},P.prototype.convertFileReferences=function(b){if(!!b){for(var N=[],y=0,A=b;y<A.length;y++){var w=A[y];N.push({path:e.normalizeSlashes(w.fileName),position:w.pos,length:w.end-w.pos})}return N}},P.prototype.getTSConfigFileInfo=function(b,N){var y=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(b,"')"),function(){var A=e.parseJsonText(b,e.getSnapshotText(N)),w=e.normalizeSlashes(b),L=e.parseJsonSourceFileConfigFileContent(A,y.host,e.getDirectoryPath(w),{},w);return{options:L.options,typeAcquisition:L.typeAcquisition,files:L.fileNames,raw:L.raw,errors:f(Zt(Zt([],A.parseDiagnostics,!0),L.errors,!0),`\r
425
- `)}})},P.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},P.prototype.discoverTypings=function(b){var N=this,y=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var A=JSON.parse(b);return N.safeList===void 0&&(N.safeList=e.JsTyping.loadSafeList(N.host,e.toPath(A.safeListPath,A.safeListPath,y))),e.JsTyping.discoverTypings(N.host,function(w){return N.logger.log(w)},A.fileNames,e.toPath(A.projectRootPath,A.projectRootPath,y),N.safeList,A.packageNameToTypingLocation,A.typeAcquisition,A.unresolvedImports,A.typesRegistry,e.emptyOptions)})},P}(d),k=function(){function E(){this._shims=[]}return E.prototype.getServicesVersion=function(){return e.servicesVersion},E.prototype.createLanguageServiceShim=function(P){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(P.useCaseSensitiveFileNames&&P.useCaseSensitiveFileNames(),P.getCurrentDirectory()));var b=new i(P),N=e.createLanguageService(b,this.documentRegistry,!1);return new S(this,P,N)}catch(y){throw r(P,y),y}},E.prototype.createClassifierShim=function(P){try{return new h(this,P)}catch(b){throw r(P,b),b}},E.prototype.createCoreServicesShim=function(P){try{var b=new a(P);return new D(this,P,b)}catch(N){throw r(P,N),N}},E.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},E.prototype.registerShim=function(P){this._shims.push(P)},E.prototype.unregisterShim=function(P){for(var b=0;b<this._shims.length;b++)if(this._shims[b]===P){delete this._shims[b];return}throw new Error("Invalid operation")},E}();e.TypeScriptServicesFactory=k})(Ar||(Ar={}));(function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}})();(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=Ar.TypeScriptServicesFactory,globalThis.toolsVersion=Ar.versionMajorMinor);typeof eT<"u"&&eT.exports&&(eT.exports=Ar);var Ar;(function(e){function r(a,s,u,p){if(Object.defineProperty(h,"name",Un(Un({},Object.getOwnPropertyDescriptor(h,"name")),{value:a})),p)for(var d=0,f=Object.keys(p);d<f.length;d++){var m=f[d],S=+m;!isNaN(S)&&e.hasProperty(s,"".concat(S))&&(s[S]=e.Debug.deprecate(s[S],Un(Un({},p[S]),{name:a})))}var v=n(s,u);return h;function h(){for(var D=[],k=0;k<arguments.length;k++)D[k]=arguments[k];var E=v(D),P=E!==void 0?s[E]:void 0;if(typeof P=="function")return P.apply(void 0,D);throw new TypeError("Invalid arguments")}}e.createOverload=r;function n(a,s){return function(u){for(var p=0;e.hasProperty(a,"".concat(p))&&e.hasProperty(s,"".concat(p));p++){var d=s[p];if(d(u))return p}}}function i(a){return{overload:function(s){return{bind:function(u){return{finish:function(){return r(a,s,u)},deprecate:function(p){return{finish:function(){return r(a,s,u,p)}}}}}}}}}e.buildOverload=i})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,r),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,r),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,r),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,r),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,r),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,r),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,r),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,r),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,r),e.createSuper=e.Debug.deprecate(e.factory.createSuper,r),e.createThis=e.Debug.deprecate(e.factory.createThis,r),e.createNull=e.Debug.deprecate(e.factory.createNull,r),e.createTrue=e.Debug.deprecate(e.factory.createTrue,r),e.createFalse=e.Debug.deprecate(e.factory.createFalse,r),e.createModifier=e.Debug.deprecate(e.factory.createModifier,r),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,r),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,r),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,r),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,r),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,r),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,r),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,r),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,r),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,r),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,r),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,r),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,r),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,r),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,r),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,r),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,r),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,r),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,r),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,r),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,r),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,r),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,r),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,r),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,r),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,r),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,r),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,r),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,r),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,r),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,r),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,r),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,r),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,r),e.createConstructorTypeNode=e.Debug.deprecate(function(n,i,a){return e.factory.createConstructorTypeNode(void 0,n,i,a)},r),e.updateConstructorTypeNode=e.Debug.deprecate(function(n,i,a,s){return e.factory.updateConstructorTypeNode(n,n.modifiers,i,a,s)},r),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,r),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,r),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,r),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,r),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,r),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,r),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,r),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,r),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,r),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,r),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,r),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,r),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,r),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,r),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,r),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,r),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,r),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,r),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,r),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,r),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,r),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,r),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,r),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,r),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,r),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,r),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,r),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,r),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,r),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,r),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,r),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,r),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,r),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,r),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,r),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,r),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,r),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,r),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,r),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,r),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,r),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,r),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,r),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,r),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,r),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,r),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,r),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,r),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,r),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,r),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,r),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,r),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,r),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,r),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,r),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,r),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,r),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,r),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,r),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,r),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,r),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,r),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,r),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,r),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,r),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,r),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,r),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,r),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,r),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,r),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,r),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,r),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,r),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,r),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,r),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,r),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,r),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,r),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,r),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,r),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,r),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,r),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,r),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,r),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,r),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,r),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,r),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,r),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,r),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,r),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,r),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,r),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,r),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,r),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,r),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,r),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,r),e.createBlock=e.Debug.deprecate(e.factory.createBlock,r),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,r),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,r),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,r),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,r),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,r),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,r),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,r),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,r),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,r),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,r),e.createFor=e.Debug.deprecate(e.factory.createForStatement,r),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,r),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,r),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,r),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,r),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,r),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,r),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,r),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,r),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,r),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,r),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,r),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,r),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,r),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,r),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,r),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,r),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,r),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,r),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,r),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,r),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,r),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,r),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,r),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,r),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,r),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,r),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,r),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,r),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,r),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,r),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,r),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,r),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,r),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,r),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,r),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,r),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,r),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,r),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,r),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,r),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,r),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,r),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,r),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,r),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,r),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,r),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,r),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,r),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,r),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,r),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,r),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,r),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,r),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,r),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,r),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,r),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,r),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,r),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,r),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,r),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,r),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,r),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,r),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,r),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,r),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,r),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,r),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,r),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,r),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,r),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,r),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,r),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,r),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,r),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,r),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,r),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,r),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,r),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,r),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,r),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,r),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,r),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,r),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,r),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,r),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,r),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,r),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,r),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,r),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,r),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,r),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,r),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,r),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,r),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,r),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,r),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,r),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,r),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,r),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,r),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,r),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,r),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,r),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,r),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,r),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,r),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,r),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,r),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,r),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,r),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,r),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,r),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,r),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,r),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,r),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,r),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,r),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,r),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,r),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,r),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,r),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,r),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,r),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,r),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,r),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,r),e.createBundle=e.Debug.deprecate(e.factory.createBundle,r),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,r),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,r),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,r),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,r),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,r),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,r),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,r),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,r),e.createToken=e.Debug.deprecate(function(i){return e.factory.createToken(i)},r),e.createIdentifier=e.Debug.deprecate(function(i){return e.factory.createIdentifier(i,void 0,void 0)},r),e.createTempVariable=e.Debug.deprecate(function(i){return e.factory.createTempVariable(i,void 0)},r),e.getGeneratedNameForNode=e.Debug.deprecate(function(i){return e.factory.getGeneratedNameForNode(i,void 0)},r),e.createOptimisticUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,16)},r),e.createFileLevelUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,48)},r),e.createIndexSignature=e.Debug.deprecate(function(i,a,s,u){return e.factory.createIndexSignature(i,a,s,u)},r),e.createTypePredicateNode=e.Debug.deprecate(function(i,a){return e.factory.createTypePredicateNode(void 0,i,a)},r),e.updateTypePredicateNode=e.Debug.deprecate(function(i,a,s){return e.factory.updateTypePredicateNode(i,void 0,a,s)},r),e.createLiteral=e.Debug.deprecate(function(i){return typeof i=="number"?e.factory.createNumericLiteral(i):typeof i=="object"&&"base10Value"in i?e.factory.createBigIntLiteral(i):typeof i=="boolean"?i?e.factory.createTrue():e.factory.createFalse():typeof i=="string"?e.factory.createStringLiteral(i,void 0):e.factory.createStringLiteralFromNode(i)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(i,a,s,u,p){return e.factory.createMethodSignature(void 0,u,p,i,a,s)},r),e.updateMethodSignature=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateMethodSignature(i,i.modifiers,p,d,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=141),e.factory.createTypeOperatorNode(s,a)},r),e.createTaggedTemplate=e.Debug.deprecate(function(i,a,s){var u;return s?u=a:s=a,e.factory.createTaggedTemplateExpression(i,u,s)},r),e.updateTaggedTemplate=e.Debug.deprecate(function(i,a,s,u){var p;return u?p=s:u=s,e.factory.updateTaggedTemplateExpression(i,a,p,u)},r),e.updateBinary=e.Debug.deprecate(function(i,a,s,u){return u===void 0&&(u=i.operatorToken),typeof u=="number"&&(u=u===i.operatorToken.kind?i.operatorToken:e.factory.createToken(u)),e.factory.updateBinaryExpression(i,a,u,s)},r),e.createConditional=e.Debug.deprecate(function(i,a,s,u,p){return arguments.length===5?e.factory.createConditionalExpression(i,a,s,u,p):arguments.length===3?e.factory.createConditionalExpression(i,e.factory.createToken(57),a,e.factory.createToken(58),s):e.Debug.fail("Argument count mismatch")},r),e.createYield=e.Debug.deprecate(function(i,a){var s;return a?s=i:a=i,e.factory.createYieldExpression(s,a)},r),e.createClassExpression=e.Debug.deprecate(function(i,a,s,u,p){return e.factory.createClassExpression(void 0,i,a,s,u,p)},r),e.updateClassExpression=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateClassExpression(i,void 0,a,s,u,p,d)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,p){var d=e.factory.createPropertySignature(i,a,s,u);return d.initializer=p,d},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,p,d){var f=e.factory.updatePropertySignature(i,a,s,u,p);return i.initializer!==d&&(f===i&&(f=e.factory.cloneNode(i)),f.initializer=d),f},r),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(i,a){return e.factory.createExpressionWithTypeArguments(a,i)},r),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(i,a,s){return e.factory.updateExpressionWithTypeArguments(i,s,a)},r),e.createArrowFunction=e.Debug.deprecate(function(i,a,s,u,p,d){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,p,d):arguments.length===5?e.factory.createArrowFunction(i,a,s,u,void 0,p):e.Debug.fail("Argument count mismatch")},r),e.updateArrowFunction=e.Debug.deprecate(function(i,a,s,u,p,d,f){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,p,d,f):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,p,i.equalsGreaterThanToken,d):e.Debug.fail("Argument count mismatch")},r),e.createVariableDeclaration=e.Debug.deprecate(function(i,a,s,u){return arguments.length===4?e.factory.createVariableDeclaration(i,a,s,u):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(i,void 0,a,s):e.Debug.fail("Argument count mismatch")},r),e.updateVariableDeclaration=e.Debug.deprecate(function(i,a,s,u,p){return arguments.length===5?e.factory.updateVariableDeclaration(i,a,s,u,p):arguments.length===4?e.factory.updateVariableDeclaration(i,a,i.exclamationToken,s,u):e.Debug.fail("Argument count mismatch")},r),e.createImportClause=e.Debug.deprecate(function(i,a,s){return s===void 0&&(s=!1),e.factory.createImportClause(s,i,a)},r),e.updateImportClause=e.Debug.deprecate(function(i,a,s,u){return e.factory.updateImportClause(i,u,a,s)},r),e.createExportDeclaration=e.Debug.deprecate(function(i,a,s,u,p){return p===void 0&&(p=!1),e.factory.createExportDeclaration(i,a,p,s,u)},r),e.updateExportDeclaration=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateExportDeclaration(i,a,s,d,u,p,i.assertClause)},r),e.createJSDocParamTag=e.Debug.deprecate(function(i,a,s,u){return e.factory.createJSDocParameterTag(void 0,i,a,s,!1,u?e.factory.createNodeArray([e.factory.createJSDocText(u)]):void 0)},r),e.createComma=e.Debug.deprecate(function(i,a){return e.factory.createComma(i,a)},r),e.createLessThan=e.Debug.deprecate(function(i,a){return e.factory.createLessThan(i,a)},r),e.createAssignment=e.Debug.deprecate(function(i,a){return e.factory.createAssignment(i,a)},r),e.createStrictEquality=e.Debug.deprecate(function(i,a){return e.factory.createStrictEquality(i,a)},r),e.createStrictInequality=e.Debug.deprecate(function(i,a){return e.factory.createStrictInequality(i,a)},r),e.createAdd=e.Debug.deprecate(function(i,a){return e.factory.createAdd(i,a)},r),e.createSubtract=e.Debug.deprecate(function(i,a){return e.factory.createSubtract(i,a)},r),e.createLogicalAnd=e.Debug.deprecate(function(i,a){return e.factory.createLogicalAnd(i,a)},r),e.createLogicalOr=e.Debug.deprecate(function(i,a){return e.factory.createLogicalOr(i,a)},r),e.createPostfixIncrement=e.Debug.deprecate(function(i){return e.factory.createPostfixIncrement(i)},r),e.createLogicalNot=e.Debug.deprecate(function(i){return e.factory.createLogicalNot(i)},r),e.createNode=e.Debug.deprecate(function(i,a,s){return a===void 0&&(a=0),s===void 0&&(s=0),e.setTextRangePosEnd(i===308?e.parseBaseNodeFactory.createBaseSourceFileNode(i):i===79?e.parseBaseNodeFactory.createBaseIdentifierNode(i):i===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(i):e.isNodeKind(i)?e.parseBaseNodeFactory.createBaseNode(i):e.parseBaseNodeFactory.createBaseTokenNode(i),a,s)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(i){var a=e.factory.cloneNode(i);return e.setTextRange(a,i),e.setParent(a,i.parent),a},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(Ar||(Ar={}));var Ar;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(n){return n.kind===213},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(Ar||(Ar={}));var Ar;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(n){return e.isMemberName(n)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createConstructorTypeNode,s=i.updateConstructorTypeNode;i.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(u,p,d,f){return a(u,p,d,f)},1:function(u,p,d){return a(void 0,u,p,d)}}).bind({0:function(u){return u.length===4},1:function(u){return u.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(u,p,d,f,m){return s(u,p,d,f,m)},1:function(u,p,d,f){return s(u,u.modifiers,p,d,f)}}).bind({0:function(u){return u.length===5},1:function(u){return u.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createImportTypeNode,s=i.updateImportTypeNode;i.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(u,p,d,f,m){return a(u,p,d,f,m)},1:function(u,p,d,f){return a(u,void 0,p,d,f)}}).bind({0:function(u){var p=u[1],d=u[2],f=u[3],m=u[4];return(p===void 0||e.isImportTypeAssertionContainer(p))&&(d===void 0||!e.isArray(d))&&(f===void 0||e.isArray(f))&&(m===void 0||typeof m=="boolean")},1:function(u){var p=u[1],d=u[2],f=u[3],m=u[4];return m===void 0&&(p===void 0||e.isEntityName(p))&&(d===void 0||e.isArray(d))&&(f===void 0||typeof f=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),i.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(u,p,d,f,m,S){return s(u,p,d,f,m,S)},1:function(u,p,d,f,m){return s(u,p,u.assertions,d,f,m)}}).bind({0:function(u){var p=u[2],d=u[3],f=u[4],m=u[5];return(p===void 0||e.isImportTypeAssertionContainer(p))&&(d===void 0||!e.isArray(d))&&(f===void 0||e.isArray(f))&&(m===void 0||typeof m=="boolean")},1:function(u){var p=u[2],d=u[3],f=u[4],m=u[5];return m===void 0&&(p===void 0||e.isEntityName(p))&&(d===void 0||e.isArray(d))&&(f===void 0||typeof f=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createTypeParameterDeclaration,s=i.updateTypeParameterDeclaration;i.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(u,p,d,f){return a(u,p,d,f)},1:function(u,p,d){return a(void 0,u,p,d)}}).bind({0:function(u){var p=u[0];return p===void 0||e.isArray(p)},1:function(u){var p=u[0];return p!==void 0&&!e.isArray(p)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(u,p,d,f,m){return s(u,p,d,f,m)},1:function(u,p,d,f){return s(u,u.modifiers,p,d,f)}}).bind({0:function(u){var p=u[1];return p===void 0||e.isArray(p)},1:function(u){var p=u[1];return p!==void 0&&!e.isArray(p)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){var r={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."},n={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."},i={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 a(u){var p=u.createParameterDeclaration,d=u.updateParameterDeclaration,f=u.createPropertyDeclaration,m=u.updatePropertyDeclaration,S=u.createMethodDeclaration,v=u.updateMethodDeclaration,h=u.createConstructorDeclaration,D=u.updateConstructorDeclaration,k=u.createGetAccessorDeclaration,E=u.updateGetAccessorDeclaration,P=u.createSetAccessorDeclaration,b=u.updateSetAccessorDeclaration,N=u.createIndexSignature,y=u.updateIndexSignature,A=u.createClassStaticBlockDeclaration,w=u.updateClassStaticBlockDeclaration,L=u.createClassExpression,ne=u.updateClassExpression,se=u.createFunctionDeclaration,K=u.updateFunctionDeclaration,l=u.createClassDeclaration,F=u.updateClassDeclaration,G=u.createInterfaceDeclaration,I=u.updateInterfaceDeclaration,j=u.createTypeAliasDeclaration,ee=u.updateTypeAliasDeclaration,R=u.createEnumDeclaration,V=u.updateEnumDeclaration,U=u.createModuleDeclaration,X=u.updateModuleDeclaration,ie=u.createImportEqualsDeclaration,ce=u.updateImportEqualsDeclaration,Ee=u.createImportDeclaration,J=u.updateImportDeclaration,$=u.createExportAssignment,q=u.updateExportAssignment,te=u.createExportDeclaration,Z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return p(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return p(e.concatenate(C,Y),Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isBindingName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isDotDotDotToken(Q))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(W===void 0||e.isQuestionToken(W))&&(pe===void 0||e.isTypeNode(pe))&&(ye===void 0||e.isExpression(ye))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye){return d(C,Y,Q,ae,W,pe,ye)},1:function(C,Y,Q,ae,W,pe,ye,Ke){return d(C,e.concatenate(Y,Q),ae,W,pe,ye,Ke)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7];return ye===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isBindingName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isDotDotDotToken(Q))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(W===void 0||e.isQuestionToken(W))&&(pe===void 0||e.isTypeNode(pe))&&(ye===void 0||e.isExpression(ye))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(C,Y,Q,ae,W){return f(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return f(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isQuestionOrExclamationToken(Q))&&(ae===void 0||e.isTypeNode(ae))&&(W===void 0||e.isExpression(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:r}).finish(),u.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return m(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return m(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isQuestionOrExclamationToken(Q))&&(ae===void 0||e.isTypeNode(ae))&&(W===void 0||e.isExpression(W))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:r}).finish(),u.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke){return S(C,Y,Q,ae,W,pe,ye,Ke)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return S(e.concatenate(C,Y),Q,ae,W,pe,ye,Ke,Je)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7],Je=C[8];return Je===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||!e.some(pe,e.isTypeParameterDeclaration))&&(ye===void 0||!e.isArray(ye))&&(Ke===void 0||e.isBlock(Ke))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7],Je=C[8];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isAsteriskToken(Q))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(W===void 0||!e.isArray(W))&&(pe===void 0||!e.some(pe,e.isParameter))&&(ye===void 0||e.isArray(ye))&&(Ke===void 0||e.isTypeNode(Ke))&&(Je===void 0||e.isBlock(Je))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return v(C,Y,Q,ae,W,pe,ye,Ke,Je)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je,Ve){return v(C,e.concatenate(Y,Q),ae,W,pe,ye,Ke,Je,Ve)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8],Je=C[9];return Je===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||!e.some(pe,e.isTypeParameterDeclaration))&&(ye===void 0||!e.isArray(ye))&&(Ke===void 0||e.isBlock(Ke))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8],Je=C[9];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isAsteriskToken(Q))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(W===void 0||!e.isArray(W))&&(pe===void 0||!e.some(pe,e.isParameter))&&(ye===void 0||e.isArray(ye))&&(Ke===void 0||e.isTypeNode(Ke))&&(Je===void 0||e.isBlock(Je))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(C,Y,Q){return h(C,Y,Q)},1:function(C,Y,Q,ae){return h(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||!e.some(Y,e.isDecorator))&&(Q===void 0||!e.some(Q,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||!e.some(Y,e.isModifier))&&(Q===void 0||!e.some(Q,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(C,Y,Q,ae){return D(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return D(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||!e.some(Y,e.isDecorator))&&(Q===void 0||!e.some(Q,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||!e.some(Y,e.isModifier))&&(Q===void 0||!e.some(Q,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W){return k(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return k(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isBlock(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isBlock(pe))}}).deprecate({1:r}).finish(),u.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return E(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return E(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isBlock(W))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isBlock(pe))}}).deprecate({1:r}).finish(),u.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(C,Y,Q,ae){return P(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return P(e.concatenate(C,Y),Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W){return b(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return b(C,e.concatenate(Y,Q),ae,W,pe)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5];return W===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(C,Y,Q){return N(C,Y,Q)},1:function(C,Y,Q,ae){return N(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||e.every(Q,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.every(Q,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(C,Y,Q,ae){return y(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return y(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||e.every(Q,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.every(Q,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(C){return A(C)},1:function(C,Y,Q){return A(Q)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2];return Q===void 0&&ae===void 0&&(Y===void 0||!e.isArray(Y))},1:function(C){var Y=C[0],Q=C[1],ae=C[2];return(Y===void 0||e.isArray(Y))&&(Q===void 0||e.isArray(Y))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(C,Y){return w(C,Y)},1:function(C,Y,Q,ae){return w(C,ae)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3];return Q===void 0&&ae===void 0&&(Y===void 0||!e.isArray(Y))},1:function(C){var Y=C[1],Q=C[2],ae=C[3];return(Y===void 0||e.isArray(Y))&&(Q===void 0||e.isArray(Y))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(C,Y,Q,ae,W){return L(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return L(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:n}).finish(),u.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(C,Y,Q,ae,W,pe){return ne(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return ne(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:n}).finish(),u.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye){return se(C,Y,Q,ae,W,pe,ye)},1:function(C,Y,Q,ae,W,pe,ye,Ke){return se(Y,Q,ae,W,pe,ye,Ke)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7];return Ke===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isIdentifier(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isParameter))&&(pe===void 0||!e.isArray(pe))&&(ye===void 0||e.isBlock(ye))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q!="string"&&e.isAsteriskToken(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.isArray(pe))&&(ye===void 0||e.isTypeNode(ye))&&(Ke===void 0||e.isBlock(Ke))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke){return K(C,Y,Q,ae,W,pe,ye,Ke)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return K(C,Q,ae,W,pe,ye,Ke,Je)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8];return Ke===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isIdentifier(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isParameter))&&(pe===void 0||!e.isArray(pe))&&(ye===void 0||e.isBlock(ye))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q!="string"&&e.isAsteriskToken(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.isArray(pe))&&(ye===void 0||e.isTypeNode(ye))&&(Ke===void 0||e.isBlock(Ke))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(C,Y,Q,ae,W){return l(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return l(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(){return!0}}).deprecate({1:r}).finish(),u.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return F(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return F(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:r}).finish(),u.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(C,Y,Q,ae,W){return G(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return G(Y,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.every(pe,e.isHeritageClause))&&(ye===void 0||e.every(ye,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return I(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return I(C,Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.every(pe,e.isHeritageClause))&&(ye===void 0||e.every(ye,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(C,Y,Q,ae){return j(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return j(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||!e.isArray(W))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||e.isTypeNode(pe))}}).deprecate({1:n}).finish(),u.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(C,Y,Q,ae,W){return ee(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return ee(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||!e.isArray(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||e.isTypeNode(pe))}}).deprecate({1:n}).finish(),u.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(C,Y,Q){return R(C,Y,Q)},1:function(C,Y,Q,ae){return R(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(C,Y,Q,ae){return V(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return V(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(C,Y,Q,ae){return U(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return U(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&Q!==void 0&&!e.isArray(Q)&&(ae===void 0||e.isModuleBody(ae))&&(W===void 0||typeof W=="number")},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isModuleName(ae)&&(W===void 0||typeof W=="object")&&(pe===void 0||typeof pe=="number")}}).deprecate({1:n}).finish(),u.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(C,Y,Q,ae){return X(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return X(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isModuleBody(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isModuleName(ae)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(C,Y,Q,ae){return ie(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return ie(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae!="boolean"&&typeof W!="string"},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&pe!==void 0&&e.isModuleReference(pe)}}).deprecate({1:n}).finish(),u.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(C,Y,Q,ae,W){return ce(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return ce(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae!="boolean"&&typeof W!="string"},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&pe!==void 0&&e.isModuleReference(pe)}}).deprecate({1:n}).finish(),u.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(C,Y,Q,ae){return Ee(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return Ee(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&ae!==void 0&&e.isExpression(ae)&&(W===void 0||e.isAssertClause(W))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.isImportClause(ae))&&W!==void 0&&e.isExpression(W)&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:n}).finish(),u.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(C,Y,Q,ae,W){return J(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return J(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isExpression(ae))&&(W===void 0||e.isAssertClause(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.isImportClause(ae))&&W!==void 0&&e.isExpression(W)&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:n}).finish(),u.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(C,Y,Q){return $(C,Y,Q)},1:function(C,Y,Q,ae){return $(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae=="object"},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(C,Y,Q){return q(C,Y,Q)},1:function(C,Y,Q,ae){return q(C,Q,ae)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3];return ae===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&Q!==void 0&&!e.isArray(Q)},1:function(C){var Y=C[1],Q=C[2],ae=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isExpression(ae)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(C,Y,Q,ae,W){return te(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return te(Y,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&typeof Q=="boolean"&&typeof ae!="boolean"&&(W===void 0||e.isExpression(W))&&(pe===void 0||e.isAssertClause(pe))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&typeof ae=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(pe===void 0||e.isExpression(pe))&&(ye===void 0||e.isAssertClause(ye))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return Z(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return Z(C,Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&typeof Q=="boolean"&&typeof ae!="boolean"&&(W===void 0||e.isExpression(W))&&(pe===void 0||e.isAssertClause(pe))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&typeof ae=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(pe===void 0||e.isExpression(pe))&&(ye===void 0||e.isAssertClause(ye))}}).deprecate({1:n}).finish()}var s=e.createNodeFactory;e.createNodeFactory=function(u,p){var d=s(u,p);return a(d),d},a(e.factory)})(Ar||(Ar={}));var Ar;(function(e){typeof console<"u"&&(e.Debug.loggingHost={log:function(r,n){switch(r){case e.LogLevel.Error:return console.error(n);case e.LogLevel.Warning:return console.warn(n);case e.LogLevel.Info:return console.log(n);case e.LogLevel.Verbose:return console.log(n)}}})})(Ar||(Ar={}))});var p_r={};Z3e(p_r,{configs:()=>f_r,rules:()=>l_r});module.exports=eOe(p_r);var mv=I8(bCe()),YE=I8(n2e()),n_r=mv.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),i2e=n_r({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:'Identifier ("{{varName}}") can not be captured inside the scope ({{dollarName}}) because {{reason}}. Check out https://qwik.builder.io/docs/advanced/optimizer for more details.',unvalidJsxDollar:"JSX attributes that end with $ can only take an inlined arrow function of a QRL identifier. Make sure the value is created using $()",mutableIdentifier:'The value of the identifier ("{{varName}}") can not be changed once it is captured the scope ({{dollarName}}). Check out https://qwik.builder.io/docs/advanced/optimizer for more details.'}},create(e){var m;let n={allowAny:((m=e.options[0])==null?void 0:m.allowAny)??!0},i=e.getSourceCode().scopeManager,a=mv.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),p=new Map,d=[];function f(S){S.references.forEach(v=>{var k,E;let h=v.resolved,D=(k=v.resolved)==null?void 0:k.scope;if(h&&D){let P=(E=h.defs.at(0))==null?void 0:E.type;if(P==="Type"||P==="ImportBinding")return;let b=v.from,N;for(;b&&(N=p.get(b),!N);)b=b.upper;if(b&&N){let y=D.type;if(y==="global")return;if(y==="module"){let ne=h.identifiers.length===1?h.identifiers[0]:v.identifier,se=s.get(ne),K=u.getSymbolAtLocation(se);if(K&&d.includes(K))return;e.report({messageId:"referencesOutside",node:v.identifier,data:{varName:v.identifier.name,dollarName:N,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let A=v.identifier,w=s.get(A),L=D;for(;L&&!p.has(L);)L=L.upper;if(L!==b){A.parent&&A.parent.type===mv.AST_NODE_TYPES.AssignmentExpression&&A.parent.left===A&&e.report({messageId:"mutableIdentifier",node:v.identifier,data:{varName:v.identifier.name,dollarName:N}});let ne=i_r(u,w,v.identifier,n);ne&&e.report({messageId:"referencesOutside",node:v.identifier,data:{varName:v.identifier.name,dollarName:N,reason:a_r(ne)}})}}}}),S.childScopes.forEach(f)}return{CallExpression(S){if(S.callee.type===mv.AST_NODE_TYPES.Identifier&&S.callee.name.endsWith("$")){let v=S.arguments.at(0);if(v&&v.type===mv.AST_NODE_TYPES.ArrowFunctionExpression){let h=i.acquire(v);h&&p.set(h,S.callee.name)}}},JSXAttribute(S){let v=S.name,h=v.type===mv.AST_NODE_TYPES.JSXIdentifier?v.name:v.name.name;if(h.endsWith("$")){let D=S.value;if(D&&D.type===mv.AST_NODE_TYPES.JSXExpressionContainer){let k=i.acquire(D.expression);if(k)p.set(k,h);else if(D.expression.type===mv.AST_NODE_TYPES.Identifier){let E=s.get(D.expression),P=u.getTypeAtLocation(E);a2e(P)||e.report({messageId:"unvalidJsxDollar",node:D.expression})}}}},Program(S){let v=s.get(S),h=u.getSymbolAtLocation(v);h&&(d=u.getExportsOfModule(h))},"Program:exit"(){f(i.globalScope)}}}});function i_r(e,r,n,i){let a=e.getTypeAtLocation(r);return o_r(e,a,r,n,i,new Set)}function a_r(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function o_r(e,r,n,i,a,s){let u=rT(e,r,n,a,0,s);if(u){let p=u.location;return p&&(u.location=`${i.name}.${p}`),u}return u}function rT(e,r,n,i,a,s){if(s.has(r)||(s.add(r),r.getProperty("__no_serialize__")))return;if(r.flags&YE.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let p=r.flags&YE.default.TypeFlags.Any;if(!i.allowAny&&p)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&YE.default.TypeFlags.BigIntLike)return{type:r,typeStr:e.typeToString(r),reason:"is BigInt and it is not supported yet, use a number instead"};if(r.flags&YE.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&YE.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(a2e(r))return;if(r.getCallSignatures().length>0)return r.symbol.name==="PropFnInterface"?void 0:{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let h of r.types){let D=rT(e,h,n,i,a+1,s);if(D)return D}return}if((r.flags&YE.default.TypeFlags.Object)!==0){let h=u_r(r,e);if(h)return rT(e,h,n,i,a+1,s);let D=c_r(r,e);if(D){for(let P of D){let b=rT(e,P,n,i,a+1,s);if(b)return b}return}let k=r.symbol.name;if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||k==="Promise"||k==="URL"||k==="RegExp"||k==="Date")return;if(r.isClass())return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let E=r.getProperty("prototype");if(E){let P=e.getTypeOfSymbolAtLocation(E,n);if(P.isClass())return{type:P,typeStr:e.typeToString(P),reason:"is a class constructor, which is not serializable"}}if(!k.startsWith("__")&&r.symbol.valueDeclaration)return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable`};for(let P of r.getProperties()){let b=s_r(e,P,n,i,a+1,s);if(b){let N=b.location;return b.location=`${P.name}${N?`.${N}`:""}`,b}}}}function s_r(e,r,n,i,a,s){let u=e.getTypeOfSymbolAtLocation(r,n);return rT(e,u,n,i,a,s)}function u_r(e,r){return r.getElementTypeOfArrayType(e)}function c_r(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function a2e(e){return!!e.getProperty("__brand__QRL__")}var o2e={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({await:!1})},"ArrowFunctionExpression:exit"(){r.pop()},AwaitExpression(){let n=r[r.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var s2e={meta:{type:"problem",docs:{description:"Detect multiple JSX roots inside a component",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{multipleJsxRoots:"Components in Qwik must have a single JSX root element. Your component has multiple roots on lines: {{lines}}. Rewrite your component with a single root such as (`return <>{...}</>`.) and keep all JSX within"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({rootNodes:[],depth:0})},"ArrowFunctionExpression:exit"(){let n=r[r.length-1];if(n&&n.rootNodes.length>1){let i=n.rootNodes.map(a=>{var s;return((s=a.loc)==null?void 0:s.start.line)??0}).join(", ");e.report({node:n.rootNodes[0],messageId:"multipleJsxRoots",data:{lines:i}})}r.pop()},FunctionDeclaration(){r.push({rootNodes:[],depth:0})},"FunctionDeclaration:exit"(){r.pop()},"JSXElement,JSXFragment"(n){let i=r[r.length-1];i&&(i.depth===0&&i.rootNodes.push(n),i.depth++)},"JSXElement:exit"(){let n=r[r.length-1];n&&n.depth--}}}};var l_r={"no-use-after-await":o2e,"valid-lexical-scope":i2e,"single-jsx-root":s2e},f_r={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error","qwik/single-jsx-root":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error","qwik/single-jsx-root":"error"}}};0&&(module.exports={configs,rules});
425
+ `)}})},P.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},P.prototype.discoverTypings=function(b){var N=this,y=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var A=JSON.parse(b);return N.safeList===void 0&&(N.safeList=e.JsTyping.loadSafeList(N.host,e.toPath(A.safeListPath,A.safeListPath,y))),e.JsTyping.discoverTypings(N.host,function(w){return N.logger.log(w)},A.fileNames,e.toPath(A.projectRootPath,A.projectRootPath,y),N.safeList,A.packageNameToTypingLocation,A.typeAcquisition,A.unresolvedImports,A.typesRegistry,e.emptyOptions)})},P}(d),k=function(){function E(){this._shims=[]}return E.prototype.getServicesVersion=function(){return e.servicesVersion},E.prototype.createLanguageServiceShim=function(P){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(P.useCaseSensitiveFileNames&&P.useCaseSensitiveFileNames(),P.getCurrentDirectory()));var b=new i(P),N=e.createLanguageService(b,this.documentRegistry,!1);return new S(this,P,N)}catch(y){throw r(P,y),y}},E.prototype.createClassifierShim=function(P){try{return new h(this,P)}catch(b){throw r(P,b),b}},E.prototype.createCoreServicesShim=function(P){try{var b=new a(P);return new D(this,P,b)}catch(N){throw r(P,N),N}},E.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},E.prototype.registerShim=function(P){this._shims.push(P)},E.prototype.unregisterShim=function(P){for(var b=0;b<this._shims.length;b++)if(this._shims[b]===P){delete this._shims[b];return}throw new Error("Invalid operation")},E}();e.TypeScriptServicesFactory=k})(Ar||(Ar={}));(function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}})();(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=Ar.TypeScriptServicesFactory,globalThis.toolsVersion=Ar.versionMajorMinor);typeof eT<"u"&&eT.exports&&(eT.exports=Ar);var Ar;(function(e){function r(a,s,u,p){if(Object.defineProperty(h,"name",Un(Un({},Object.getOwnPropertyDescriptor(h,"name")),{value:a})),p)for(var d=0,f=Object.keys(p);d<f.length;d++){var m=f[d],S=+m;!isNaN(S)&&e.hasProperty(s,"".concat(S))&&(s[S]=e.Debug.deprecate(s[S],Un(Un({},p[S]),{name:a})))}var v=n(s,u);return h;function h(){for(var D=[],k=0;k<arguments.length;k++)D[k]=arguments[k];var E=v(D),P=E!==void 0?s[E]:void 0;if(typeof P=="function")return P.apply(void 0,D);throw new TypeError("Invalid arguments")}}e.createOverload=r;function n(a,s){return function(u){for(var p=0;e.hasProperty(a,"".concat(p))&&e.hasProperty(s,"".concat(p));p++){var d=s[p];if(d(u))return p}}}function i(a){return{overload:function(s){return{bind:function(u){return{finish:function(){return r(a,s,u)},deprecate:function(p){return{finish:function(){return r(a,s,u,p)}}}}}}}}}e.buildOverload=i})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,r),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,r),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,r),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,r),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,r),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,r),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,r),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,r),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,r),e.createSuper=e.Debug.deprecate(e.factory.createSuper,r),e.createThis=e.Debug.deprecate(e.factory.createThis,r),e.createNull=e.Debug.deprecate(e.factory.createNull,r),e.createTrue=e.Debug.deprecate(e.factory.createTrue,r),e.createFalse=e.Debug.deprecate(e.factory.createFalse,r),e.createModifier=e.Debug.deprecate(e.factory.createModifier,r),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,r),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,r),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,r),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,r),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,r),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,r),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,r),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,r),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,r),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,r),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,r),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,r),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,r),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,r),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,r),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,r),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,r),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,r),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,r),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,r),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,r),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,r),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,r),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,r),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,r),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,r),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,r),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,r),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,r),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,r),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,r),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,r),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,r),e.createConstructorTypeNode=e.Debug.deprecate(function(n,i,a){return e.factory.createConstructorTypeNode(void 0,n,i,a)},r),e.updateConstructorTypeNode=e.Debug.deprecate(function(n,i,a,s){return e.factory.updateConstructorTypeNode(n,n.modifiers,i,a,s)},r),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,r),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,r),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,r),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,r),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,r),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,r),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,r),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,r),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,r),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,r),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,r),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,r),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,r),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,r),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,r),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,r),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,r),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,r),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,r),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,r),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,r),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,r),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,r),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,r),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,r),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,r),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,r),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,r),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,r),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,r),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,r),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,r),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,r),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,r),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,r),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,r),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,r),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,r),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,r),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,r),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,r),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,r),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,r),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,r),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,r),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,r),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,r),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,r),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,r),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,r),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,r),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,r),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,r),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,r),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,r),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,r),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,r),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,r),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,r),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,r),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,r),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,r),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,r),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,r),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,r),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,r),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,r),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,r),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,r),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,r),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,r),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,r),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,r),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,r),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,r),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,r),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,r),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,r),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,r),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,r),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,r),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,r),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,r),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,r),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,r),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,r),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,r),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,r),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,r),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,r),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,r),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,r),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,r),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,r),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,r),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,r),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,r),e.createBlock=e.Debug.deprecate(e.factory.createBlock,r),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,r),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,r),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,r),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,r),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,r),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,r),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,r),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,r),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,r),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,r),e.createFor=e.Debug.deprecate(e.factory.createForStatement,r),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,r),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,r),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,r),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,r),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,r),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,r),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,r),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,r),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,r),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,r),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,r),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,r),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,r),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,r),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,r),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,r),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,r),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,r),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,r),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,r),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,r),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,r),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,r),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,r),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,r),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,r),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,r),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,r),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,r),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,r),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,r),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,r),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,r),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,r),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,r),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,r),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,r),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,r),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,r),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,r),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,r),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,r),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,r),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,r),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,r),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,r),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,r),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,r),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,r),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,r),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,r),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,r),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,r),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,r),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,r),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,r),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,r),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,r),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,r),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,r),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,r),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,r),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,r),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,r),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,r),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,r),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,r),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,r),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,r),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,r),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,r),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,r),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,r),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,r),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,r),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,r),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,r),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,r),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,r),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,r),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,r),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,r),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,r),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,r),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,r),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,r),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,r),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,r),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,r),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,r),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,r),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,r),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,r),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,r),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,r),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,r),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,r),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,r),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,r),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,r),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,r),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,r),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,r),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,r),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,r),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,r),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,r),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,r),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,r),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,r),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,r),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,r),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,r),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,r),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,r),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,r),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,r),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,r),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,r),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,r),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,r),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,r),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,r),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,r),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,r),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,r),e.createBundle=e.Debug.deprecate(e.factory.createBundle,r),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,r),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,r),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,r),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,r),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,r),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,r),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,r),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,r),e.createToken=e.Debug.deprecate(function(i){return e.factory.createToken(i)},r),e.createIdentifier=e.Debug.deprecate(function(i){return e.factory.createIdentifier(i,void 0,void 0)},r),e.createTempVariable=e.Debug.deprecate(function(i){return e.factory.createTempVariable(i,void 0)},r),e.getGeneratedNameForNode=e.Debug.deprecate(function(i){return e.factory.getGeneratedNameForNode(i,void 0)},r),e.createOptimisticUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,16)},r),e.createFileLevelUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,48)},r),e.createIndexSignature=e.Debug.deprecate(function(i,a,s,u){return e.factory.createIndexSignature(i,a,s,u)},r),e.createTypePredicateNode=e.Debug.deprecate(function(i,a){return e.factory.createTypePredicateNode(void 0,i,a)},r),e.updateTypePredicateNode=e.Debug.deprecate(function(i,a,s){return e.factory.updateTypePredicateNode(i,void 0,a,s)},r),e.createLiteral=e.Debug.deprecate(function(i){return typeof i=="number"?e.factory.createNumericLiteral(i):typeof i=="object"&&"base10Value"in i?e.factory.createBigIntLiteral(i):typeof i=="boolean"?i?e.factory.createTrue():e.factory.createFalse():typeof i=="string"?e.factory.createStringLiteral(i,void 0):e.factory.createStringLiteralFromNode(i)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(i,a,s,u,p){return e.factory.createMethodSignature(void 0,u,p,i,a,s)},r),e.updateMethodSignature=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateMethodSignature(i,i.modifiers,p,d,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=141),e.factory.createTypeOperatorNode(s,a)},r),e.createTaggedTemplate=e.Debug.deprecate(function(i,a,s){var u;return s?u=a:s=a,e.factory.createTaggedTemplateExpression(i,u,s)},r),e.updateTaggedTemplate=e.Debug.deprecate(function(i,a,s,u){var p;return u?p=s:u=s,e.factory.updateTaggedTemplateExpression(i,a,p,u)},r),e.updateBinary=e.Debug.deprecate(function(i,a,s,u){return u===void 0&&(u=i.operatorToken),typeof u=="number"&&(u=u===i.operatorToken.kind?i.operatorToken:e.factory.createToken(u)),e.factory.updateBinaryExpression(i,a,u,s)},r),e.createConditional=e.Debug.deprecate(function(i,a,s,u,p){return arguments.length===5?e.factory.createConditionalExpression(i,a,s,u,p):arguments.length===3?e.factory.createConditionalExpression(i,e.factory.createToken(57),a,e.factory.createToken(58),s):e.Debug.fail("Argument count mismatch")},r),e.createYield=e.Debug.deprecate(function(i,a){var s;return a?s=i:a=i,e.factory.createYieldExpression(s,a)},r),e.createClassExpression=e.Debug.deprecate(function(i,a,s,u,p){return e.factory.createClassExpression(void 0,i,a,s,u,p)},r),e.updateClassExpression=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateClassExpression(i,void 0,a,s,u,p,d)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,p){var d=e.factory.createPropertySignature(i,a,s,u);return d.initializer=p,d},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,p,d){var f=e.factory.updatePropertySignature(i,a,s,u,p);return i.initializer!==d&&(f===i&&(f=e.factory.cloneNode(i)),f.initializer=d),f},r),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(i,a){return e.factory.createExpressionWithTypeArguments(a,i)},r),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(i,a,s){return e.factory.updateExpressionWithTypeArguments(i,s,a)},r),e.createArrowFunction=e.Debug.deprecate(function(i,a,s,u,p,d){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,p,d):arguments.length===5?e.factory.createArrowFunction(i,a,s,u,void 0,p):e.Debug.fail("Argument count mismatch")},r),e.updateArrowFunction=e.Debug.deprecate(function(i,a,s,u,p,d,f){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,p,d,f):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,p,i.equalsGreaterThanToken,d):e.Debug.fail("Argument count mismatch")},r),e.createVariableDeclaration=e.Debug.deprecate(function(i,a,s,u){return arguments.length===4?e.factory.createVariableDeclaration(i,a,s,u):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(i,void 0,a,s):e.Debug.fail("Argument count mismatch")},r),e.updateVariableDeclaration=e.Debug.deprecate(function(i,a,s,u,p){return arguments.length===5?e.factory.updateVariableDeclaration(i,a,s,u,p):arguments.length===4?e.factory.updateVariableDeclaration(i,a,i.exclamationToken,s,u):e.Debug.fail("Argument count mismatch")},r),e.createImportClause=e.Debug.deprecate(function(i,a,s){return s===void 0&&(s=!1),e.factory.createImportClause(s,i,a)},r),e.updateImportClause=e.Debug.deprecate(function(i,a,s,u){return e.factory.updateImportClause(i,u,a,s)},r),e.createExportDeclaration=e.Debug.deprecate(function(i,a,s,u,p){return p===void 0&&(p=!1),e.factory.createExportDeclaration(i,a,p,s,u)},r),e.updateExportDeclaration=e.Debug.deprecate(function(i,a,s,u,p,d){return e.factory.updateExportDeclaration(i,a,s,d,u,p,i.assertClause)},r),e.createJSDocParamTag=e.Debug.deprecate(function(i,a,s,u){return e.factory.createJSDocParameterTag(void 0,i,a,s,!1,u?e.factory.createNodeArray([e.factory.createJSDocText(u)]):void 0)},r),e.createComma=e.Debug.deprecate(function(i,a){return e.factory.createComma(i,a)},r),e.createLessThan=e.Debug.deprecate(function(i,a){return e.factory.createLessThan(i,a)},r),e.createAssignment=e.Debug.deprecate(function(i,a){return e.factory.createAssignment(i,a)},r),e.createStrictEquality=e.Debug.deprecate(function(i,a){return e.factory.createStrictEquality(i,a)},r),e.createStrictInequality=e.Debug.deprecate(function(i,a){return e.factory.createStrictInequality(i,a)},r),e.createAdd=e.Debug.deprecate(function(i,a){return e.factory.createAdd(i,a)},r),e.createSubtract=e.Debug.deprecate(function(i,a){return e.factory.createSubtract(i,a)},r),e.createLogicalAnd=e.Debug.deprecate(function(i,a){return e.factory.createLogicalAnd(i,a)},r),e.createLogicalOr=e.Debug.deprecate(function(i,a){return e.factory.createLogicalOr(i,a)},r),e.createPostfixIncrement=e.Debug.deprecate(function(i){return e.factory.createPostfixIncrement(i)},r),e.createLogicalNot=e.Debug.deprecate(function(i){return e.factory.createLogicalNot(i)},r),e.createNode=e.Debug.deprecate(function(i,a,s){return a===void 0&&(a=0),s===void 0&&(s=0),e.setTextRangePosEnd(i===308?e.parseBaseNodeFactory.createBaseSourceFileNode(i):i===79?e.parseBaseNodeFactory.createBaseIdentifierNode(i):i===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(i):e.isNodeKind(i)?e.parseBaseNodeFactory.createBaseNode(i):e.parseBaseNodeFactory.createBaseTokenNode(i),a,s)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(i){var a=e.factory.cloneNode(i);return e.setTextRange(a,i),e.setParent(a,i.parent),a},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(Ar||(Ar={}));var Ar;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(n){return n.kind===213},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(Ar||(Ar={}));var Ar;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(n){return e.isMemberName(n)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createConstructorTypeNode,s=i.updateConstructorTypeNode;i.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(u,p,d,f){return a(u,p,d,f)},1:function(u,p,d){return a(void 0,u,p,d)}}).bind({0:function(u){return u.length===4},1:function(u){return u.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(u,p,d,f,m){return s(u,p,d,f,m)},1:function(u,p,d,f){return s(u,u.modifiers,p,d,f)}}).bind({0:function(u){return u.length===5},1:function(u){return u.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createImportTypeNode,s=i.updateImportTypeNode;i.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(u,p,d,f,m){return a(u,p,d,f,m)},1:function(u,p,d,f){return a(u,void 0,p,d,f)}}).bind({0:function(u){var p=u[1],d=u[2],f=u[3],m=u[4];return(p===void 0||e.isImportTypeAssertionContainer(p))&&(d===void 0||!e.isArray(d))&&(f===void 0||e.isArray(f))&&(m===void 0||typeof m=="boolean")},1:function(u){var p=u[1],d=u[2],f=u[3],m=u[4];return m===void 0&&(p===void 0||e.isEntityName(p))&&(d===void 0||e.isArray(d))&&(f===void 0||typeof f=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),i.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(u,p,d,f,m,S){return s(u,p,d,f,m,S)},1:function(u,p,d,f,m){return s(u,p,u.assertions,d,f,m)}}).bind({0:function(u){var p=u[2],d=u[3],f=u[4],m=u[5];return(p===void 0||e.isImportTypeAssertionContainer(p))&&(d===void 0||!e.isArray(d))&&(f===void 0||e.isArray(f))&&(m===void 0||typeof m=="boolean")},1:function(u){var p=u[2],d=u[3],f=u[4],m=u[5];return m===void 0&&(p===void 0||e.isEntityName(p))&&(d===void 0||e.isArray(d))&&(f===void 0||typeof f=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createTypeParameterDeclaration,s=i.updateTypeParameterDeclaration;i.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(u,p,d,f){return a(u,p,d,f)},1:function(u,p,d){return a(void 0,u,p,d)}}).bind({0:function(u){var p=u[0];return p===void 0||e.isArray(p)},1:function(u){var p=u[0];return p!==void 0&&!e.isArray(p)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(u,p,d,f,m){return s(u,p,d,f,m)},1:function(u,p,d,f){return s(u,u.modifiers,p,d,f)}}).bind({0:function(u){var p=u[1];return p===void 0||e.isArray(p)},1:function(u){var p=u[1];return p!==void 0&&!e.isArray(p)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){var r={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."},n={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."},i={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 a(u){var p=u.createParameterDeclaration,d=u.updateParameterDeclaration,f=u.createPropertyDeclaration,m=u.updatePropertyDeclaration,S=u.createMethodDeclaration,v=u.updateMethodDeclaration,h=u.createConstructorDeclaration,D=u.updateConstructorDeclaration,k=u.createGetAccessorDeclaration,E=u.updateGetAccessorDeclaration,P=u.createSetAccessorDeclaration,b=u.updateSetAccessorDeclaration,N=u.createIndexSignature,y=u.updateIndexSignature,A=u.createClassStaticBlockDeclaration,w=u.updateClassStaticBlockDeclaration,L=u.createClassExpression,ne=u.updateClassExpression,se=u.createFunctionDeclaration,K=u.updateFunctionDeclaration,l=u.createClassDeclaration,F=u.updateClassDeclaration,G=u.createInterfaceDeclaration,I=u.updateInterfaceDeclaration,j=u.createTypeAliasDeclaration,ee=u.updateTypeAliasDeclaration,R=u.createEnumDeclaration,V=u.updateEnumDeclaration,U=u.createModuleDeclaration,X=u.updateModuleDeclaration,ie=u.createImportEqualsDeclaration,ce=u.updateImportEqualsDeclaration,Ee=u.createImportDeclaration,J=u.updateImportDeclaration,$=u.createExportAssignment,q=u.updateExportAssignment,te=u.createExportDeclaration,Z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return p(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return p(e.concatenate(C,Y),Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isBindingName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isDotDotDotToken(Q))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(W===void 0||e.isQuestionToken(W))&&(pe===void 0||e.isTypeNode(pe))&&(ye===void 0||e.isExpression(ye))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye){return d(C,Y,Q,ae,W,pe,ye)},1:function(C,Y,Q,ae,W,pe,ye,Ke){return d(C,e.concatenate(Y,Q),ae,W,pe,ye,Ke)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7];return ye===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isBindingName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isDotDotDotToken(Q))&&(ae===void 0||typeof ae=="string"||e.isBindingName(ae))&&(W===void 0||e.isQuestionToken(W))&&(pe===void 0||e.isTypeNode(pe))&&(ye===void 0||e.isExpression(ye))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(C,Y,Q,ae,W){return f(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return f(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isQuestionOrExclamationToken(Q))&&(ae===void 0||e.isTypeNode(ae))&&(W===void 0||e.isExpression(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:r}).finish(),u.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return m(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return m(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isQuestionOrExclamationToken(Q))&&(ae===void 0||e.isTypeNode(ae))&&(W===void 0||e.isExpression(W))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||e.isQuestionOrExclamationToken(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isExpression(pe))}}).deprecate({1:r}).finish(),u.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke){return S(C,Y,Q,ae,W,pe,ye,Ke)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return S(e.concatenate(C,Y),Q,ae,W,pe,ye,Ke,Je)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7],Je=C[8];return Je===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||!e.some(pe,e.isTypeParameterDeclaration))&&(ye===void 0||!e.isArray(ye))&&(Ke===void 0||e.isBlock(Ke))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7],Je=C[8];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isAsteriskToken(Q))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(W===void 0||!e.isArray(W))&&(pe===void 0||!e.some(pe,e.isParameter))&&(ye===void 0||e.isArray(ye))&&(Ke===void 0||e.isTypeNode(Ke))&&(Je===void 0||e.isBlock(Je))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return v(C,Y,Q,ae,W,pe,ye,Ke,Je)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je,Ve){return v(C,e.concatenate(Y,Q),ae,W,pe,ye,Ke,Je,Ve)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8],Je=C[9];return Je===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isPropertyName(Q))&&(ae===void 0||typeof ae=="object"&&e.isQuestionToken(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||!e.some(pe,e.isTypeParameterDeclaration))&&(ye===void 0||!e.isArray(ye))&&(Ke===void 0||e.isBlock(Ke))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8],Je=C[9];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q=="object"&&e.isAsteriskToken(Q))&&(ae===void 0||typeof ae=="string"||e.isPropertyName(ae))&&(W===void 0||!e.isArray(W))&&(pe===void 0||!e.some(pe,e.isParameter))&&(ye===void 0||e.isArray(ye))&&(Ke===void 0||e.isTypeNode(Ke))&&(Je===void 0||e.isBlock(Je))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(C,Y,Q){return h(C,Y,Q)},1:function(C,Y,Q,ae){return h(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||!e.some(Y,e.isDecorator))&&(Q===void 0||!e.some(Q,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||!e.some(Y,e.isModifier))&&(Q===void 0||!e.some(Q,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(C,Y,Q,ae){return D(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return D(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||!e.some(Y,e.isDecorator))&&(Q===void 0||!e.some(Q,e.isModifier))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||!e.some(Y,e.isModifier))&&(Q===void 0||!e.some(Q,e.isParameter))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W){return k(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return k(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isBlock(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isBlock(pe))}}).deprecate({1:r}).finish(),u.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return E(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return E(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isBlock(W))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))&&(pe===void 0||e.isBlock(pe))}}).deprecate({1:r}).finish(),u.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(C,Y,Q,ae){return P(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return P(e.concatenate(C,Y),Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(C,Y,Q,ae,W){return b(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return b(C,e.concatenate(Y,Q),ae,W,pe)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5];return W===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(C,Y,Q){return N(C,Y,Q)},1:function(C,Y,Q,ae){return N(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||e.every(Q,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.every(Q,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(C,Y,Q,ae){return y(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return y(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||e.every(Q,e.isParameter))&&(ae===void 0||!e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.every(Q,e.isModifier))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(C){return A(C)},1:function(C,Y,Q){return A(Q)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2];return Q===void 0&&ae===void 0&&(Y===void 0||!e.isArray(Y))},1:function(C){var Y=C[0],Q=C[1],ae=C[2];return(Y===void 0||e.isArray(Y))&&(Q===void 0||e.isArray(Y))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(C,Y){return w(C,Y)},1:function(C,Y,Q,ae){return w(C,ae)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3];return Q===void 0&&ae===void 0&&(Y===void 0||!e.isArray(Y))},1:function(C){var Y=C[1],Q=C[2],ae=C[3];return(Y===void 0||e.isArray(Y))&&(Q===void 0||e.isArray(Y))&&(ae===void 0||e.isBlock(ae))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(C,Y,Q,ae,W){return L(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return L(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:n}).finish(),u.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(C,Y,Q,ae,W,pe){return ne(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return ne(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:n}).finish(),u.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye){return se(C,Y,Q,ae,W,pe,ye)},1:function(C,Y,Q,ae,W,pe,ye,Ke){return se(Y,Q,ae,W,pe,ye,Ke)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7];return Ke===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||typeof Q=="string"||e.isIdentifier(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isParameter))&&(pe===void 0||!e.isArray(pe))&&(ye===void 0||e.isBlock(ye))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6],Ke=C[7];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q!="string"&&e.isAsteriskToken(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.isArray(pe))&&(ye===void 0||e.isTypeNode(ye))&&(Ke===void 0||e.isBlock(Ke))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(C,Y,Q,ae,W,pe,ye,Ke){return K(C,Y,Q,ae,W,pe,ye,Ke)},1:function(C,Y,Q,ae,W,pe,ye,Ke,Je){return K(C,Q,ae,W,pe,ye,Ke,Je)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8];return Ke===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isIdentifier(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isParameter))&&(pe===void 0||!e.isArray(pe))&&(ye===void 0||e.isBlock(ye))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6],ye=C[7],Ke=C[8];return(Y===void 0||e.isArray(Y))&&(Q===void 0||typeof Q!="string"&&e.isAsteriskToken(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.isArray(pe))&&(ye===void 0||e.isTypeNode(ye))&&(Ke===void 0||e.isBlock(Ke))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(C,Y,Q,ae,W){return l(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return l(e.concatenate(C,Y),Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(){return!0}}).deprecate({1:r}).finish(),u.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return F(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return F(C,e.concatenate(Y,Q),ae,W,pe,ye)}}).bind({0:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return pe===void 0&&(Y===void 0||!e.isArray(Y))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.every(ae,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var Y=C[2],Q=C[3],ae=C[4],W=C[5],pe=C[6];return(Y===void 0||e.isArray(Y))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.every(ae,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.isArray(pe))}}).deprecate({1:r}).finish(),u.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(C,Y,Q,ae,W){return G(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return G(Y,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.every(pe,e.isHeritageClause))&&(ye===void 0||e.every(ye,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return I(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return I(C,Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||e.every(W,e.isHeritageClause))&&(pe===void 0||e.every(pe,e.isTypeElement))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(pe===void 0||e.every(pe,e.isHeritageClause))&&(ye===void 0||e.every(ye,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(C,Y,Q,ae){return j(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return j(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||!e.isArray(W))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||e.isTypeNode(pe))}}).deprecate({1:n}).finish(),u.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(C,Y,Q,ae,W){return ee(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return ee(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))&&(W===void 0||!e.isArray(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))&&(pe===void 0||e.isTypeNode(pe))}}).deprecate({1:n}).finish(),u.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(C,Y,Q){return R(C,Y,Q)},1:function(C,Y,Q,ae){return R(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(C,Y,Q,ae){return V(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return V(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isArray(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||!e.isArray(ae))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(C,Y,Q,ae){return U(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return U(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&Q!==void 0&&!e.isArray(Q)&&(ae===void 0||e.isModuleBody(ae))&&(W===void 0||typeof W=="number")},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isModuleName(ae)&&(W===void 0||typeof W=="object")&&(pe===void 0||typeof pe=="number")}}).deprecate({1:n}).finish(),u.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(C,Y,Q,ae){return X(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return X(C,Q,ae,W)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isModuleBody(ae))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isModuleName(ae)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(C,Y,Q,ae){return ie(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return ie(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae!="boolean"&&typeof W!="string"},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&pe!==void 0&&e.isModuleReference(pe)}}).deprecate({1:n}).finish(),u.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(C,Y,Q,ae,W){return ce(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return ce(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae!="boolean"&&typeof W!="string"},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&pe!==void 0&&e.isModuleReference(pe)}}).deprecate({1:n}).finish(),u.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(C,Y,Q,ae){return Ee(C,Y,Q,ae)},1:function(C,Y,Q,ae,W){return Ee(Y,Q,ae,W)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&ae!==void 0&&e.isExpression(ae)&&(W===void 0||e.isAssertClause(W))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.isImportClause(ae))&&W!==void 0&&e.isExpression(W)&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:n}).finish(),u.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(C,Y,Q,ae,W){return J(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return J(C,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return pe===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||!e.isArray(Q))&&(ae===void 0||e.isExpression(ae))&&(W===void 0||e.isAssertClause(W))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||e.isImportClause(ae))&&W!==void 0&&e.isExpression(W)&&(pe===void 0||e.isAssertClause(pe))}}).deprecate({1:n}).finish(),u.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(C,Y,Q){return $(C,Y,Q)},1:function(C,Y,Q,ae){return $(Y,Q,ae)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return W===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&(Q===void 0||typeof Q=="boolean")&&typeof ae=="object"},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&(ae===void 0||typeof ae=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(C,Y,Q){return q(C,Y,Q)},1:function(C,Y,Q,ae){return q(C,Q,ae)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3];return ae===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&Q!==void 0&&!e.isArray(Q)},1:function(C){var Y=C[1],Q=C[2],ae=C[3];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&ae!==void 0&&e.isExpression(ae)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(C,Y,Q,ae,W){return te(C,Y,Q,ae,W)},1:function(C,Y,Q,ae,W,pe){return te(Y,Q,ae,W,pe)}}).bind({0:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&typeof Q=="boolean"&&typeof ae!="boolean"&&(W===void 0||e.isExpression(W))&&(pe===void 0||e.isAssertClause(pe))},1:function(C){var Y=C[0],Q=C[1],ae=C[2],W=C[3],pe=C[4],ye=C[5];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&typeof ae=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(pe===void 0||e.isExpression(pe))&&(ye===void 0||e.isAssertClause(ye))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(C,Y,Q,ae,W,pe){return Z(C,Y,Q,ae,W,pe)},1:function(C,Y,Q,ae,W,pe,ye){return Z(C,Q,ae,W,pe,ye)}}).bind({0:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return ye===void 0&&(Y===void 0||e.every(Y,e.isModifier))&&typeof Q=="boolean"&&typeof ae!="boolean"&&(W===void 0||e.isExpression(W))&&(pe===void 0||e.isAssertClause(pe))},1:function(C){var Y=C[1],Q=C[2],ae=C[3],W=C[4],pe=C[5],ye=C[6];return(Y===void 0||e.every(Y,e.isDecorator))&&(Q===void 0||e.isArray(Q))&&typeof ae=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(pe===void 0||e.isExpression(pe))&&(ye===void 0||e.isAssertClause(ye))}}).deprecate({1:n}).finish()}var s=e.createNodeFactory;e.createNodeFactory=function(u,p){var d=s(u,p);return a(d),d},a(e.factory)})(Ar||(Ar={}));var Ar;(function(e){typeof console<"u"&&(e.Debug.loggingHost={log:function(r,n){switch(r){case e.LogLevel.Error:return console.error(n);case e.LogLevel.Warning:return console.warn(n);case e.LogLevel.Info:return console.log(n);case e.LogLevel.Verbose:return console.log(n)}}})})(Ar||(Ar={}))});var p_r={};Z3e(p_r,{configs:()=>f_r,rules:()=>l_r});module.exports=eOe(p_r);var mv=I8(bCe()),YE=I8(n2e()),n_r=mv.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),i2e=n_r({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:'Identifier ("{{varName}}") can not be captured inside the scope ({{dollarName}}) because {{reason}}. Check out https://qwik.builder.io/docs/advanced/optimizer for more details.',unvalidJsxDollar:"JSX attributes that end with $ can only take an inlined arrow function of a QRL identifier. Make sure the value is created using $()",mutableIdentifier:'The value of the identifier ("{{varName}}") can not be changed once it is captured the scope ({{dollarName}}). Check out https://qwik.builder.io/docs/advanced/optimizer for more details.'}},create(e){var m;let n={allowAny:((m=e.options[0])==null?void 0:m.allowAny)??!0},i=e.getSourceCode().scopeManager,a=mv.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),p=new Map,d=[];function f(S){S.references.forEach(v=>{var k,E;let h=v.resolved,D=(k=v.resolved)==null?void 0:k.scope;if(h&&D){let P=(E=h.defs.at(0))==null?void 0:E.type;if(P==="Type"||P==="ImportBinding")return;let b=v.from,N;for(;b&&(N=p.get(b),!N);)b=b.upper;if(b&&N){let y=D.type;if(y==="global")return;if(y==="module"){let ne=h.identifiers.length===1?h.identifiers[0]:v.identifier,se=s.get(ne),K=u.getSymbolAtLocation(se);if(K&&d.includes(K))return;e.report({messageId:"referencesOutside",node:v.identifier,data:{varName:v.identifier.name,dollarName:N,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let A=v.identifier,w=s.get(A),L=D;for(;L&&!p.has(L);)L=L.upper;if(L!==b){A.parent&&A.parent.type===mv.AST_NODE_TYPES.AssignmentExpression&&A.parent.left===A&&e.report({messageId:"mutableIdentifier",node:v.identifier,data:{varName:v.identifier.name,dollarName:N}});let ne=i_r(u,w,v.identifier,n);ne&&e.report({messageId:"referencesOutside",node:v.identifier,data:{varName:v.identifier.name,dollarName:N,reason:a_r(ne)}})}}}}),S.childScopes.forEach(f)}return{CallExpression(S){if(S.callee.type===mv.AST_NODE_TYPES.Identifier&&S.callee.name.endsWith("$")){let v=S.arguments.at(0);if(v&&v.type===mv.AST_NODE_TYPES.ArrowFunctionExpression){let h=i.acquire(v);h&&p.set(h,S.callee.name)}}},JSXAttribute(S){let v=S.name,h=v.type===mv.AST_NODE_TYPES.JSXIdentifier?v.name:v.name.name;if(h.endsWith("$")){let D=S.value;if(D&&D.type===mv.AST_NODE_TYPES.JSXExpressionContainer){let k=i.acquire(D.expression);if(k)p.set(k,h);else if(D.expression.type===mv.AST_NODE_TYPES.Identifier){let E=s.get(D.expression),P=u.getTypeAtLocation(E);a2e(P)||e.report({messageId:"unvalidJsxDollar",node:D.expression})}}}},Program(S){let v=s.get(S),h=u.getSymbolAtLocation(v);h&&(d=u.getExportsOfModule(h))},"Program:exit"(){f(i.globalScope)}}}});function i_r(e,r,n,i){let a=e.getTypeAtLocation(r);return o_r(e,a,r,n,i,new Set)}function a_r(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function o_r(e,r,n,i,a,s){let u=rT(e,r,n,a,0,s);if(u){let p=u.location;return p&&(u.location=`${i.name}.${p}`),u}return u}function rT(e,r,n,i,a,s){if(s.has(r)||(s.add(r),r.getProperty("__no_serialize__")))return;if(r.flags&YE.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let p=r.flags&YE.default.TypeFlags.Any;if(!i.allowAny&&p)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&YE.default.TypeFlags.BigIntLike)return{type:r,typeStr:e.typeToString(r),reason:"is BigInt and it is not supported yet, use a number instead"};if(r.flags&YE.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&YE.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(a2e(r))return;if(r.getCallSignatures().length>0)return r.symbol.name==="PropFnInterface"?void 0:{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let h of r.types){let D=rT(e,h,n,i,a+1,s);if(D)return D}return}if((r.flags&YE.default.TypeFlags.Object)!==0){let h=u_r(r,e);if(h)return rT(e,h,n,i,a+1,s);let D=c_r(r,e);if(D){for(let P of D){let b=rT(e,P,n,i,a+1,s);if(b)return b}return}let k=r.symbol.name;if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||k==="Promise"||k==="URL"||k==="RegExp"||k==="Date")return;if(r.isClass())return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let E=r.getProperty("prototype");if(E){let P=e.getTypeOfSymbolAtLocation(E,n);if(P.isClass())return{type:P,typeStr:e.typeToString(P),reason:"is a class constructor, which is not serializable"}}if(!k.startsWith("__")&&r.symbol.valueDeclaration)return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable`};for(let P of r.getProperties()){let b=s_r(e,P,n,i,a+1,s);if(b){let N=b.location;return b.location=`${P.name}${N?`.${N}`:""}`,b}}}}function s_r(e,r,n,i,a,s){let u=e.getTypeOfSymbolAtLocation(r,n);return rT(e,u,n,i,a,s)}function u_r(e,r){return r.getElementTypeOfArrayType(e)}function c_r(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function a2e(e){return!!e.getProperty("__brand__QRL__")}var o2e={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({await:!1})},"ArrowFunctionExpression:exit"(){r.pop()},AwaitExpression(){let n=r[r.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var s2e={meta:{type:"problem",docs:{description:"Detect multiple JSX roots inside a component",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{multipleJsxRoots:"Components in Qwik must have a single JSX root element. Your component has multiple roots on lines: {{lines}}. Rewrite your component with a single root such as (`return <>{...}</>`.) and keep all JSX within"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({rootNodes:[],depth:0})},"ArrowFunctionExpression:exit"(){let n=r[r.length-1];if(n&&n.rootNodes.length>1){let i=n.rootNodes.map(a=>{var s;return((s=a.loc)==null?void 0:s.start.line)??0}).join(", ");e.report({node:n.rootNodes[0],messageId:"multipleJsxRoots",data:{lines:i}})}r.pop()},FunctionDeclaration(){r.push({rootNodes:[],depth:0})},"FunctionDeclaration:exit"(){r.pop()},"JSXElement,JSXFragment"(n){let i=r[r.length-1];i&&(i.depth===0&&i.rootNodes.push(n),i.depth++)},"JSXElement:exit"(){let n=r[r.length-1];n&&n.depth--},"JSXFragment:exit"(){let n=r[r.length-1];n&&n.depth--}}}};var l_r={"no-use-after-await":o2e,"valid-lexical-scope":i2e,"single-jsx-root":s2e},f_r={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error","qwik/single-jsx-root":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error","qwik/single-jsx-root":"error"}}};0&&(module.exports={configs,rules});
426
426
  /*
427
427
  * @version 1.4.0
428
428
  * @date 2015-10-26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-qwik",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
5
5
  "main": "index.js",
6
6
  "author": "Builder Team",