eslint-plugin-qwik 0.0.29 → 0.0.32
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.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -408,7 +408,7 @@ Verbose Debug Information: `+(typeof Cr=="string"?Cr:Cr())),T(Br,Ie||w))}i.asser
|
|
|
408
408
|
`:return e.formatting.formatOnEnter(Ft,on,An)}return[]}function hr(Dt,Ft,Wt,$t,on,An){An===void 0&&(An=e.emptyOptions),ye();var _i=he(Dt),qi=e.createTextSpanFromBounds(Ft,Wt),Hi=e.formatting.getFormatContext(on,O);return e.flatMap(e.deduplicate($t,e.equateValues,e.compareValues),function(ua){return Te.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:ua,sourceFile:_i,span:qi,program:de,host:O,cancellationToken:Te,formatContext:Hi,preferences:An})})}function Ae(Dt,Ft,Wt,$t){$t===void 0&&($t=e.emptyOptions),ye(),e.Debug.assert(Dt.type==="file");var on=he(Dt.fileName),An=e.formatting.getFormatContext(Wt,O);return e.codefix.getAllFixes({fixId:Ft,sourceFile:on,program:de,host:O,cancellationToken:Te,formatContext:An,preferences:$t})}function je(Dt,Ft,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye(),e.Debug.assert(Dt.type==="file");var $t=he(Dt.fileName),on=e.formatting.getFormatContext(Ft,O);return e.OrganizeImports.organizeImports($t,on,O,de,Wt,Dt.skipDestructiveCodeActions)}function gr(Dt,Ft,Wt,$t){return $t===void 0&&($t=e.emptyOptions),e.getEditsForFileRename(Pe(),Dt,Ft,O,e.formatting.getFormatContext(Wt,O),$t,Fe)}function xe(Dt,Ft){var Wt=typeof Dt=="string"?Ft:Dt;return e.isArray(Wt)?Promise.all(Wt.map(function($t){return Le($t)})):Le(Wt)}function Le(Dt){var Ft=function(Wt){return e.toPath(Wt,Ye,_e)};return e.Debug.assertEqual(Dt.type,"install package"),O.installPackage?O.installPackage({fileName:Ft(Dt.file),packageName:Dt.packageName}):Promise.reject("Host does not implement `installPackage`")}function er(Dt,Ft,Wt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(O),Oe.getCurrentSourceFile(Dt),Ft,Wt)}function ve(Dt,Ft,Wt){if(Wt===60)return!1;var $t=Oe.getCurrentSourceFile(Dt);if(e.isInString($t,Ft))return!1;if(e.isInsideJsxElementOrAttribute($t,Ft))return Wt===123;if(e.isInTemplateString($t,Ft))return!1;switch(Wt){case 39:case 34:case 96:return!e.isInComment($t,Ft)}return!0}function sr(Dt,Ft){var Wt=Oe.getCurrentSourceFile(Dt),$t=e.findPrecedingToken(Ft,Wt);if(!!$t){var on=$t.kind===31&&e.isJsxOpeningElement($t.parent)?$t.parent.parent:e.isJsxText($t)&&e.isJsxElement($t.parent)?$t.parent:void 0;if(on&&xt(on))return{newText:"</".concat(on.openingElement.tagName.getText(Wt),">")};var An=$t.kind===31&&e.isJsxOpeningFragment($t.parent)?$t.parent.parent:e.isJsxText($t)&&e.isJsxFragment($t.parent)?$t.parent:void 0;if(An&&Vt(An))return{newText:"</>"}}}function $r(Dt,Ft){return{lineStarts:Dt.getLineStarts(),firstLine:Dt.getLineAndCharacterOfPosition(Ft.pos).line,lastLine:Dt.getLineAndCharacterOfPosition(Ft.end).line}}function xr(Dt,Ft,Wt){for(var $t=Oe.getCurrentSourceFile(Dt),on=[],An=$r($t,Ft),_i=An.lineStarts,qi=An.firstLine,Hi=An.lastLine,ua=Wt||!1,ma=Number.MAX_VALUE,Ti=new e.Map,Mi=new RegExp(/\S/),fa=e.isInsideJsxElement($t,_i[qi]),xa=fa?"{/*":"//",Yt=qi;Yt<=Hi;Yt++){var Ca=$t.text.substring(_i[Yt],$t.getLineEndOfPosition(_i[Yt])),Ta=Mi.exec(Ca);Ta&&(ma=Math.min(ma,Ta.index),Ti.set(Yt.toString(),Ta.index),Ca.substr(Ta.index,xa.length)!==xa&&(ua=Wt===void 0||Wt))}for(var Yt=qi;Yt<=Hi;Yt++)if(!(qi!==Hi&&_i[Yt]===Ft.end)){var za=Ti.get(Yt.toString());za!==void 0&&(fa?on.push.apply(on,mt(Dt,{pos:_i[Yt]+ma,end:$t.getLineEndOfPosition(_i[Yt])},ua,fa)):ua?on.push({newText:xa,span:{length:0,start:_i[Yt]+ma}}):$t.text.substr(_i[Yt]+za,xa.length)===xa&&on.push({newText:"",span:{length:xa.length,start:_i[Yt]+za}}))}return on}function mt(Dt,Ft,Wt,$t){for(var on,An=Oe.getCurrentSourceFile(Dt),_i=[],qi=An.text,Hi=!1,ua=Wt||!1,ma=[],Ti=Ft.pos,Mi=$t!==void 0?$t:e.isInsideJsxElement(An,Ti),fa=Mi?"{/*":"/*",xa=Mi?"*/}":"*/",Yt=Mi?"\\{\\/\\*":"\\/\\*",Ca=Mi?"\\*\\/\\}":"\\*\\/";Ti<=Ft.end;){var Ta=qi.substr(Ti,fa.length)===fa?fa.length:0,za=e.isInComment(An,Ti+Ta);if(za)Mi&&(za.pos--,za.end++),ma.push(za.pos),za.kind===3&&ma.push(za.end),Hi=!0,Ti=za.end+1;else{var wa=qi.substring(Ti,Ft.end).search("(".concat(Yt,")|(").concat(Ca,")"));ua=Wt!==void 0?Wt:ua||!e.isTextWhiteSpaceLike(qi,Ti,wa===-1?Ft.end:Ti+wa),Ti=wa===-1?Ft.end+1:Ti+wa+xa.length}}if(ua||!Hi){((on=e.isInComment(An,Ft.pos))===null||on===void 0?void 0:on.kind)!==2&&e.insertSorted(ma,Ft.pos,e.compareValues),e.insertSorted(ma,Ft.end,e.compareValues);var Za=ma[0];qi.substr(Za,fa.length)!==fa&&_i.push({newText:fa,span:{length:0,start:Za}});for(var Ra=1;Ra<ma.length-1;Ra++)qi.substr(ma[Ra]-xa.length,xa.length)!==xa&&_i.push({newText:xa,span:{length:0,start:ma[Ra]}}),qi.substr(ma[Ra],fa.length)!==fa&&_i.push({newText:fa,span:{length:0,start:ma[Ra]}});_i.length%2!==0&&_i.push({newText:xa,span:{length:0,start:ma[ma.length-1]}})}else for(var Ei=0,So=ma;Ei<So.length;Ei++){var Uo=So[Ei],Da=Uo-xa.length>0?Uo-xa.length:0,Ta=qi.substr(Da,xa.length)===xa?xa.length:0;_i.push({newText:"",span:{length:fa.length,start:Uo-Ta}})}return _i}function Nt(Dt,Ft){var Wt=Oe.getCurrentSourceFile(Dt),$t=$r(Wt,Ft),on=$t.firstLine,An=$t.lastLine;return on===An&&Ft.pos!==Ft.end?mt(Dt,Ft,!0):xr(Dt,Ft,!0)}function Ht(Dt,Ft){var Wt=Oe.getCurrentSourceFile(Dt),$t=[],on=Ft.pos,An=Ft.end;on===An&&(An+=e.isInsideJsxElement(Wt,on)?2:1);for(var _i=on;_i<=An;_i++){var qi=e.isInComment(Wt,_i);if(qi){switch(qi.kind){case 2:$t.push.apply($t,xr(Dt,{end:qi.end,pos:qi.pos+1},!1));break;case 3:$t.push.apply($t,mt(Dt,{end:qi.end,pos:qi.pos+1},!1))}_i=qi.end+1}}return $t}function xt(Dt){var Ft=Dt.openingElement,Wt=Dt.closingElement,$t=Dt.parent;return!e.tagNamesAreEquivalent(Ft.tagName,Wt.tagName)||e.isJsxElement($t)&&e.tagNamesAreEquivalent(Ft.tagName,$t.openingElement.tagName)&&xt($t)}function Vt(Dt){var Ft=Dt.closingFragment,Wt=Dt.parent;return!!(Ft.flags&131072)||e.isJsxFragment(Wt)&&Vt(Wt)}function At(Dt,Ft,Wt){var $t=Oe.getCurrentSourceFile(Dt),on=e.formatting.getRangeOfEnclosingComment($t,Ft);return on&&(!Wt||on.kind===3)?e.createTextSpanFromRange(on):void 0}function Pt(Dt,Ft){ye();var Wt=he(Dt);Te.throwIfCancellationRequested();var $t=Wt.text,on=[];if(Ft.length>0&&!Ca(Wt.fileName))for(var An=xa(),_i=void 0;_i=An.exec($t);){Te.throwIfCancellationRequested();var qi=3;e.Debug.assert(_i.length===Ft.length+qi);var Hi=_i[1],ua=_i.index+Hi.length;if(!!e.isInComment(Wt,ua)){for(var ma=void 0,Ti=0;Ti<Ft.length;Ti++)_i[Ti+qi]&&(ma=Ft[Ti]);if(ma===void 0)return e.Debug.fail();if(!Yt($t.charCodeAt(ua+ma.text.length))){var Mi=_i[2];on.push({descriptor:ma,message:Mi,position:ua})}}}return on;function fa(Ta){return Ta.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function xa(){var Ta=/(?:\/\/+\s*)/.source,za=/(?:\/\*+\s*)/.source,wa=/(?:^(?:\s|\*)*)/.source,Za="("+wa+"|"+Ta+"|"+za+")",Ra="(?:"+e.map(Ft,function(qa){return"("+fa(qa.text)+")"}).join("|")+")",Ei=/(?:$|\*\/)/.source,So=/(?:.*?)/.source,Uo="("+Ra+So+")",Da=Za+Uo+Ei;return new RegExp(Da,"gim")}function Yt(Ta){return Ta>=97&&Ta<=122||Ta>=65&&Ta<=90||Ta>=48&&Ta<=57}function Ca(Ta){return e.stringContains(Ta,"/node_modules/")}}function ln(Dt,Ft,Wt){return ye(),e.Rename.getRenameInfo(de,he(Dt),Ft,Wt)}function fn(Dt,Ft,Wt,$t,on,An){var _i=typeof Ft=="number"?[Ft,void 0]:[Ft.pos,Ft.end],qi=_i[0],Hi=_i[1];return{file:Dt,startPosition:qi,endPosition:Hi,program:Pe(),host:O,formatContext:e.formatting.getFormatContext($t,O),cancellationToken:Te,preferences:Wt,triggerReason:on,kind:An}}function $(Dt,Ft,Wt){return{file:Dt,program:Pe(),host:O,span:Ft,preferences:Wt,cancellationToken:Te}}function Ne(Dt,Ft){return e.SmartSelectionRange.getSmartSelectionRange(Ft,Oe.getCurrentSourceFile(Dt))}function Tr(Dt,Ft,Wt,$t,on){Wt===void 0&&(Wt=e.emptyOptions),ye();var An=he(Dt);return e.refactor.getApplicableRefactors(fn(An,Ft,Wt,e.emptyOptions,$t,on))}function mr(Dt,Ft,Wt,$t,on,An){An===void 0&&(An=e.emptyOptions),ye();var _i=he(Dt);return e.refactor.getEditsForRefactor(fn(_i,Wt,An,Ft),$t,on)}function Jr(Dt,Ft){return Ft===0?{line:0,character:0}:Fe.toLineColumnOffset(Dt,Ft)}function Qr(Dt,Ft){ye();var Wt=e.CallHierarchy.resolveCallHierarchyDeclaration(de,e.getTouchingPropertyName(he(Dt),Ft));return Wt&&e.mapOneOrMany(Wt,function($t){return e.CallHierarchy.createCallHierarchyItem(de,$t)})}function Ur(Dt,Ft){ye();var Wt=he(Dt),$t=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(de,Ft===0?Wt:e.getTouchingPropertyName(Wt,Ft)));return $t?e.CallHierarchy.getIncomingCalls(de,$t,Te):[]}function Jt(Dt,Ft){ye();var Wt=he(Dt),$t=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(de,Ft===0?Wt:e.getTouchingPropertyName(Wt,Ft)));return $t?e.CallHierarchy.getOutgoingCalls(de,$t):[]}function Kt(Dt,Ft,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye();var $t=he(Dt);return e.InlayHints.provideInlayHints($($t,Ft,Wt))}var Pn={dispose:Pr,cleanupSemanticCache:tr,getSyntacticDiagnostics:Qe,getSemanticDiagnostics:Br,getSuggestionDiagnostics:Cr,getCompilerOptionsDiagnostics:Ie,getSyntacticClassifications:St,getSemanticClassifications:Ar,getEncodedSyntacticClassifications:fr,getEncodedSemanticClassifications:lt,getCompletionsAtPosition:g,getCompletionEntryDetails:cr,getCompletionEntrySymbol:Se,getSignatureHelpItems:Rr,getQuickInfoAtPosition:Ge,getDefinitionAtPosition:kr,getDefinitionAndBoundSpan:Er,getImplementationAtPosition:Gr,getTypeDefinitionAtPosition:Or,getReferencesAtPosition:zr,findReferences:vt,getFileReferences:Ot,getOccurrencesAtPosition:ft,getDocumentHighlights:ge,getNameOrDottedNameSpan:Bt,getBreakpointStatementAtPosition:We,getNavigateToItems:Qt,getRenameInfo:ln,getSmartSelectionRange:Ne,findRenameLocations:nr,getNavigationBarItems:Vr,getNavigationTree:or,getOutliningSpans:wr,getTodoComments:Pt,getBraceMatchingAtPosition:Yr,getIndentationAtPosition:qe,getFormattingEditsForRange:be,getFormattingEditsForDocument:pr,getFormattingEditsAfterKeystroke:He,getDocCommentTemplateAtPosition:er,isValidBraceCompletionAtPosition:ve,getJsxClosingTagAtPosition:sr,getSpanOfEnclosingComment:At,getCodeFixesAtPosition:hr,getCombinedCodeFix:Ae,applyCodeActionCommand:xe,organizeImports:je,getEditsForFileRename:gr,getEmitOutput:qr,getNonBoundSourceFile:ht,getProgram:Pe,getAutoImportProvider:Ke,getApplicableRefactors:Tr,getEditsForRefactor:mr,toLineColumnOffset:Jr,getSourceMapper:function(){return Fe},clearSourceMapperCache:function(){return Fe.clearCache()},prepareCallHierarchy:Qr,provideCallHierarchyIncomingCalls:Ur,provideCallHierarchyOutgoingCalls:Jt,toggleLineComment:xr,toggleMultilineComment:mt,commentSelection:Nt,uncommentSelection:Ht,provideInlayHints:Kt};switch(ee){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:j.forEach(function(Dt){return Pn[Dt]=function(){throw new Error("LanguageService Operation: ".concat(Dt," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:q.forEach(function(Dt){return Pn[Dt]=function(){throw new Error("LanguageService Operation: ".concat(Dt," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(ee)}return Pn}e.createLanguageService=V;function re(O){return O.nameTable||Z(O),O.nameTable}e.getNameTable=re;function Z(O){var ae=O.nameTable=new e.Map;O.forEachChild(function le(Be){if(e.isIdentifier(Be)&&!e.isTagName(Be)&&Be.escapedText||e.isStringOrNumericLiteralLike(Be)&&Q(Be)){var ce=e.getEscapedTextOfIdentifierOrLiteral(Be);ae.set(ce,ae.get(ce)===void 0?Be.pos:-1)}else if(e.isPrivateIdentifier(Be)){var ce=Be.escapedText;ae.set(ce,ae.get(ce)===void 0?Be.pos:-1)}if(e.forEachChild(Be,le),e.hasJSDocNodes(Be))for(var ee=0,Oe=Be.jsDoc;ee<Oe.length;ee++){var de=Oe[ee];e.forEachChild(de,le)}})}function Q(O){return e.isDeclarationName(O)||O.parent.kind===277||B(O)||e.isLiteralComputedPropertyDeclarationName(O)}function te(O){var ae=z(O);return ae&&(e.isObjectLiteralExpression(ae.parent)||e.isJsxAttributes(ae.parent))?ae:void 0}e.getContainingObjectLiteralElement=te;function z(O){switch(O.kind){case 10:case 14:case 8:if(O.parent.kind===162)return e.isObjectLiteralElement(O.parent.parent)?O.parent.parent:void 0;case 79:return e.isObjectLiteralElement(O.parent)&&(O.parent.parent.kind===205||O.parent.parent.kind===286)&&O.parent.name===O?O.parent:void 0}}function P(O,ae){var le=te(O);if(le){var Be=ae.getContextualType(le.parent),ce=Be&&N(le,ae,Be,!1);if(ce&&ce.length===1)return e.first(ce)}return ae.getSymbolAtLocation(O)}function N(O,ae,le,Be){var ce=e.getNameFromPropertyName(O.name);if(!ce)return e.emptyArray;if(!le.isUnion()){var ee=le.getProperty(ce);return ee?[ee]:e.emptyArray}var Oe=e.mapDefined(le.types,function(de){return(e.isObjectLiteralExpression(O.parent)||e.isJsxAttributes(O.parent))&&ae.isTypeInvalidDueToUnionDiscriminant(de,O.parent)?void 0:de.getProperty(ce)});if(Be&&(Oe.length===0||Oe.length===le.types.length)){var ee=le.getProperty(ce);if(ee)return[ee]}return Oe.length===0?e.mapDefined(le.types,function(de){return de.getProperty(ce)}):Oe}e.getPropertySymbolsFromContextualType=N;function B(O){return O&&O.parent&&O.parent.kind===207&&O.parent.argumentExpression===O}function ue(O){if(typeof __dirname<"u")return __dirname+e.directorySeparator+e.getDefaultLibFileName(O);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=ue,e.setObjectAllocator(U())})(Ir||(Ir={}));var Ir;(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 l=e.findPrecedingToken(u.pos,a);if(!l||a.getLineAndCharacterOfPosition(l.getEnd()).line!==p)return;u=l}if(u.flags&16777216)return;return T(u);function f(v,w){var D=v.decorators?e.skipTrivia(a.text,v.decorators.end):v.getStart(a);return e.createTextSpanFromBounds(D,(w||v).getEnd())}function d(v,w){return f(v,e.findNextToken(w,w.parent,a))}function b(v,w){return v&&p===a.getLineAndCharacterOfPosition(v.getStart(a)).line?T(v):T(w)}function y(v){return e.createTextSpanFromBounds(e.skipTrivia(a.text,v.pos),v.end)}function _(v){return T(e.findPrecedingToken(v.pos,a))}function h(v){return T(e.findNextToken(v,v.parent,a))}function T(v){if(v){var w=v.parent;switch(v.kind){case 237:return ie(v.declarationList.declarations[0]);case 254:case 167:case 166:return ie(v);case 164:return M(v);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return X(v);case 235:if(e.isFunctionBlock(v))return I(v);case 262:return L(v);case 292:return L(v.block);case 238:return f(v.expression);case 247:return f(v.getChildAt(0),v.expression);case 241:return d(v,v.expression);case 240:return T(v.statement);case 253:return f(v.getChildAt(0));case 239:return d(v,v.expression);case 250:return T(v.statement);case 246:case 245:return f(v.getChildAt(0),v.label);case 242:return j(v);case 243:return d(v,v.expression);case 244:return ne(v);case 249:return d(v,v.expression);case 289:case 290:return T(v.statements[0]);case 252:return L(v.tryBlock);case 251:return f(v,v.expression);case 271:return f(v,v.expression);case 265:return f(v,v.moduleReference);case 266:return f(v,v.moduleSpecifier);case 272:return f(v,v.moduleSpecifier);case 261:if(e.getModuleInstanceState(v)!==1)return;case 257:case 260:case 299:case 203:return f(v);case 248:return T(v.statement);case 165:return y(w.decorators);case 201:case 202:return q(v);case 258:case 259:return;case 26:case 1:return b(e.findPrecedingToken(v.pos,a));case 27:return _(v);case 18:return re(v);case 19:return Z(v);case 23:return Q(v);case 20:return te(v);case 21:return z(v);case 58:return P(v);case 31:case 29:return N(v);case 115:return B(v);case 91:case 83:case 96:return h(v);case 160:return ue(v);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v))return V(v);if((v.kind===79||v.kind===225||v.kind===296||v.kind===297)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(w))return f(v);if(v.kind===221){var D=v,U=D.left,x=D.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U))return V(U);if(x.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return f(v);if(x.kind===27)return T(U)}if(e.isExpressionNode(v))switch(w.kind){case 240:return _(v);case 165:return T(v.parent);case 242:case 244:return f(v);case 221:if(v.parent.operatorToken.kind===27)return f(v);break;case 214:if(v.parent.body===v)return f(v);break}switch(v.parent.kind){case 296:if(v.parent.name===v&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent.parent))return T(v.parent.initializer);break;case 211:if(v.parent.type===v)return h(v.parent.type);break;case 254:case 164:{var A=v.parent,C=A.initializer,K=A.type;if(C===v||K===v||e.isAssignmentOperator(v.kind))return _(v);break}case 221:{var U=v.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(U)&&v!==U)return _(v);break}default:if(e.isFunctionLike(v.parent)&&v.parent.type===v)return _(v)}return T(v.parent)}}function H(O){return e.isVariableDeclarationList(O.parent)&&O.parent.declarations[0]===O?f(e.findPrecedingToken(O.pos,a,O.parent),O):f(O)}function ie(O){if(O.parent.parent.kind===243)return T(O.parent.parent);var ae=O.parent;if(e.isBindingPattern(O.name))return q(O.name);if(O.initializer||e.hasSyntacticModifier(O,1)||ae.parent.kind===244)return H(O);if(e.isVariableDeclarationList(O.parent)&&O.parent.declarations[0]!==O)return T(e.findPrecedingToken(O.pos,a,O.parent))}function J(O){return!!O.initializer||O.dotDotDotToken!==void 0||e.hasSyntacticModifier(O,12)}function M(O){if(e.isBindingPattern(O.name))return q(O.name);if(J(O))return f(O);var ae=O.parent,le=ae.parameters.indexOf(O);return e.Debug.assert(le!==-1),le!==0?M(ae.parameters[le-1]):T(ae.body)}function F(O){return e.hasSyntacticModifier(O,1)||O.parent.kind===257&&O.kind!==171}function X(O){if(!!O.body)return F(O)?f(O):T(O.body)}function I(O){var ae=O.statements.length?O.statements[0]:O.getLastToken();return F(O.parent)?b(O.parent,ae):T(ae)}function L(O){switch(O.parent.kind){case 261:if(e.getModuleInstanceState(O.parent)!==1)return;case 241:case 239:case 243:return b(O.parent,O.statements[0]);case 242:case 244:return b(e.findPrecedingToken(O.pos,a,O.parent),O.statements[0])}return T(O.statements[0])}function ne(O){if(O.initializer.kind===255){var ae=O.initializer;if(ae.declarations.length>0)return T(ae.declarations[0])}else return T(O.initializer)}function j(O){if(O.initializer)return ne(O);if(O.condition)return f(O.condition);if(O.incrementor)return f(O.incrementor)}function q(O){var ae=e.forEach(O.elements,function(le){return le.kind!==227?le:void 0});return ae?T(ae):O.parent.kind===203?f(O.parent):H(O.parent)}function V(O){e.Debug.assert(O.kind!==202&&O.kind!==201);var ae=O.kind===204?O.elements:O.properties,le=e.forEach(ae,function(Be){return Be.kind!==227?Be:void 0});return le?T(le):f(O.parent.kind===221?O.parent:O)}function re(O){switch(O.parent.kind){case 260:var ae=O.parent;return b(e.findPrecedingToken(O.pos,a,O.parent),ae.members.length?ae.members[0]:ae.getLastToken(a));case 257:var le=O.parent;return b(e.findPrecedingToken(O.pos,a,O.parent),le.members.length?le.members[0]:le.getLastToken(a));case 263:return b(O.parent.parent,O.parent.clauses[0])}return T(O.parent)}function Z(O){switch(O.parent.kind){case 262:if(e.getModuleInstanceState(O.parent.parent)!==1)return;case 260:case 257:return f(O);case 235:if(e.isFunctionBlock(O.parent))return f(O);case 292:return T(e.lastOrUndefined(O.parent.statements));case 263:var ae=O.parent,le=e.lastOrUndefined(ae.clauses);return le?T(e.lastOrUndefined(le.statements)):void 0;case 201:var Be=O.parent;return T(e.lastOrUndefined(Be.elements)||Be);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(O.parent)){var ce=O.parent;return f(e.lastOrUndefined(ce.properties)||ce)}return T(O.parent)}}function Q(O){switch(O.parent.kind){case 202:var ae=O.parent;return f(e.lastOrUndefined(ae.elements)||ae);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(O.parent)){var le=O.parent;return f(e.lastOrUndefined(le.elements)||le)}return T(O.parent)}}function te(O){return O.parent.kind===240||O.parent.kind===208||O.parent.kind===209?_(O):O.parent.kind===212?h(O):T(O.parent)}function z(O){switch(O.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return _(O);default:return T(O.parent)}}function P(O){return e.isFunctionLike(O.parent)||O.parent.kind===296||O.parent.kind===164?_(O):T(O.parent)}function N(O){return O.parent.kind===211?h(O):T(O.parent)}function B(O){return O.parent.kind===240?d(O,O.parent.expression):T(O.parent)}function ue(O){return O.parent.kind===244?h(O):T(O.parent)}}}n.spanInSourceFileAtLocation=i})(r=e.BreakpointResolver||(e.BreakpointResolver={}))})(Ir||(Ir={}));var Ir;(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})(Ir||(Ir={}));var a9=function(){return this}(),Ir;(function(e){function r(v,w){v&&v.log("*INTERNAL ERROR* - Exception in typescript services: "+w.message)}var n=function(){function v(w){this.scriptSnapshotShim=w}return v.prototype.getText=function(w,D){return this.scriptSnapshotShim.getText(w,D)},v.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},v.prototype.getChangeRange=function(w){var D=w,U=this.scriptSnapshotShim.getChangeRange(D.scriptSnapshotShim);if(U===null)return null;var x=JSON.parse(U);return e.createTextChangeRange(e.createTextSpan(x.span.start,x.span.length),x.newLength)},v.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},v}(),i=function(){function v(w){var D=this;this.shimHost=w,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(U,x){var A=JSON.parse(D.shimHost.getModuleResolutionsForFile(x));return e.map(U,function(C){var K=e.getProperty(A,C);return K?{resolvedFileName:K,extension:e.extensionFromPath(K),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(U){return D.shimHost.directoryExists(U)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(U,x){var A=JSON.parse(D.shimHost.getTypeReferenceDirectiveResolutionsForFile(x));return e.map(U,function(C){return e.getProperty(A,e.isString(C)?C:C.fileName.toLowerCase())})})}return v.prototype.log=function(w){this.loggingEnabled&&this.shimHost.log(w)},v.prototype.trace=function(w){this.tracingEnabled&&this.shimHost.trace(w)},v.prototype.error=function(w){this.shimHost.error(w)},v.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},v.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},v.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},v.prototype.getCompilationSettings=function(){var w=this.shimHost.getCompilationSettings();if(w===null||w==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var D=JSON.parse(w);return D.allowNonTsExtensions=!0,D},v.prototype.getScriptFileNames=function(){var w=this.shimHost.getScriptFileNames();return JSON.parse(w)},v.prototype.getScriptSnapshot=function(w){var D=this.shimHost.getScriptSnapshot(w);return D&&new n(D)},v.prototype.getScriptKind=function(w){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(w):0},v.prototype.getScriptVersion=function(w){return this.shimHost.getScriptVersion(w)},v.prototype.getLocalizedDiagnosticMessages=function(){var w=this.shimHost.getLocalizedDiagnosticMessages();if(w===null||w==="")return null;try{return JSON.parse(w)}catch(D){return this.log(D.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},v.prototype.getCancellationToken=function(){var w=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(w)},v.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},v.prototype.getDirectories=function(w){return JSON.parse(this.shimHost.getDirectories(w))},v.prototype.getDefaultLibFileName=function(w){return this.shimHost.getDefaultLibFileName(JSON.stringify(w))},v.prototype.readDirectory=function(w,D,U,x,A){var C=e.getFileMatcherPatterns(w,U,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(w,JSON.stringify(D),JSON.stringify(C.basePaths),C.excludePattern,C.includeFilePattern,C.includeDirectoryPattern,A))},v.prototype.readFile=function(w,D){return this.shimHost.readFile(w,D)},v.prototype.fileExists=function(w){return this.shimHost.fileExists(w)},v}();e.LanguageServiceShimHostAdapter=i;var a=function(){function v(w){var D=this;this.shimHost=w,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(U){return D.shimHost.directoryExists(U)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(U){return D.shimHost.realpath(U)}:this.realpath=void 0}return v.prototype.readDirectory=function(w,D,U,x,A){var C=e.getFileMatcherPatterns(w,U,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(w,JSON.stringify(D),JSON.stringify(C.basePaths),C.excludePattern,C.includeFilePattern,C.includeDirectoryPattern,A))},v.prototype.fileExists=function(w){return this.shimHost.fileExists(w)},v.prototype.readFile=function(w){return this.shimHost.readFile(w)},v.prototype.getDirectories=function(w){return JSON.parse(this.shimHost.getDirectories(w))},v}();e.CoreServicesShimHostAdapter=a;function s(v,w,D,U){var x;U&&(v.log(w),x=e.timestamp());var A=D();if(U){var C=e.timestamp();if(v.log("".concat(w," completed in ").concat(C-x," msec")),e.isString(A)){var K=A;K.length>128&&(K=K.substring(0,128)+"..."),v.log(" result.length=".concat(K.length,", result='").concat(JSON.stringify(K),"'"))}}return A}function u(v,w,D,U){return p(v,w,!0,D,U)}function p(v,w,D,U,x){try{var A=s(v,w,U,x);return D?JSON.stringify({result:A}):A}catch(C){return C instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(r(v,C),C.description=w,JSON.stringify({error:C}))}}var l=function(){function v(w){this.factory=w,w.registerShim(this)}return v.prototype.dispose=function(w){this.factory.unregisterShim(this)},v}();function f(v,w){return v.map(function(D){return d(D,w)})}e.realizeDiagnostics=f;function d(v,w){return{message:e.flattenDiagnosticMessageText(v.messageText,w),start:v.start,length:v.length,category:e.diagnosticCategoryName(v),code:v.code,reportsUnnecessary:v.reportsUnnecessary,reportsDeprecated:v.reportsDeprecated}}var b=function(v){k1(w,v);function w(D,U,x){var A=v.call(this,D)||this;return A.host=U,A.languageService=x,A.logPerformance=!1,A.logger=A.host,A}return w.prototype.forwardJSONCall=function(D,U){return u(this.logger,D,U,this.logPerformance)},w.prototype.dispose=function(D){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,a9&&a9.CollectGarbage&&(a9.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,v.prototype.dispose.call(this,D)},w.prototype.refresh=function(D){this.forwardJSONCall("refresh(".concat(D,")"),function(){return null})},w.prototype.cleanupSemanticCache=function(){var D=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return D.languageService.cleanupSemanticCache(),null})},w.prototype.realizeDiagnostics=function(D){var U=e.getNewLineOrDefaultFromHost(this.host);return f(D,U)},w.prototype.getSyntacticClassifications=function(D,U,x){var A=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return A.languageService.getSyntacticClassifications(D,e.createTextSpan(U,x))})},w.prototype.getSemanticClassifications=function(D,U,x){var A=this;return this.forwardJSONCall("getSemanticClassifications('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return A.languageService.getSemanticClassifications(D,e.createTextSpan(U,x))})},w.prototype.getEncodedSyntacticClassifications=function(D,U,x){var A=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return y(A.languageService.getEncodedSyntacticClassifications(D,e.createTextSpan(U,x)))})},w.prototype.getEncodedSemanticClassifications=function(D,U,x){var A=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return y(A.languageService.getEncodedSemanticClassifications(D,e.createTextSpan(U,x)))})},w.prototype.getSyntacticDiagnostics=function(D){var U=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(D,"')"),function(){var x=U.languageService.getSyntacticDiagnostics(D);return U.realizeDiagnostics(x)})},w.prototype.getSemanticDiagnostics=function(D){var U=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(D,"')"),function(){var x=U.languageService.getSemanticDiagnostics(D);return U.realizeDiagnostics(x)})},w.prototype.getSuggestionDiagnostics=function(D){var U=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(D,"')"),function(){return U.realizeDiagnostics(U.languageService.getSuggestionDiagnostics(D))})},w.prototype.getCompilerOptionsDiagnostics=function(){var D=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var U=D.languageService.getCompilerOptionsDiagnostics();return D.realizeDiagnostics(U)})},w.prototype.getQuickInfoAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getQuickInfoAtPosition(D,U)})},w.prototype.getNameOrDottedNameSpan=function(D,U,x){var A=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return A.languageService.getNameOrDottedNameSpan(D,U,x)})},w.prototype.getBreakpointStatementAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getBreakpointStatementAtPosition(D,U)})},w.prototype.getSignatureHelpItems=function(D,U,x){var A=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(D,"', ").concat(U,")"),function(){return A.languageService.getSignatureHelpItems(D,U,x)})},w.prototype.getDefinitionAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getDefinitionAtPosition(D,U)})},w.prototype.getDefinitionAndBoundSpan=function(D,U){var x=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getDefinitionAndBoundSpan(D,U)})},w.prototype.getTypeDefinitionAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getTypeDefinitionAtPosition(D,U)})},w.prototype.getImplementationAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getImplementationAtPosition(D,U)})},w.prototype.getRenameInfo=function(D,U,x){var A=this;return this.forwardJSONCall("getRenameInfo('".concat(D,"', ").concat(U,")"),function(){return A.languageService.getRenameInfo(D,U,x)})},w.prototype.getSmartSelectionRange=function(D,U){var x=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getSmartSelectionRange(D,U)})},w.prototype.findRenameLocations=function(D,U,x,A,C){var K=this;return this.forwardJSONCall("findRenameLocations('".concat(D,"', ").concat(U,", ").concat(x,", ").concat(A,", ").concat(C,")"),function(){return K.languageService.findRenameLocations(D,U,x,A,C)})},w.prototype.getBraceMatchingAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getBraceMatchingAtPosition(D,U)})},w.prototype.isValidBraceCompletionAtPosition=function(D,U,x){var A=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return A.languageService.isValidBraceCompletionAtPosition(D,U,x)})},w.prototype.getSpanOfEnclosingComment=function(D,U,x){var A=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(D,"', ").concat(U,")"),function(){return A.languageService.getSpanOfEnclosingComment(D,U,x)})},w.prototype.getIndentationAtPosition=function(D,U,x){var A=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(D,"', ").concat(U,")"),function(){var C=JSON.parse(x);return A.languageService.getIndentationAtPosition(D,U,C)})},w.prototype.getReferencesAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getReferencesAtPosition(D,U)})},w.prototype.findReferences=function(D,U){var x=this;return this.forwardJSONCall("findReferences('".concat(D,"', ").concat(U,")"),function(){return x.languageService.findReferences(D,U)})},w.prototype.getFileReferences=function(D){var U=this;return this.forwardJSONCall("getFileReferences('".concat(D,")"),function(){return U.languageService.getFileReferences(D)})},w.prototype.getOccurrencesAtPosition=function(D,U){var x=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(D,"', ").concat(U,")"),function(){return x.languageService.getOccurrencesAtPosition(D,U)})},w.prototype.getDocumentHighlights=function(D,U,x){var A=this;return this.forwardJSONCall("getDocumentHighlights('".concat(D,"', ").concat(U,")"),function(){var C=A.languageService.getDocumentHighlights(D,U,JSON.parse(x)),K=e.toFileNameLowerCase(e.normalizeSlashes(D));return e.filter(C,function(H){return e.toFileNameLowerCase(e.normalizeSlashes(H.fileName))===K})})},w.prototype.getCompletionsAtPosition=function(D,U,x,A){var C=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(D,"', ").concat(U,", ").concat(x,", ").concat(A,")"),function(){return C.languageService.getCompletionsAtPosition(D,U,x,A)})},w.prototype.getCompletionEntryDetails=function(D,U,x,A,C,K,H){var ie=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(D,"', ").concat(U,", '").concat(x,"')"),function(){var J=A===void 0?void 0:JSON.parse(A);return ie.languageService.getCompletionEntryDetails(D,U,x,J,C,K,H)})},w.prototype.getFormattingEditsForRange=function(D,U,x,A){var C=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){var K=JSON.parse(A);return C.languageService.getFormattingEditsForRange(D,U,x,K)})},w.prototype.getFormattingEditsForDocument=function(D,U){var x=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(D,"')"),function(){var A=JSON.parse(U);return x.languageService.getFormattingEditsForDocument(D,A)})},w.prototype.getFormattingEditsAfterKeystroke=function(D,U,x,A){var C=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(D,"', ").concat(U,", '").concat(x,"')"),function(){var K=JSON.parse(A);return C.languageService.getFormattingEditsAfterKeystroke(D,U,x,K)})},w.prototype.getDocCommentTemplateAtPosition=function(D,U,x){var A=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(D,"', ").concat(U,")"),function(){return A.languageService.getDocCommentTemplateAtPosition(D,U,x)})},w.prototype.getNavigateToItems=function(D,U,x){var A=this;return this.forwardJSONCall("getNavigateToItems('".concat(D,"', ").concat(U,", ").concat(x,")"),function(){return A.languageService.getNavigateToItems(D,U,x)})},w.prototype.getNavigationBarItems=function(D){var U=this;return this.forwardJSONCall("getNavigationBarItems('".concat(D,"')"),function(){return U.languageService.getNavigationBarItems(D)})},w.prototype.getNavigationTree=function(D){var U=this;return this.forwardJSONCall("getNavigationTree('".concat(D,"')"),function(){return U.languageService.getNavigationTree(D)})},w.prototype.getOutliningSpans=function(D){var U=this;return this.forwardJSONCall("getOutliningSpans('".concat(D,"')"),function(){return U.languageService.getOutliningSpans(D)})},w.prototype.getTodoComments=function(D,U){var x=this;return this.forwardJSONCall("getTodoComments('".concat(D,"')"),function(){return x.languageService.getTodoComments(D,JSON.parse(U))})},w.prototype.prepareCallHierarchy=function(D,U){var x=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(D,"', ").concat(U,")"),function(){return x.languageService.prepareCallHierarchy(D,U)})},w.prototype.provideCallHierarchyIncomingCalls=function(D,U){var x=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(D,"', ").concat(U,")"),function(){return x.languageService.provideCallHierarchyIncomingCalls(D,U)})},w.prototype.provideCallHierarchyOutgoingCalls=function(D,U){var x=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(D,"', ").concat(U,")"),function(){return x.languageService.provideCallHierarchyOutgoingCalls(D,U)})},w.prototype.provideInlayHints=function(D,U,x){var A=this;return this.forwardJSONCall("provideInlayHints('".concat(D,"', '").concat(JSON.stringify(U),"', ").concat(JSON.stringify(x),")"),function(){return A.languageService.provideInlayHints(D,U,x)})},w.prototype.getEmitOutput=function(D){var U=this;return this.forwardJSONCall("getEmitOutput('".concat(D,"')"),function(){var x=U.languageService.getEmitOutput(D),A=x.diagnostics,C=$ye(x,["diagnostics"]);return Vn(Vn({},C),{diagnostics:U.realizeDiagnostics(A)})})},w.prototype.getEmitOutputObject=function(D){var U=this;return p(this.logger,"getEmitOutput('".concat(D,"')"),!1,function(){return U.languageService.getEmitOutput(D)},this.logPerformance)},w.prototype.toggleLineComment=function(D,U){var x=this;return this.forwardJSONCall("toggleLineComment('".concat(D,"', '").concat(JSON.stringify(U),"')"),function(){return x.languageService.toggleLineComment(D,U)})},w.prototype.toggleMultilineComment=function(D,U){var x=this;return this.forwardJSONCall("toggleMultilineComment('".concat(D,"', '").concat(JSON.stringify(U),"')"),function(){return x.languageService.toggleMultilineComment(D,U)})},w.prototype.commentSelection=function(D,U){var x=this;return this.forwardJSONCall("commentSelection('".concat(D,"', '").concat(JSON.stringify(U),"')"),function(){return x.languageService.commentSelection(D,U)})},w.prototype.uncommentSelection=function(D,U){var x=this;return this.forwardJSONCall("uncommentSelection('".concat(D,"', '").concat(JSON.stringify(U),"')"),function(){return x.languageService.uncommentSelection(D,U)})},w}(l);function y(v){return{spans:v.spans.join(","),endOfLineState:v.endOfLineState}}var _=function(v){k1(w,v);function w(D,U){var x=v.call(this,D)||this;return x.logger=U,x.logPerformance=!1,x.classifier=e.createClassifier(),x}return w.prototype.getEncodedLexicalClassifications=function(D,U,x){var A=this;return x===void 0&&(x=!1),u(this.logger,"getEncodedLexicalClassifications",function(){return y(A.classifier.getEncodedLexicalClassifications(D,U,x))},this.logPerformance)},w.prototype.getClassificationsForLine=function(D,U,x){x===void 0&&(x=!1);for(var A=this.classifier.getClassificationsForLine(D,U,x),C="",K=0,H=A.entries;K<H.length;K++){var ie=H[K];C+=ie.length+`
|
|
409
409
|
`,C+=ie.classification+`
|
|
410
410
|
`}return C+=A.finalLexState,C},w}(l),h=function(v){k1(w,v);function w(D,U,x){var A=v.call(this,D)||this;return A.logger=U,A.host=x,A.logPerformance=!1,A}return w.prototype.forwardJSONCall=function(D,U){return u(this.logger,D,U,this.logPerformance)},w.prototype.resolveModuleName=function(D,U,x){var A=this;return this.forwardJSONCall("resolveModuleName('".concat(D,"')"),function(){var C=JSON.parse(x),K=e.resolveModuleName(U,e.normalizeSlashes(D),C,A.host),H=K.resolvedModule?K.resolvedModule.resolvedFileName:void 0;return K.resolvedModule&&K.resolvedModule.extension!==".ts"&&K.resolvedModule.extension!==".tsx"&&K.resolvedModule.extension!==".d.ts"&&(H=void 0),{resolvedFileName:H,failedLookupLocations:K.failedLookupLocations}})},w.prototype.resolveTypeReferenceDirective=function(D,U,x){var A=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(D,")"),function(){var C=JSON.parse(x),K=e.resolveTypeReferenceDirective(U,e.normalizeSlashes(D),C,A.host);return{resolvedFileName:K.resolvedTypeReferenceDirective?K.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:K.resolvedTypeReferenceDirective?K.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:K.failedLookupLocations}})},w.prototype.getPreProcessedFileInfo=function(D,U){var x=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(D,"')"),function(){var A=e.preProcessFile(e.getSnapshotText(U),!0,!0);return{referencedFiles:x.convertFileReferences(A.referencedFiles),importedFiles:x.convertFileReferences(A.importedFiles),ambientExternalModules:A.ambientExternalModules,isLibFile:A.isLibFile,typeReferenceDirectives:x.convertFileReferences(A.typeReferenceDirectives),libReferenceDirectives:x.convertFileReferences(A.libReferenceDirectives)}})},w.prototype.getAutomaticTypeDirectiveNames=function(D){var U=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(D,"')"),function(){var x=JSON.parse(D);return e.getAutomaticTypeDirectiveNames(x,U.host)})},w.prototype.convertFileReferences=function(D){if(!!D){for(var U=[],x=0,A=D;x<A.length;x++){var C=A[x];U.push({path:e.normalizeSlashes(C.fileName),position:C.pos,length:C.end-C.pos})}return U}},w.prototype.getTSConfigFileInfo=function(D,U){var x=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(D,"')"),function(){var A=e.parseJsonText(D,e.getSnapshotText(U)),C=e.normalizeSlashes(D),K=e.parseJsonSourceFileConfigFileContent(A,x.host,e.getDirectoryPath(C),{},C);return{options:K.options,typeAcquisition:K.typeAcquisition,files:K.fileNames,raw:K.raw,errors:f(Zt(Zt([],A.parseDiagnostics,!0),K.errors,!0),`\r
|
|
411
|
-
`)}})},w.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},w.prototype.discoverTypings=function(D){var U=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var A=JSON.parse(D);return U.safeList===void 0&&(U.safeList=e.JsTyping.loadSafeList(U.host,e.toPath(A.safeListPath,A.safeListPath,x))),e.JsTyping.discoverTypings(U.host,function(C){return U.logger.log(C)},A.fileNames,e.toPath(A.projectRootPath,A.projectRootPath,x),U.safeList,A.packageNameToTypingLocation,A.typeAcquisition,A.unresolvedImports,A.typesRegistry)})},w}(l),T=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(w){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(w.useCaseSensitiveFileNames&&w.useCaseSensitiveFileNames(),w.getCurrentDirectory()));var D=new i(w),U=e.createLanguageService(D,this.documentRegistry,!1);return new b(this,w,U)}catch(x){throw r(w,x),x}},v.prototype.createClassifierShim=function(w){try{return new _(this,w)}catch(D){throw r(w,D),D}},v.prototype.createCoreServicesShim=function(w){try{var D=new a(w);return new h(this,w,D)}catch(U){throw r(w,U),U}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(w){this._shims.push(w)},v.prototype.unregisterShim=function(w){for(var D=0;D<this._shims.length;D++)if(this._shims[D]===w){delete this._shims[D];return}throw new Error("Invalid operation")},v}();e.TypeScriptServicesFactory=T})(Ir||(Ir={}));(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=Ir.TypeScriptServicesFactory,globalThis.toolsVersion=Ir.versionMajorMinor);typeof gT<"u"&&gT.exports&&(gT.exports=Ir);var Ir;(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,l){return e.factory.updateMethodSignature(i,i.modifiers,p,l,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=140),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,l){return e.factory.updateClassExpression(i,void 0,a,s,u,p,l)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,p){var l=e.factory.createPropertySignature(i,a,s,u);return l.initializer=p,l},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,p,l){var f=e.factory.updatePropertySignature(i,a,s,u,p);return i.initializer!==l&&(f===i&&(f=e.factory.cloneNode(i)),f.initializer=l),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,l){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,p,l):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,l,f){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,p,l,f):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,p,i.equalsGreaterThanToken,l):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,l){return e.factory.updateExportDeclaration(i,a,s,l,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===305?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`."}),e.isTypeAssertion=e.Debug.deprecate(function(i){return i.kind===211},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(i){return e.isMemberName(i)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ir||(Ir={}))});var fZe={};DAe(fZe,{configs:()=>lZe,rules:()=>uZe});module.exports=CAe(fZe);var Xy=V3(pye()),P1=V3(Hye()),nZe=Xy.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),Kye=nZe({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.'}},create(e){var d,b;let n={allowAny:(b=(d=e.options[0])==null?void 0:d.allowAny)!=null?b:!0},i=e.getSourceCode().scopeManager,a=Xy.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),p=new Map,l=[];function f(y){y.references.forEach(_=>{var v,w;let h=_.resolved,T=(v=_.resolved)==null?void 0:v.scope;if(h&&T){let D=(w=h.defs.at(0))==null?void 0:w.type;if(D==="Type"||D==="ImportBinding")return;let U=_.from,x;for(;U&&(x=p.get(U),!x);)U=U.upper;if(U&&x){let A=T.type;if(A==="global")return;let C=s.get(_.identifier);if(A==="module"){let H=u.getSymbolAtLocation(C);if(H&&l.includes(H))return;e.report({messageId:"referencesOutside",node:_.identifier,data:{varName:_.identifier.name,dollarName:x,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let K=T;for(;K&&!p.has(K);)K=K.upper;if(K!==U){let H=iZe(u,C,_.identifier,n);H&&e.report({messageId:"referencesOutside",node:_.identifier,data:{varName:_.identifier.name,dollarName:x,reason:aZe(H)}})}}}}),y.childScopes.forEach(f)}return{CallExpression(y){if(y.callee.type===Xy.AST_NODE_TYPES.Identifier&&y.callee.name.endsWith("$")){let _=y.arguments.at(0);if(_&&_.type===Xy.AST_NODE_TYPES.ArrowFunctionExpression){let h=i.acquire(_);h&&p.set(h,y.callee.name)}}},JSXAttribute(y){let _=y.name,h=_.type===Xy.AST_NODE_TYPES.JSXIdentifier?_.name:_.name.name;if(h.endsWith("$")){let T=y.value;if(T&&T.type===Xy.AST_NODE_TYPES.JSXExpressionContainer){let v=i.acquire(T.expression);v&&p.set(v,h)}}},Program(y){let _=s.get(y);l=u.getExportsOfModule(u.getSymbolAtLocation(_))},"Program:exit"(){f(i.globalScope)}}}});function iZe(e,r,n,i){let a=e.getTypeAtLocation(r);return oZe(e,a,r,n,i)}function aZe(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function oZe(e,r,n,i,a){let s=y6(e,r,n,a,0);if(s){let u=s.location;return u&&(s.location=`${i.name}.${u}`),s}return s}function y6(e,r,n,i,a){if(r.flags&P1.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let u=r.flags&P1.TypeFlags.Any;if(!i.allowAny&&u)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&P1.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&P1.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&P1.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(r.getCallSignatures().length>0)return{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let y of r.types){let _=y6(e,y,n,i,a+1);if(_)return _}return}if((r.flags&P1.TypeFlags.Object)!==0){let y=r.symbol.name;if(r.getProperty("__no_serialize__"))return;let _=cZe(r,e);if(_)return y6(e,_,n,i,a+1);if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||r.getProperty("__brand__QRL__"))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`};if(y==="Promise")return{type:r,typeStr:e.typeToString(r),reason:"is a Promise, which is not serializable"};let h=r.getProperty("prototype");if(h){let T=e.getTypeOfSymbolAtLocation(h,n);if(T.isClass())return{type:T,typeStr:e.typeToString(T),reason:"is a class constructor, which is not serializable"}}if(!y.startsWith("__"))return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable`};for(let T of r.getProperties()){let v=sZe(e,T,n,i,a+1);if(v){let w=v.location;return v.location=`${T.name}${w?`.${w}`:""}`,v}}}}function sZe(e,r,n,i,a){let s=e.getTypeOfSymbolAtLocation(r,n);return y6(e,s,n,i,a)}function cZe(e,r){return r.getElementTypeOfArrayType(e)}var Qye={meta:{type:"problem",docs:{description:"Object destructuring is not recomended 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/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var uZe={"no-use-after-await":Qye,"valid-lexical-scope":Kye},lZe={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error"}}};0&&(module.exports={configs,rules});
|
|
411
|
+
`)}})},w.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},w.prototype.discoverTypings=function(D){var U=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var A=JSON.parse(D);return U.safeList===void 0&&(U.safeList=e.JsTyping.loadSafeList(U.host,e.toPath(A.safeListPath,A.safeListPath,x))),e.JsTyping.discoverTypings(U.host,function(C){return U.logger.log(C)},A.fileNames,e.toPath(A.projectRootPath,A.projectRootPath,x),U.safeList,A.packageNameToTypingLocation,A.typeAcquisition,A.unresolvedImports,A.typesRegistry)})},w}(l),T=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(w){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(w.useCaseSensitiveFileNames&&w.useCaseSensitiveFileNames(),w.getCurrentDirectory()));var D=new i(w),U=e.createLanguageService(D,this.documentRegistry,!1);return new b(this,w,U)}catch(x){throw r(w,x),x}},v.prototype.createClassifierShim=function(w){try{return new _(this,w)}catch(D){throw r(w,D),D}},v.prototype.createCoreServicesShim=function(w){try{var D=new a(w);return new h(this,w,D)}catch(U){throw r(w,U),U}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(w){this._shims.push(w)},v.prototype.unregisterShim=function(w){for(var D=0;D<this._shims.length;D++)if(this._shims[D]===w){delete this._shims[D];return}throw new Error("Invalid operation")},v}();e.TypeScriptServicesFactory=T})(Ir||(Ir={}));(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=Ir.TypeScriptServicesFactory,globalThis.toolsVersion=Ir.versionMajorMinor);typeof gT<"u"&&gT.exports&&(gT.exports=Ir);var Ir;(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,l){return e.factory.updateMethodSignature(i,i.modifiers,p,l,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=140),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,l){return e.factory.updateClassExpression(i,void 0,a,s,u,p,l)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,p){var l=e.factory.createPropertySignature(i,a,s,u);return l.initializer=p,l},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,p,l){var f=e.factory.updatePropertySignature(i,a,s,u,p);return i.initializer!==l&&(f===i&&(f=e.factory.cloneNode(i)),f.initializer=l),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,l){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,p,l):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,l,f){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,p,l,f):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,p,i.equalsGreaterThanToken,l):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,l){return e.factory.updateExportDeclaration(i,a,s,l,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===305?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`."}),e.isTypeAssertion=e.Debug.deprecate(function(i){return i.kind===211},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(i){return e.isMemberName(i)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ir||(Ir={}))});var fZe={};DAe(fZe,{configs:()=>lZe,rules:()=>uZe});module.exports=CAe(fZe);var Xy=V3(pye()),P1=V3(Hye()),nZe=Xy.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),Kye=nZe({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.'}},create(e){var d,b;let n={allowAny:(b=(d=e.options[0])==null?void 0:d.allowAny)!=null?b:!0},i=e.getSourceCode().scopeManager,a=Xy.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),p=new Map,l=[];function f(y){y.references.forEach(_=>{var v,w;let h=_.resolved,T=(v=_.resolved)==null?void 0:v.scope;if(h&&T){let D=(w=h.defs.at(0))==null?void 0:w.type;if(D==="Type"||D==="ImportBinding")return;let U=_.from,x;for(;U&&(x=p.get(U),!x);)U=U.upper;if(U&&x){let A=T.type;if(A==="global")return;let C=s.get(_.identifier);if(A==="module"){let H=u.getSymbolAtLocation(C);if(H&&l.includes(H))return;e.report({messageId:"referencesOutside",node:_.identifier,data:{varName:_.identifier.name,dollarName:x,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let K=T;for(;K&&!p.has(K);)K=K.upper;if(K!==U){let H=iZe(u,C,_.identifier,n);H&&e.report({messageId:"referencesOutside",node:_.identifier,data:{varName:_.identifier.name,dollarName:x,reason:aZe(H)}})}}}}),y.childScopes.forEach(f)}return{CallExpression(y){if(y.callee.type===Xy.AST_NODE_TYPES.Identifier&&y.callee.name.endsWith("$")){let _=y.arguments.at(0);if(_&&_.type===Xy.AST_NODE_TYPES.ArrowFunctionExpression){let h=i.acquire(_);h&&p.set(h,y.callee.name)}}},JSXAttribute(y){let _=y.name,h=_.type===Xy.AST_NODE_TYPES.JSXIdentifier?_.name:_.name.name;if(h.endsWith("$")){let T=y.value;if(T&&T.type===Xy.AST_NODE_TYPES.JSXExpressionContainer){let v=i.acquire(T.expression);v&&p.set(v,h)}}},Program(y){let _=s.get(y);l=u.getExportsOfModule(u.getSymbolAtLocation(_))},"Program:exit"(){f(i.globalScope)}}}});function iZe(e,r,n,i){let a=e.getTypeAtLocation(r);return oZe(e,a,r,n,i)}function aZe(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function oZe(e,r,n,i,a){let s=y6(e,r,n,a,0);if(s){let u=s.location;return u&&(s.location=`${i.name}.${u}`),s}return s}function y6(e,r,n,i,a){if(r.flags&P1.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let u=r.flags&P1.TypeFlags.Any;if(!i.allowAny&&u)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&P1.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&P1.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&P1.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(r.getCallSignatures().length>0)return{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let y of r.types){let _=y6(e,y,n,i,a+1);if(_)return _}return}if((r.flags&P1.TypeFlags.Object)!==0){let y=r.symbol.name;if(r.getProperty("__no_serialize__"))return;let _=cZe(r,e);if(_)return y6(e,_,n,i,a+1);if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||r.getProperty("__brand__QRL__"))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`};if(y==="Promise")return{type:r,typeStr:e.typeToString(r),reason:"is a Promise, which is not serializable"};let h=r.getProperty("prototype");if(h){let T=e.getTypeOfSymbolAtLocation(h,n);if(T.isClass())return{type:T,typeStr:e.typeToString(T),reason:"is a class constructor, which is not serializable"}}if(!y.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 T of r.getProperties()){let v=sZe(e,T,n,i,a+1);if(v){let w=v.location;return v.location=`${T.name}${w?`.${w}`:""}`,v}}}}function sZe(e,r,n,i,a){let s=e.getTypeOfSymbolAtLocation(r,n);return y6(e,s,n,i,a)}function cZe(e,r){return r.getElementTypeOfArrayType(e)}var Qye={meta:{type:"problem",docs:{description:"Object destructuring is not recomended 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/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var uZe={"no-use-after-await":Qye,"valid-lexical-scope":Kye},lZe={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error"}}};0&&(module.exports={configs,rules});
|
|
412
412
|
/*
|
|
413
413
|
* @version 1.4.0
|
|
414
414
|
* @date 2015-10-26
|
package/package.json
CHANGED