0){var c=r(i.slice(0,fi(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,d=void 0;if(u)for(var p=u.length;l0){var S=(t.target.typeParameters||e.emptyArray).length;k=r(i.slice(l,S),s)}if(k){(71===b.kind?b:b.right).typeArguments=void 0}return e.createTypeReferenceNode(b,k)}(t);if(16384&t.flags||3&b){var v=t.symbol?c(t.symbol,s,793064,!1):e.createIdentifier("?");return e.createTypeReferenceNode(v,void 0)}if(!m&&t.aliasSymbol&&Ue(t.aliasSymbol,s.enclosingDeclaration)){var v=f(t.aliasSymbol),x=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(v,x)}if(196608&t.flags){var k=65536&t.flags?et(t.types):t.types,S=r(k,s);if(S&&S.length>0){return e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,S)}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=l(t);return s.symbolStack.pop(),a}return l(t)}(t);if(262144&t.flags){var C=t.type,T=n(C,s);return e.createTypeOperatorNode(T)}if(524288&t.flags){var E=n(t.objectType,s),T=n(t.indexType,s);return e.createIndexedAccessTypeNode(E,T)}e.Debug.fail("Should be unreachable.")}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],u=void 0;if(1&e.getCheckFlags(s))u=Qt(c);else{524384&Rm(c).flags&&(u=Yt(s))}a=r(u,n)}var l=at(s,n),d=e.setEmitFlags(e.createIdentifier(l,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=je(t,n.enclosingDeclaration,r,!1);if(!o||ze(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=Te(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]))}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return 262144&t.flags||!(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?c=[t]:(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)),!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Xy=p(4,"undefined");Xy.declarations=[];var Yy,Qy=p(4,"arguments"),Zy={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+Fy},getTypeCount:function(){return Iy},isUndefinedSymbol:function(e){return e===Xy},isArgumentsSymbol:function(e){return e===Qy},isUnknownSymbol:function(e){return e===ov},getMergedSymbol:Ce,getDiagnostics:hg,getGlobalDiagnostics:vg,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?gu(t,n):lv},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),w(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:or,getPropertyOfType:function(t,n){return Sr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:wr,getSignaturesOfType:Dr,getIndexTypeOfType:Ar,getBaseTypes:on,getBaseTypeOfLiteralType:ks,getWidenedType:js,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Xa(t):lv},getParameterType:Df,getReturnTypeOfSignature:Vr,getNullableType:Ns,getNonNullableType:Ps,typeToTypeNode:$y.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$y.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$y.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?kg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Ig(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Fg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Mg(t):void 0},getExportSymbolOfSymbol:function(e){return Ce(e.exportSymbol||e)},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?Rg(t):lv},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?Bg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:Jg,getRootSymbols:Ug,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?cl(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Yy=r;var i=t?lf(t,n):void 0;return Yy=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,sh),t?ch(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&xd(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?jr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?nh(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=S(t);if(!n.immediateTarget){var r=K(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0)}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:f,getExportsOfModule:ge,getExportsAndPropertiesOfModule:he,getSymbolWalker:e.createGetSymbolWalker(Hr,Vr,on,nr,qt,ac,Er,oi,Qm),getAmbientModules:Dy,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Vl(t):void 0},getJsxIntrinsicTagNames:Yl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Mr(t)},tryGetMemberInModuleExports:function(t,n){return ye(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return Fr(e,!1)},getApparentType:vr,getUnionType:pa,createAnonymousType:Re,createSignature:Mn,createSymbol:p,createIndexInfo:ri,getAnyType:function(){return cv},getStringType:function(){return mv},getNumberType:function(){return gv},createPromiseType:Pf,createArrayType:Qi,getBooleanType:function(){return vv},getVoidType:function(){return xv},getUndefinedType:function(){return dv},getNullType:function(){return _v},getESSymbolType:function(){return bv},getNeverType:function(){return kv},isSymbolAccessible:Ke,isArrayLikeType:ys,getAllPossiblePropertiesOfTypes:sr,getSuggestionForNonexistentProperty:function(e,t){return hd(e,t)},getSuggestionForNonexistentSymbol:function(t,n,r){return yd(t,e.escapeLeadingUnderscores(n),r)},getBaseConstraintOfType:dr,resolveName:function(t,n,r){return N(n,e.escapeLeadingUnderscores(t),r,void 0,void 0,!1)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},ev=[],tv=e.createMap(),nv=e.createMap(),rv=e.createMap(),iv=e.createMap(),av=[],ov=p(4,"unknown"),sv=p(0,"__resolving__"),cv=Pe(1,"any"),uv=Pe(1,"any"),lv=Pe(1,"unknown"),dv=Pe(2048,"undefined"),fv=qy?dv:Pe(2099200,"undefined"),_v=Pe(4096,"null"),pv=qy?_v:Pe(2101248,"null"),mv=Pe(2,"string"),gv=Pe(4,"number"),hv=Pe(128,"true"),yv=Pe(128,"false"),vv=function(e){var t=pa(e);return t.flags|=8,t.intrinsicName="boolean",t}([hv,yv]),bv=Pe(512,"symbol"),xv=Pe(1024,"void"),kv=Pe(8192,"never"),Sv=Pe(8192,"never"),Cv=Pe(16777216,"object"),Dv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Tv=p(2048,"__type");Tv.members=e.createSymbolTable();var Ev=Re(Tv,Ly,e.emptyArray,e.emptyArray,void 0,void 0),wv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0);wv.instantiations=e.createMap();var Av=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0);Av.flags|=8388608;var Nv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Pv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Ov=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Iv=Ne(16384),Fv=Ne(16384);Fv.constraint=Iv;var Mv,Rv,Lv,Bv,jv,zv,Jv,Uv,Kv,qv,Vv,Wv,Hv,Gv,$v,Xv,Yv,Qv,Zv,eb,tb,nb,rb,ib,ab,ob,sb,cb,ub,lb,db,fb,_b,pb=Ne(16384),mb=Mn(void 0,void 0,void 0,e.emptyArray,cv,void 0,0,!1,!1),gb=Mn(void 0,void 0,void 0,e.emptyArray,lv,void 0,0,!1,!1),hb=Mn(void 0,void 0,void 0,e.emptyArray,cv,void 0,0,!1,!1),yb=Mn(void 0,void 0,void 0,e.emptyArray,Sv,void 0,0,!1,!1),vb=ri(mv,!0),bb=ri(cv,!1),xb=e.createSymbolTable(),kb=0,Sb=0,Cb=0,Db=!1,Tb=Va(""),Eb=Va(0),wb=[],Ab=[],Nb=[],Pb=0,Ob=10,Ib=[],Fb=[],Mb=[],Rb=[],Lb=[],Bb=[],jb=[],zb=[],Jb=[],Ub=[],Kb=[],qb=[],Vb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(_b||(_b={}));var Wb,Hb,Gb,$b,Xb,Yb,Qb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Zb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),ex=e.createMapFromTemplate({string:mv,number:gv,boolean:vv,symbol:bv,undefined:dv}),tx=function(){return pa(e.arrayFrom(Qb.keys(),Va))}(),nx=!1,rx=!1,ix=e.createUnderscoreEscapedMap(),ax={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},ox=e.createMap(),sx=e.createMap(),cx=e.createMap(),ux=e.createMap(),lx=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(Yb||(Yb={}));var dx;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential"}(dx||(dx={}));var fx;!function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(fx||(fx={}));var _x=e.createSymbolTable();_x.set(Xy.escapedName,Xy);var px=e.and(dg,lg);return function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u)}s>0&&(a.length-=s)}}function ta(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function na(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=ra(n,e.emitNode))}return e}function ra(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=ia(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function ia(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var aa=0;e.createTempVariable=d,e.createLoopVariable=f,e.createUniqueName=_,e.getGeneratedNameForNode=p,e.createToken=m,e.createSuper=g,e.createThis=h,e.createNull=y,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=k,e.createComputedPropertyName=S,e.updateComputedPropertyName=C,e.createTypeParameterDeclaration=D,e.updateTypeParameterDeclaration=T,e.createParameter=E,e.updateParameter=w,e.createDecorator=A,e.updateDecorator=N,e.createPropertySignature=P,e.updatePropertySignature=O,e.createProperty=I,e.updateProperty=F,e.createMethodSignature=M,e.updateMethodSignature=R,e.createMethod=L,e.updateMethod=B,e.createConstructor=j,e.updateConstructor=z,e.createGetAccessor=J,e.updateGetAccessor=U,e.createSetAccessor=K,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=W,e.createConstructSignature=H,e.updateConstructSignature=G,e.createIndexSignature=$,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=de,e.createArrayTypeNode=fe,e.updateArrayTypeNode=_e,e.createTupleTypeNode=pe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=he,e.createIntersectionTypeNode=ye,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=ke,e.updateParenthesizedType=Se,e.createThisTypeNode=Ce,e.createTypeOperatorNode=De,e.updateTypeOperatorNode=Te,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=we,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=Ne,e.createLiteralTypeNode=Pe,e.updateLiteralTypeNode=Oe,e.createObjectBindingPattern=Ie,e.updateObjectBindingPattern=Fe,e.createArrayBindingPattern=Me,e.updateArrayBindingPattern=Re,e.createBindingElement=Le,e.updateBindingElement=Be,e.createArrayLiteral=je,e.updateArrayLiteral=ze,e.createObjectLiteral=Je,e.updateObjectLiteral=Ue,e.createPropertyAccess=Ke,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=We,e.createCall=He,e.updateCall=Ge,e.createNew=$e,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=dt,e.updateVoid=ft,e.createAwait=_t,e.updateAwait=pt,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=ht,e.updatePostfix=yt,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=kt,e.createTemplateExpression=St,e.updateTemplateExpression=Ct,e.createTemplateHead=Dt,e.createTemplateMiddle=Tt,e.createTemplateTail=Et,e.createNoSubstitutionTemplateLiteral=wt,e.createYield=At,e.updateYield=Nt,e.createSpread=Pt,e.updateSpread=Ot,e.createClassExpression=It,e.updateClassExpression=Ft,e.createOmittedExpression=Mt,e.createExpressionWithTypeArguments=Rt,e.updateExpressionWithTypeArguments=Lt,e.createAsExpression=Bt,e.updateAsExpression=jt,e.createNonNullExpression=zt,e.updateNonNullExpression=Jt,e.createMetaProperty=Ut,e.updateMetaProperty=Kt,e.createTemplateSpan=qt,e.updateTemplateSpan=Vt,e.createSemicolonClassElement=Wt,e.createBlock=Ht,e.updateBlock=Gt,e.createVariableStatement=$t,e.updateVariableStatement=Xt,e.createEmptyStatement=Yt,e.createStatement=Qt,e.updateStatement=Zt,e.createIf=en,e.updateIf=tn,e.createDo=nn,e.updateDo=rn,e.createWhile=an,e.updateWhile=on,e.createFor=sn,e.updateFor=cn,e.createForIn=un,e.updateForIn=ln,e.createForOf=dn,e.updateForOf=fn,e.createContinue=_n,e.updateContinue=pn,e.createBreak=mn,e.updateBreak=gn,e.createReturn=hn,e.updateReturn=yn,e.createWith=vn,e.updateWith=bn,e.createSwitch=xn,e.updateSwitch=kn,e.createLabel=Sn,e.updateLabel=Cn,e.createThrow=Dn,e.updateThrow=Tn,e.createTry=En,e.updateTry=wn,e.createDebuggerStatement=An,e.createVariableDeclaration=Nn,e.updateVariableDeclaration=Pn,e.createVariableDeclarationList=On,e.updateVariableDeclarationList=In,e.createFunctionDeclaration=Fn,e.updateFunctionDeclaration=Mn,e.createClassDeclaration=Rn,e.updateClassDeclaration=Ln,e.createInterfaceDeclaration=Bn,e.updateInterfaceDeclaration=jn,e.createTypeAliasDeclaration=zn,e.updateTypeAliasDeclaration=Jn,e.createEnumDeclaration=Un,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=qn,e.updateModuleDeclaration=Vn,e.createModuleBlock=Wn,e.updateModuleBlock=Hn,e.createCaseBlock=Gn,e.updateCaseBlock=$n,e.createNamespaceExportDeclaration=Xn,e.updateNamespaceExportDeclaration=Yn;e.createImportEqualsDeclaration=Qn,e.updateImportEqualsDeclaration=Zn,e.createImportDeclaration=er,e.updateImportDeclaration=tr,e.createImportClause=nr,e.updateImportClause=rr,e.createNamespaceImport=ir,e.updateNamespaceImport=ar,e.createNamedImports=or,e.updateNamedImports=sr,e.createImportSpecifier=cr,e.updateImportSpecifier=ur,e.createExportAssignment=lr,e.updateExportAssignment=dr,e.createExportDeclaration=fr,e.updateExportDeclaration=_r,e.createNamedExports=pr,e.updateNamedExports=mr,e.createExportSpecifier=gr,e.updateExportSpecifier=hr,e.createExternalModuleReference=yr,e.updateExternalModuleReference=vr,e.createJsxElement=br,e.updateJsxElement=xr,e.createJsxSelfClosingElement=kr,e.updateJsxSelfClosingElement=Sr,e.createJsxOpeningElement=Cr,e.updateJsxOpeningElement=Dr,e.createJsxClosingElement=Tr,e.updateJsxClosingElement=Er,e.createJsxAttribute=wr,e.updateJsxAttribute=Ar,e.createJsxAttributes=Nr,e.updateJsxAttributes=Pr,e.createJsxSpreadAttribute=Or,e.updateJsxSpreadAttribute=Ir,e.createJsxExpression=Fr,e.updateJsxExpression=Mr,e.createCaseClause=Rr,e.updateCaseClause=Lr,e.createDefaultClause=Br,e.updateDefaultClause=jr,e.createHeritageClause=zr,e.updateHeritageClause=Jr,e.createCatchClause=Ur,e.updateCatchClause=Kr,e.createPropertyAssignment=qr,e.updatePropertyAssignment=Vr,e.createShorthandPropertyAssignment=Wr,e.updateShorthandPropertyAssignment=Hr,e.createSpreadAssignment=Gr,e.updateSpreadAssignment=$r,e.createEnumMember=Xr,e.updateEnumMember=Yr,e.updateSourceFileNode=Qr,e.getMutableClone=Zr,e.createNotEmittedStatement=ei,e.createEndOfDeclarationMarker=ti,e.createMergeDeclarationMarker=ni,e.createPartiallyEmittedExpression=ri,e.updatePartiallyEmittedExpression=ii,e.createCommaList=oi,e.updateCommaList=si,e.createBundle=ci,e.updateBundle=ui,e.createImmediatelyInvokedFunctionExpression=li,e.createImmediatelyInvokedArrowFunction=di,e.createComma=fi,e.createLessThan=_i,e.createAssignment=pi,e.createStrictEquality=mi,e.createStrictInequality=gi,e.createAdd=hi,e.createSubtract=yi,e.createPostfixIncrement=vi,e.createLogicalAnd=bi,e.createLogicalOr=xi,e.createLogicalNot=ki,e.createVoidZero=Si,e.createExportDefault=Ci,e.createExternalModuleExport=Di,e.disposeEmitNodes=Ni,e.getOrCreateEmitNode=Pi,e.setTextRange=Oi,e.setEmitFlags=Ii,e.addEmitFlags=Fi,e.getSourceMapRange=Mi,e.setSourceMapRange=Ri;var oa;e.createSourceMapSource=Li,e.getTokenSourceMapRange=Bi,e.setTokenSourceMapRange=ji,e.getCommentRange=zi,e.setCommentRange=Ji,e.getSyntheticLeadingComments=Ui,e.setSyntheticLeadingComments=Ki,e.addSyntheticLeadingComment=qi,e.getSyntheticTrailingComments=Vi,e.setSyntheticTrailingComments=Wi,e.addSyntheticTrailingComment=Hi,e.getConstantValue=Gi,e.setConstantValue=$i,e.addEmitHelper=Xi,e.addEmitHelpers=Yi,e.removeEmitHelper=Qi,e.getEmitHelpers=Zi,e.moveEmitHelpers=ea,e.compareEmitHelpers=ta,e.setOriginalNode=na}(o||(o={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.idText(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.idText(t),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function d(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,d=a;u0;default:return!0}}function b(t,n,r,i){var a,o,s=_e(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t)}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function k(t){if(e.isQualifiedName(t)){var n=k(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function C(e,t,n){switch(t.kind){case 153:case 154:return D(e.properties,t,n,e.multiLine);case 261:return T(t,n);case 262:return E(t,n);case 151:return w(t,n)}}function D(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var d=e.createPropertyAssignment("get",l);u.push(d)}if(c){var f=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(f,c),e.setOriginalNode(f,c);var _=e.createPropertyAssignment("set",f);u.push(_)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var p=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,S(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(p)}}function T(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function w(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function N(t){return 0!=(32768&e.getEmitFlags(t))}function P(e,t,n){return R(e,t,n,16384)}function O(t){return 0!=(16384&e.getEmitFlags(t))}function I(e,t,n){return R(e,t,n,8192)}function F(t){return 0!=(8192&e.getEmitFlags(t))}function M(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function L(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):I(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function j(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function z(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function U(e,t,n,r){return q(e,t,K(e,t,n),r)}function K(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),ye(t,a,4)}}var o=le(n,!1).kind;return 178===o||186===o?e.setTextRange(e.createParen(t),t):t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=_;var je={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=p;var ze={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=h,e.restoreEnclosingLabel=y,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=k,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=C,e.getInternalName=A,e.isInternalName=N,e.getLocalName=P,e.isLocalName=O,e.getExportName=I,e.isExportName=F,e.getDeclarationName=M,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=j,e.convertFunctionDeclarationToExpression=z,e.addPrologue=U,e.addStandardPrologue=K,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=W,e.parenthesizeBinaryOperand=H,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=de;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=fe,e.skipOuterExpressions=_e,e.skipParentheses=pe,e.skipAssertions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=ve,e.getExternalHelpersModuleName=be,e.getOrCreateExternalHelpersModuleNameIfNeeded=xe,e.getLocalNameForExternalImport=ke,e.getExternalModuleNameLiteral=Se,e.tryGetModuleNameFromFile=De,e.getInitializerOfBindingOrAssignmentElement=Ee,e.getTargetOfBindingOrAssignmentElement=we,e.getRestIndicatorOfBindingOrAssignmentElement=Ae,e.getPropertyNameOfBindingOrAssignmentElement=Ne,e.getElementsOfBindingOrAssignmentPattern=Pe,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Ie,e.convertToAssignmentPattern=Fe,e.convertToObjectAssignmentPattern=Me,e.convertToArrayAssignmentPattern=Re,e.convertToAssignmentElementTarget=Le}(o||(o={}));var o;!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&d<=142||169===d)return o;switch(d){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.equalsGreaterThanToken,s,e.isToken),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.questionToken,s,e.isToken),t(o.whenTrue,s,e.isExpression),t(o.colonToken,s,e.isToken),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o}(o||(o={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l)}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return f.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&p.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(p).transformFlags||e.isComputedPropertyName(h)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i),d=void 0);var g=s(t,a,h);e.isComputedPropertyName(h)&&(f=e.append(f,g.argumentExpression)),r(t,p,g,p)}else d=e.append(d,p)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i)}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;if(t.level<1&&t.downlevelIteration)a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o);else if(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression)){var l=!e.isDeclarationBindingElement(n)||0!==u;a=c(t,a,l,o)}for(var d,f,_=0;_=1)if(1048576&p.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),f=e.append(f,[m,p]),d=e.append(d,t.createArrayBindingOrAssignmentElement(m))}else d=e.append(d,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(_===u-1){var g=e.createArraySlice(a,_);r(t,p,g,p)}}else{var g=e.createElementAccess(a,_);r(t,p,g,p)}}}if(d&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(d),a,o,i),f)for(var h=0,y=f;h=e.ModuleKind.ES2015);return e.updateSourceFileNode(n,e.visitLexicalEnvironment(n.statements,d,t,0,r))}function x(t){if(t.decorators&&t.decorators.length>0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,k)}function k(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;e.some(n)&&(r|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(r|=64),x(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),mt(t)?r|=8:yt(t)?r|=32:ht(t)&&(r|=16),Qt<=1&&7&r&&(r|=128),r}function C(n){var r=R(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?T(n,a,i):D(n,a,i),s=[o];if(1&i&&z(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),ee(s,n,!1),ee(s,n,!0),re(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(nn.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var d=e.createReturn(l);d.pos=c.pos,e.setEmitFlags(d,1920),s.push(d),e.addRange(s,t.endLexicalEnvironment());var f=e.createImmediatelyInvokedArrowFunction(s);e.setEmitFlags(f,33554432);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,f)]));e.setOriginalNode(_,n),e.setCommentRange(_,n),e.setSourceMapRange(_,e.moveRangePastDecorators(n)),e.startOnNewLine(_),s=[_]}return 8&i?bt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function D(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),w(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function T(t,n,r){var i=e.moveRangePastDecorators(t),a=Tt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=w(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(d,t),e.setTextRange(d,i),e.setCommentRange(d,t),d}function E(t){var n=R(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=w(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Gt);return 8388608&$t.getNodeCheckFlags(t)&&(Nt(),un[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,J(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function w(t,n){var r=[],i=A(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,g,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function A(n,r){var i=e.forEach(n.members,B),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=N(o),c=P(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function N(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function P(t,n,r){var i=[],a=0;if(Wt(),n){a=O(n,i);var o=I(n);e.addRange(i,e.map(o,M))}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return z(i,R(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,Ht()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function I(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function M(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function R(t,n){return e.filter(t.members,n?L:B)}function L(e){return j(e,!0)}function B(e){return j(e,!1)}function j(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function z(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,l=n(t,o,s,c,u,e.moveRangePastDecorators(i));return e.setEmitFlags(l,1536),l}}function re(t,n){var r=ie(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n))}function ie(r){var i=G(r),a=Z(r,r,i);if(a){var o=un&&un[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=n(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}function ae(t){return e.visitNode(t.expression,u,e.isExpression)}function oe(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(o||(o={}));var o;!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike),o=a.type,s=w<2?f(o):void 0,c=187===r.kind,u=0!=(8192&T.getNodeCheckFlags(r));if(c){var l=n(t,u,s,d(r.body)),p=D();if(e.some(p)){var m=e.convertToFunctionBody(l);return e.updateBlock(m,e.setTextRange(e.createNodeArray(e.concatenate(m.statements,p)),m.statements))}return l}var g=[],h=e.addPrologue(g,r.body.statements,!1,i);g.push(e.createReturn(n(t,u,s,d(r.body,h)))),e.addRange(g,D());var m=e.createBlock(g,!0);return e.setTextRange(m,r.body),w>=2&&(4096&T.getNodeCheckFlags(r)?(_(),e.addEmitHelper(m,e.advancedAsyncSuperHelper)):2048&T.getNodeCheckFlags(r)&&(_(),e.addEmitHelper(m,e.asyncSuperHelper))),m}function d(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));S();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function f(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=T.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function _(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152))}function p(e,t,n){if(1&k&&b(t)){var r=6144&T.getNodeCheckFlags(t);if(r!==A){var i=A;return A=r,N(e,t,n),void(A=i)}}N(e,t,n)}function m(e,t){return t=P(e,t),1===e&&A?g(t):t}function g(e){switch(e.kind){case 179:return h(e);case 180:return y(e);case 181:return v(e)}return e}function h(t){return 97===t.expression.kind?x(e.createLiteral(e.idText(t.name)),t):t}function y(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?h(n):y(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&A?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var k,S=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,T=t.getEmitResolver(),E=t.getCompilerOptions(),w=e.getEmitScriptTarget(E),A=0,N=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=p,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "}}(o||(o={}));var o;!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return d(e,!1)}function u(e){return d(e,!0)}function l(e){if(120!==e.kind)return e}function d(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return f(n);case 197:return _(n);case 222:return p(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return C(n,void 0);case 214:return k(n);case 190:return S(n);case 152:return N(n);case 151:return I(n);case 153:return P(n);case 154:return O(n);case 228:return F(n);case 186:return R(n);case 187:return M(n);case 146:return A(n);case 210:return h(n);case 185:return y(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function f(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function _(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?C(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(z(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(z(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){$();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,j(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function j(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(f),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},d={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},f={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '}}(o||(o={}));var o;!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return _(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=y(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var f=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(u[0])&&f.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(f),s||(s=e.createAssignHelper(t,f))}var _=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(_),_}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function d(t){var n=v(t),r=f(t.initializer);return e.createPropertyAssignment(n,r)}function f(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=h(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t)}function _(t){var n=p(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function p(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=P(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(Ft|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&N(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Tt()),t&&K(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function N(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return N(n.thenStatement)&&N(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&N(r))return!0}return!1}function P(t,n,r,i,a){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(I())),2;if(i)return U(t,n,I()),pt(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576))}function B(t,n,r,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a)}function j(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function z(t,n,r){var i=e.lastOrUndefined(n.parameters);if(j(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&U(t,n,e.createThis())}function U(t,n,r,i){pt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a)}function K(t,n,r){if(16384&Ft){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n)}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a)}return t}function q(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var d=n.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(d,u,Ot)?s=!0:o=!0);var f=e.visitNode(u,l,e.isExpression),_=e.createReturn(f);e.setTextRange(_,u),e.setEmitFlags(_,1440),c.push(_),i=u}var p=t.endLexicalEnvironment();e.addRange(c,p),K(c,n,!1),!o&&p&&p.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function ee(n){var r=e.visitFunctionBody(n.body,d,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(K(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var i=256&Ft?o(4032,512):o(3904,128),a=e.visitEachChild(n,l,t);return s(i,0,0),a}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function ie(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ae(n){var r,i=o(0,e.hasModifier(n,1)?32:0);if(Rt&&0==(3&n.declarationList.flags)){for(var a=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}function xt(t){return 1&Lt&&16&Ft?e.setTextRange(e.createIdentifier("_this"),t):t}function kt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function St(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Ct=t.startLexicalEnvironment,Dt=t.resumeLexicalEnvironment,Tt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,wt=t.getCompilerOptions(),At=t.getEmitResolver(),Nt=t.onSubstituteNode,Pt=t.onEmitNode;t.onEmitNode=ft,t.onSubstituteNode=mt;var Ot,It,Ft,Mt,Rt,Lt;return a}function n(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}function r(t,n,r){return t.requestEmitHelper(l),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[n,r])}var i;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(i||(i={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(a||(a={}));var o;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(o||(o={}));var s;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(s||(s={}));var c;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(c||(c={})),e.transformES2015=t;var u={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},l={name:"typescript:makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'}}(o||(o={}));var o;!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0}c(t,n,r)}function i(t,n){return n.id&&u&&u[n.id]?d(t,n):(n=d(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var d=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t}(o||(o={}));var o;!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}function a(t){var r=t.transformFlags;return Ft?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return z(e);case 213:return U(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return d(t);case 153:case 154:return f(t);case 208:return p(t);case 214:return q(t);case 215:return W(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return k(t);case 197:return S(t);case 177:return C(t);case 178:return T(t);case 180:return E(t);case 181:return w(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return d(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,_(t.body)),t),t);else{var r=It,i=Ft;It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i}return It?void Dt(t):t}function d(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,_(t.body)),t),t);else{var r=It,i=Ft;It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i}return t}function f(t){var r=It,i=Ft;return It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i,t}function _(t){var n=[],r=It,i=Ft,o=Mt,s=Rt,c=Lt,u=Bt,l=jt,d=zt,f=Zt,_=Jt,p=Ut,m=Kt,g=qt;It=!0,Ft=!1,Mt=void 0,Rt=void 0,Lt=void 0,Bt=void 0,jt=void 0,zt=void 0,Zt=1,Jt=void 0,Ut=void 0,Kt=void 0,qt=e.createTempVariable(void 0),St();var h=e.addPrologue(n,t.statements,!1,a);N(t.statements,h);var y=rt();return e.addRange(n,Ct()),n.push(e.createReturn(y)),It=r,Ft=i,Mt=o,Rt=s,Lt=c,Bt=u,jt=l,zt=d,Zt=f,Jt=_,Ut=p,Kt=m,qt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function p(t){if(16777216&t.transformFlags)return void R(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function h(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function y(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,de(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,de(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),de(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression)}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(de(o),h(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=de(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=_e(),r=fe();return He(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):$e(n,r,t.left),He(r,e.visitNode(t.right,a,e.isExpression),t.right),pe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)))}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function k(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=_e(),i=_e(),o=fe();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),He(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),pe(r),He(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),pe(i),o}return e.visitEachChild(t,a,n)}function S(t){var r=_e(),i=e.visitNode(t.expression,a,e.isExpression);if(t.asteriskToken){Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t)}else Qe(i,t);return pe(r),qe(t)}function C(e){return D(e.elements,void 0,void 0,e.multiLine)}function D(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=fe()),He(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[]}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=fe();var u=e.visitNodes(t,a,e.isExpression,0,c);He(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function T(t){function n(n,r){oe(r)&&n.length>0&&(We(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=fe();He(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=de(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function w(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Tt,wt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(de(e.visitNode(i,a,e.isLeftHandSideExpression)),o,D(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Tt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(de(e.visitNode(i,a,e.isExpression)),o,D(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function N(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0)break;u.push(L(i))}u.length&&(We(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=_e(),r=t.elseStatement?_e():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Ge(n),pe(r),P(t.elseStatement)),pe(n)}else We(e.visitNode(t,a,e.isStatement));else We(e.visitNode(t,a,e.isStatement))}function j(t){if(oe(t)){var n=_e(),r=_e();Te(n),pe(r),P(t.statement),pe(n),$e(r,e.visitNode(t.expression,a,e.isExpression)),Ee()}else We(e.visitNode(t,a,e.isStatement))}function z(t){return Ft?(De(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=_e(),r=Te(n);pe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),P(t.statement),Ge(n),Ee()}else We(e.visitNode(t,a,e.isStatement))}function U(t){return Ft?(De(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function K(t){if(oe(t)){var n=_e(),r=_e(),i=Te(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):We(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o))}pe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),P(t.statement),pe(r),t.incrementor&&We(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee()}else We(e.visitNode(t,a,e.isStatement))}function q(t){Ft&&De();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,a,n);return Ft&&Ee(),t}function V(t){if(oe(t)){var n=fe(),r=fe(),i=e.createLoopVariable(),o=t.initializer;Tt(i),He(n,e.createArrayLiteral()),We(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),He(i,e.createLiteral(0));var s=_e(),c=_e(),u=Te(c);pe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var d=0,f=o.declarations;d0?Ge(n,t):We(t)}function G(t){if(Ft){var r=je(t.label&&e.idText(t.label));if(r>0)return Ue(r,t)}return e.visitEachChild(t,a,n)}function $(t){var n=Be(t.label?e.idText(t.label):void 0);n>0?Ge(n,t):We(t)}function X(t){if(Ft){var r=Be(t.label&&e.idText(t.label));if(r>0)return Ue(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t)}function Q(t){return Ke(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(de(e.visitNode(t.expression,a,e.isExpression))),P(t.statement),be()):We(e.visitNode(t,a,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=de(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;f.push(e.createCaseClause(e.visitNode(p.expression,a,e.isExpression),[Ue(s[u],p.expression)]))}else _++}f.length&&(We(e.createSwitch(o,e.createCaseBlock(f))),d+=f.length,f=[]),_>0&&(d+=_,_=0)}Ge(c>=0?s[c]:i);for(var u=0;u=0;n--){var r=Bt[n];if(!Me(r))break;if(r.labelText===e)return!0}return!1}function Be(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Me(n)&&n.labelText===e)return n.breakLabel;if(Fe(n)&&Le(e,t-1))return n.breakLabel}else for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Fe(n))return n.breakLabel}return 0}function je(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Re(n)&&Le(e,t-1))return n.continueLabel}else for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Re(n))return n.continueLabel}return 0}function ze(t){if(t>0){void 0===zt&&(zt=[]);var n=e.createLiteral(-1);return void 0===zt[t]?zt[t]=[n]:zt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function Ue(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),ze(t)])),n)}function Ke(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(qt,"sent"),void 0,[]),t)}function Ve(){nt(0)}function We(e){e?nt(1,[e]):Ve()}function He(e,t,n){nt(2,[e,t],n)}function Ge(e,t){nt(3,[e],t)}function $e(e,t,n){nt(4,[e,t],n)}function Xe(e,t,n){nt(5,[e,t],n)}function Ye(e,t){nt(7,[e],t)}function Qe(e,t){nt(6,[e],t)}function Ze(e,t){nt(8,[e],t)}function et(e,t){nt(9,[e],t)}function tt(){nt(10)}function nt(e,t,n){void 0===Jt&&(Jt=[],Ut=[],Kt=[]),void 0===jt&&pe(_e());var r=Jt.length;Jt[r]=e,Ut[r]=t,Kt[r]=n}function rt(){en=0,tn=0,Vt=void 0,Wt=!1,Ht=!1,Gt=void 0,$t=void 0,Xt=void 0,Yt=void 0,Qt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,qt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(Jt){for(var t=0;t=0;n--){var r=Qt[n];$t=[e.createWith(r.expression,e.createBlock($t))]}if(Yt){var i=Yt.startLabel,a=Yt.catchLabel,o=Yt.finallyLabel,s=Yt.endLabel;$t.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(qt,"trys"),"push"),void 0,[e.createArrayLiteral([ze(i),ze(a),ze(o),ze(s)])]))),Yt=void 0}t&&$t.push(e.createStatement(e.createAssignment(e.createPropertyAccess(qt,"label"),e.createLiteral(tn+1))))}Gt.push(e.createCaseClause(e.createLiteral(tn),$t||[])),$t=void 0}function ut(e){if(jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'}}(o||(o={}));var o;!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||ee.isolatedModules||67108864&t.transformFlags))return t;se=t,ce=e.collectExternalModuleInfo(t,te,ee),de[e.getOriginalNodeId(t)]=ce;var n=a(ie),r=n(t);return se=void 0,ce=void 0,le=!1,e.aggregateTransformFlags(r)}function s(){return!(ce.exportEquals||!e.isExternalModule(se))}function c(n){Y();var i=[],a=ee.alwaysStrict||!ee.noImplicitUseStrict&&e.isExternalModule(se),o=e.addPrologue(i,n.statements,a,p);s()&&e.append(i,j()),e.append(i,e.visitNode(ce.externalHelpersImportDeclaration,p,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,p,e.isStatement,o)),_(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return ce.hasExportStarsToExportValues&&!ee.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,ne,ee),i=d(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,f(t))])))]),t.statements))}function l(t){var n=d(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.tryGetModuleNameFromFile(t,ne,ee),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,(o?[o]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")])))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(s,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,f(t))]))]),t.statements))}function d(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?r=e.createArrowFunction(void 0,void 0,o,void 0,void 0,s):(r=e.createFunctionExpression(void 0,void 0,void 0,void 0,o,void 0,s),n&&e.setEmitFlags(r,8)),e.createNew(e.createIdentifier("Promise"),void 0,[r])}function v(t,n){var r,i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),a=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return re>=2?r=e.createArrowFunction(void 0,void 0,[],void 0,void 0,a):(r=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(a)])),n&&e.setEmitFlags(r,8)),e.createCall(e.createPropertyAccess(i,"then"),void 0,[r])}function b(t){var n,r=e.getNamespaceDeclarationNode(t);if(ie!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(x(t)),t);var i=[];r&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,x(t))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,x(t))),r&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)))),n=e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,re>=2?2:0)),t))}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],re>=2?2:0))));if(N(t)){var a=e.getOriginalNodeId(t);fe[a]=O(fe[a],t)}else n=O(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,se,ne,te,ee),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function k(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(ie!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],re>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),N(t)){var r=e.getOriginalNodeId(t);fe[r]=I(fe[r],t)}else n=I(n,t);return e.singleOrMany(n)}function S(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];ie!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);S?S.push(n):S=[n]}function m(t){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),C?C.push(t):C=[t]}function g(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended."),E[A]=S,w[A]=C,A++,S=void 0,C=void 0}function h(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is already suspended."),N=!0}function y(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(N,"Lexical environment is not suspended."),N=!1}function v(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended.");var t;if((S||C)&&(C&&(t=C.slice()),S)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(S));t?t.push(n):t=[n]}return A--,S=E[A],C=w[A],0===A&&(E=[],w=[]),t}function b(t){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),D=e.append(D,t)}function x(){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed.");var t=D;return D=void 0,t}function k(){if(I<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,k.sourceMapDecodedMappings.push(b)}}function u(t){if(!D&&!e.positionIsSynthesized(t)){C&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===y&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:y}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=y),C&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function l(e,t,n){if(D)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,d=o&&o.source,_=m;d===_&&(d=void 0),d&&f(d),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),d&&f(_),64&i?(D=!0,n(e,t),D=!1):n(e,t),d&&f(d),287!==t.kind&&0==(32&i)&&l>=0&&u(l),d&&f(_)}}function d(e,t,n,r){if(D)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function f(n){if(!D){m=n,g=m.text;var r=S.sourceRoot?t.getCommonSourceDirectory():h,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);y=e.indexOf(k.sourceMapSources,i),-1===y&&(y=k.sourceMapSources.length,k.sourceMapSources.push(i),k.inputSourceFileNames.push(m.fileName),S.inlineSources&&k.sourceMapSourcesContent.push(m.text))}}function _(){if(!D)return c(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function p(){if(!D){if(S.inlineSourceMap){var t=e.convertToBase64(_());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}var m,g,h,y,v,b,x,k,S=t.getCompilerOptions(),C=S.extendedDiagnostics,D=!(S.sourceMap||S.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return k},setSourceFile:f,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:d,getText:_,getSourceMappingURL:p}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;e>>=5,e>0&&(r|=32),t+=n(r)}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(o||(o={}));var o;!function(e){function t(t,n){function r(t,n,r){if(z)return void r(t,n);if(n){j=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{F&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,f=c<0||0!=(512&o)||10===n.kind,_=u<0||0!=(1024&o)||10===n.kind;f||d(c,l);var p=R,g=L,h=B;f||(R=c),_||(L=u,227===n.kind&&(B=u)),F&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),F&&e.performance.mark("postEmitNodeWithComment"),R=p,L=g,B=h,!_&&l&&m(u),F&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(F&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),F&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(F&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),F&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ")}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine()}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,M)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(z=!0,r(e,t),z=!1):r(e,t)}function l(t,n,r){F&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=z||a<0||0!=(1024&o);s||T(n),F&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!z?(z=!0,r(t),z=!1):r(t),F&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(d(n.end,!0),j&&!A.isAtStartOfLine()&&A.writeLine()),F&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function d(e,t){j=!1,t?v(e,_):0===e&&v(e,f)}function f(e,t,n,r,i){w(e,t)&&_(e,t,n,r,i)}function _(t,r,i,a,o){j||(e.emitNewLineBeforeLeadingCommentOfPosition(O,A,o,t),j=!0),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a?A.writeLine():A.write(" ")}function p(e){z||-1===e||d(e,!0)}function m(e){b(e,g)}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a&&A.writeLine()}function h(t,n){z||(F&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:y),F&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function y(t,r,i,a){n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a?A.writeLine():A.write(" ")}function v(t,n){-1!==R&&t===R||(C(t)?D(n):e.forEachLeadingCommentRange(P,t,n,t))}function b(t,n){(-1===L||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,n)}function x(){N=void 0,P=void 0,O=void 0,I=void 0}function k(e){A=e}function S(t){N=t,P=N.text,O=e.getLineStarts(N),I=void 0}function C(t){return void 0!==I&&e.lastOrUndefined(I).nodePos===t}function D(t){var n=e.lastOrUndefined(I).detachedCommentEndPos;I.length-1?I.pop():I=void 0,e.forEachLeadingCommentRange(P,n,t,n)}function T(t){var n=e.emitDetachedComments(P,O,A,E,t,M,z);n&&(I?I.push(n):I=[n])}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o)}function w(t,n){return e.isRecognizedTripleSlashComment(P,t,n)}var A,N,P,O,I,F=t.extendedDiagnostics,M=e.getNewLineCharacter(t),R=-1,L=-1,B=-1,j=!1,z=t.removeComments;return{reset:x,setWriter:k,setSourceFile:S,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:h,emitLeadingCommentsOfPosition:p}}e.createCommentWriter=t}(o||(o={}));var o;!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1)}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(t){var n=be.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t)}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=p,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t)}function l(e){_e=e,ce=e.write,fe=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,de=e.decreaseIndent}function d(t){var n=_e;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Pe,function(e){return e.node===n?e:void 0});if(!r&&De&&(r=e.forEach(De,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===De),De=[]),P(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=De,De=void 0),r.asynchronousOutput=_e.getText()}}),l(n)}function f(t){if(t){Te||(Te=e.createMap());for(var n=0,r=t;n")))}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,C),ce(">"))}(t);case 162:return function(e){ce("typeof "),i(e.exprName)}(t);case 164:return function(e){C(e.elementType),ce("[]")}(t);case 165:return function(e){ce("["),x(e.elementTypes,C),ce("]")}(t);case 166:return function(e){b(e.types," | ",C)}(t);case 167:return function(e){b(e.types," & ",C)}(t);case 168:return function(e){ce("("),C(e.type),ce(")")}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),C(t.type)}(t);case 171:return function(e){C(e.objectType),ce("["),C(e.indexType),ce("]")}(t);case 172:return function(e){var t=ye;ye=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),C(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),C(e.type),ce(";"),ue(),de(),ce("}"),ye=t}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),de()),ce("}")}(t);case 71:case 143:return i(t);case 158:return function(e){fe(be,e.parameterName),ce(" is "),C(e.type)}(t)}}function D(t){be=t.text,xe=e.getLineStarts(t),ke=t.identifiers,Se=e.isExternalModule(t),ye=t,e.emitDetachedComments(be,xe,_e,e.writeCommentRange,t,ge,!0),v(t.statements)}function T(e){if(!ke.has(e))return e;for(var t=0;;){t++;var n=e+"_"+t;if(!ke.has(n))return n}}function E(e,t,r,i){var a=T(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),_e.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,ye,16388,_e),ce(";"),ue(),a}function w(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),fe(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},Ne);ce(t.isExportEquals?"export = ":"export default "),ce(r)}if(ce(";"),ue(),71===t.expression.kind){d(n.collectLinkedAliases(t.expression))}}function A(e){return n.isDeclarationVisible(e)}function N(e,t){if(t)P(e);else if(237===e.kind||265===e.parent.kind&&Se){var r=void 0;if(De&&265!==e.parent.kind)De.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||M(i.importClause.namedBindings))}Pe.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r})}}}function P(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return $(t);case 229:return G(t);case 231:return U(t);case 232:return K(t);case 233:return J(t);case 237:return F(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind")}}function O(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&Ne&&ce("declare ")}}function I(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ")}function F(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}we(t),e.hasModifier(t,1)&&ce("export "),ce("import "),fe(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,n),ce(";")):(ce("require("),L(t),ce(");")),_e.writeLine()}function M(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(we(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=_e.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&fe(be,t.importClause.name),t.importClause.namedBindings&&M(t.importClause.namedBindings)&&(r!==_e.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),fe(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ")}L(t),ce(";"),_e.writeLine()}function L(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a)}else if(233===r.kind)i=r.name;else{var a=r;i=a.moduleSpecifier}if(9===i.kind&&me&&(he.out||he.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}fe(be,i)}function B(e){e.propertyName&&(fe(be,e.propertyName),ce(" as ")),fe(be,e.name)}function j(e){B(e),d(n.collectLinkedAliases(e.propertyName||e.name))}function z(e){we(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,j),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),_e.writeLine()}function J(t){for(we(t),O(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):fe(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),fe(be,t.name);var n=ye;t.body?(ye=t,ce(" {"),ue(),le(),v(t.body.statements),de(),ce("}"),ue(),ye=n):ce(";")}function U(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=ye;ye=t,we(t),O(t),ce("type "),fe(be,t.name),W(t.typeParameters),ce(" = "),S(t.type,n),ce(";"),ue(),ye=r}function K(t){we(t),O(t),e.isConst(t)&&ce("const "),ce("enum "),fe(be,t.name),ce(" {"),ue(),le(),v(t.members),de(),ce("}"),ue()}function q(t){we(t),fe(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue()}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function W(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),we(t),de(),fe(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.constraint)):S(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.default)):S(t.default,n))}t&&(ce("<"),x(t,n),ce(">"))}function H(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?S(t,r):n||95!==t.expression.kind||ce("null")}t&&(ce(n?" implements ":" extends "),x(t,r))}function G(t){var n=ye;ye=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),we(t),O(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),fe(be,t.name),W(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?H([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,C),ce(">")))),H(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t)})}(e.getFirstConstructorWithBody(t)),v(t.members),de(),ce("}"),ue(),ye=n}function $(t){we(t),O(t),ce("interface "),fe(be,t.name);var n=ye;ye=t,W(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&H(r,!1),ce(" {"),ue(),le(),v(t.members),de(),ce("}"),ue(),ye=n}function X(t){e.hasDynamicName(t)||(we(t),I(e.getModifierFlags(t)),Y(t),ce(";"),ue())}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(we(a.getAccessor),we(a.setAccessor),I(e.getModifierFlags(t)|(a.setAccessor?0:64)),fe(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;o=n(s),o&&(i=s)}h(t,o,r)}ce(";"),ue()}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(we(t),228===t.kind?O(t):151!==t.kind&&152!==t.kind||I(e.getModifierFlags(t)),228===t.kind?(ce("function "),fe(be,t.name)):152===t.kind?ce("constructor"):(fe(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t))}function re(e){we(e),ie(e)}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:r,errorNode:t.name||t}}var r=ye;ye=t;var i=!1;if(157===t.kind)I(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=_e.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("))}W(t.typeParameters),ce("(")}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),C(t.type)):152===t.kind||e.hasModifier(t,8)||y(t,n),ye=r,o?i&&ce(")"):(ce(";"),ue())}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind)}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]")}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(fe(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),fe(be,t.name))))}le(),we(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):fe(be,t.name),n.isOptionalParameter(t)&&ce("?"),de(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||h(t,t.type,r)}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return N(e,A(e));case 208:return N(e,Z(e));case 238:return N(e,!e.importClause);case 244:return z(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return w(e);case 265:return D(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a)}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Oe+='/// '+ge),c}var ce,ue,le,de,fe,_e,pe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),he=t.getCompilerOptions();u();var ye,ve,be,xe,ke,Se,Ce,De,Te,Ee=!1,we=he.removeComments?e.noop:k,Ae=he.stripInternal?c:oe,Ne=!0,Pe=[],Oe="",Ie=[],Fe=!1,Me=[];return e.forEach(pe,function(n){if(!e.isSourceFileJavaScript(n)){if(he.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Ie,i)&&(se(i,!me&&!Fe,o)&&(Fe=!0),Ie.push(i))}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(Ne=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),D(n),de(),ce("}"),ue()):(Ne=!0,D(n)),Pe.length){var r=_e;e.forEach(Pe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(var n=0;n'+ge}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Me,synchronousDeclarationOutput:_e.getText(),referencesOutput:Oe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos)}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var d=266===r.kind?r.sourceFiles:[r],f=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,f,i.getCompilerOptions().emitBOM,d)}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r}(o||(o={}));var o;!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out){if(s.length){var u=c.outFile||c.out,l=n(u,c),d=c.declaration?e.removeFileExtension(u)+".d.ts":"";i({jsFilePath:u,sourceMapFilePath:l,declarationFilePath:d},e.createBundle(s),o)}}else for(var f=0,_=s;f<_.length;f++){var p=_[f],u=e.getOwnEmitOutputFilePath(p,t,r(p,c)),l=n(u,c),d=e.isSourceFileJavaScript(p)||!o&&!c.declaration?void 0:e.getDeclarationEmitOutputFilePath(p,t);i({jsFilePath:u,sourceMapFilePath:l,declarationFilePath:d},p,o)}}function n(e,t){return t.sourceMap?e+".map":void 0}function r(t,n){if(1===n.jsx)if(e.isSourceFileJavaScript(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function i(t){return 266===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,e.getOriginalSourceFile)):e.getOriginalSourceFile(t)}function a(n,r,a,s,c){function u(t,a){var o=t.jsFilePath,c=t.sourceMapFilePath,u=t.declarationFilePath;r.isEmitBlocked(o)||g.noEmit?C=!0:s||l(o,c,a),u&&(C=e.writeDeclarationFile(u,i(a),r,n,b,s)||C),!C&&v&&(s||v.push(o),c&&v.push(c),u&&v.push(u))}function l(t,n,i){var a=266===i.kind?i:void 0,o=265===i.kind?i:void 0,s=a?a.sourceFiles:[o];S.initialize(t,n,i),a?(p=e.createMap(),m=!1,E.writeBundle(a,k)):(m=!0,E.writeFile(o,k)),k.writeLine();var c=S.getSourceMappingURL();c&&k.write("//# sourceMappingURL="+c),g.sourceMap&&!g.inlineSourceMap&&e.writeFile(r,b,n,S.getText(),!1,s),y&&y.push(S.getSourceMapData()),e.writeFile(r,b,t,k.getText(),g.emitBOM,s),S.reset(),k.reset(),_=void 0,p=void 0,m=!1}function d(e){_=e,S.setSourceFile(e)}function f(t,n){var r=!1,i=266===t.kind?t:void 0;if(!i||h!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;o "),v(e.type)}function te(e){qn("function"),Ln(e,e.parameters),qn(":"),v(e.type)}function ne(e){qn("?"),v(e.type)}function re(e){qn("!"),v(e.type)}function ie(e){v(e.type),qn("=")}function ae(e){qn("new "),Rn(e,e.typeParameters),Ln(e,e.parameters),qn(" => "),v(e.type)}function oe(e){qn("typeof "),v(e.exprName)}function se(t){qn("{");var n=1&e.getEmitFlags(t)?448:65;Jn(t,t.members,262144|n),qn("}")}function ce(e){v(e.elementType),qn("[]")}function ue(e){qn("..."),v(e.type)}function le(e){qn("["),Jn(e,e.elementTypes,336),qn("]")}function de(e){Jn(e,e.types,260)}function fe(e){Jn(e,e.types,264)}function _e(e){qn("("),v(e.type),qn(")")}function pe(){qn("this")}function me(e){Yn(e.operator),qn(" "),v(e.type)}function ge(e){v(e.objectType),qn("["),v(e.indexType),qn("]")}function he(t){var n=e.getEmitFlags(t);qn("{"),1&n?qn(" "):(Vn(),Wn()),t.readonlyToken&&(v(t.readonlyToken),qn(" ")),qn("["),k(3,t.typeParameter),qn("]"),y(t.questionToken),qn(": "),v(t.type),qn(";"),1&n?qn(" "):(Vn(),Hn()),qn("}")}function ye(e){x(e.literal)}function ve(e){var t=e.elements;0===t.length?qn("{}"):(qn("{"),Jn(e,t,432),qn("}"))}function be(e){0===e.elements.length?qn("[]"):(qn("["),Jn(e,e.elements,304),qn("]"))}function xe(e){On(e.propertyName,": "),y(e.dotDotDotToken),v(e.name),Nn(" = ",e.initializer)}function ke(e){Un(e,e.elements,4466|(e.multiLine?32768:0))}function Se(t){var n=65536&e.getEmitFlags(t);n&&Wn();var r=t.multiLine?32768:0,i=wr.languageVersion>=1?32:0;Jn(t,t.properties,263122|i|r),n&&Hn()}function Ce(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(wr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=sr(t,t.expression,o),r=sr(t,o,t.name)}x(t.expression),tr(n),qn(!n&&De(t.expression)?"..":"."),tr(r),v(t.name),nr(n,r)}function De(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=dr(n);return!n.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function Te(e){x(e.expression),qn("["),x(e.argumentExpression),qn("]")}function Ee(e){x(e.expression),Mn(e,e.typeArguments),Un(e,e.arguments,1296)}function we(e){qn("new "),x(e.expression),Mn(e,e.typeArguments),Un(e,e.arguments,9488)}function Ae(e){x(e.tag),qn(" "),x(e.template)}function Ne(e){qn("<"),v(e.type),qn(">"),x(e.expression)}function Pe(e){qn("("),x(e.expression),qn(")")}function Oe(e){Ct(e)}function Ie(e){Fn(e,e.decorators),wn(e,e.modifiers),Tt(e,Fe)}function Fe(e){Rn(e,e.typeParameters),jn(e,e.parameters),An(": ",e.type),qn(" "),v(e.equalsGreaterThanToken)}function Me(e){qn("delete "),x(e.expression)}function Re(e){qn("typeof "),x(e.expression)}function Le(e){qn("void "),x(e.expression)}function Be(e){qn("await "),x(e.expression)}function je(e){Yn(e.operator),ze(e)&&qn(" "),x(e.operand)}function ze(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Je(e){x(e.operand),Yn(e.operator)}function Ue(e){var t=26!==e.operatorToken.kind,n=sr(e,e.left,e.operatorToken),r=sr(e,e.operatorToken,e.right);x(e.left),tr(n,t?" ":void 0),Zr(e.operatorToken.pos),Xn(e.operatorToken),Qr(e.operatorToken.end,!0),tr(r," "),x(e.right),nr(n,r)}function Ke(e){var t=sr(e,e.condition,e.questionToken),n=sr(e,e.questionToken,e.whenTrue),r=sr(e,e.whenTrue,e.colonToken),i=sr(e,e.colonToken,e.whenFalse);x(e.condition),tr(t," "),v(e.questionToken),tr(n," "),x(e.whenTrue),nr(t,n),tr(r," "),v(e.colonToken),tr(i," "),x(e.whenFalse),nr(r,i)}function qe(e){v(e.head),Jn(e,e.templateSpans,131072)}function Ve(e){qn("yield"),v(e.asteriskToken),Nn(" ",e.expression)}function We(e){qn("..."),x(e.expression)}function He(e){It(e)}function Ge(e){x(e.expression),Mn(e,e.typeArguments)}function $e(e){x(e.expression),e.type&&(qn(" as "),v(e.type))}function Xe(e){x(e.expression),qn("!")}function Ye(e){$n(e.keywordToken,e.pos),qn("."),v(e.name)}function Qe(e){x(e.expression),v(e.literal)}function Ze(e){$n(17,e.pos,e),et(e,!e.multiLine&&cr(e)),Wn(),Zr(e.statements.end),Hn(),$n(18,e.statements.end,e)}function et(t,n){var r=n||1&e.getEmitFlags(t)?384:65;Jn(t,t.statements,r)}function tt(e){wn(e,e.modifiers),v(e.declarationList),qn(";")}function nt(){qn(";")}function rt(e){x(e.expression),qn(";")}function it(e){var t=$n(90,e.pos,e);qn(" "),$n(19,t,e),x(e.expression),$n(20,e.expression.end,e),In(e,e.thenStatement),e.elseStatement&&(Qn(e),$n(82,e.thenStatement.end,e),211===e.elseStatement.kind?(qn(" "),v(e.elseStatement)):In(e,e.elseStatement))}function at(t){qn("do"),In(t,t.statement),e.isBlock(t.statement)?qn(" "):Qn(t),qn("while ("),x(t.expression),qn(");")}function ot(e){qn("while ("),x(e.expression),qn(")"),In(e,e.statement)}function st(e){var t=$n(88,e.pos);qn(" "),$n(19,t,e),lt(e.initializer),qn(";"),Nn(" ",e.condition),qn(";"),Nn(" ",e.incrementor),qn(")"),In(e,e.statement)}function ct(e){var t=$n(88,e.pos);qn(" "),$n(19,t),lt(e.initializer),qn(" in "),x(e.expression),$n(20,e.expression.end),In(e,e.statement)}function ut(e){var t=$n(88,e.pos);qn(" "),On(e.awaitModifier," "),$n(19,t),lt(e.initializer),qn(" of "),x(e.expression),$n(20,e.expression.end),In(e,e.statement)}function lt(e){void 0!==e&&(227===e.kind?v(e):x(e))}function dt(e){$n(77,e.pos),An(" ",e.label),qn(";")}function ft(e){$n(72,e.pos),An(" ",e.label),qn(";")}function _t(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(wr.text,n)),n=$n(t,n,r),i&&i.kind===r.kind&&Qr(n,!0),n}function pt(e){_t(96,e.pos,e),Nn(" ",e.expression),qn(";")}function mt(e){qn("with ("),x(e.expression),qn(")"),In(e,e.statement)}function gt(e){var t=$n(98,e.pos);qn(" "),$n(19,t),x(e.expression),$n(20,e.expression.end),qn(" "),v(e.caseBlock)}function ht(e){v(e.label),qn(": "),v(e.statement)}function yt(e){qn("throw"),Nn(" ",e.expression),qn(";")}function vt(e){qn("try "),v(e.tryBlock),e.catchClause&&(Qn(e),v(e.catchClause)),e.finallyBlock&&(Qn(e),qn("finally "),v(e.finallyBlock))}function bt(e){$n(78,e.pos),qn(";")}function xt(e){v(e.name),An(": ",e.type),Nn(" = ",e.initializer)}function kt(t){qn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Jn(t,t.declarations,272)}function St(e){Ct(e)}function Ct(e){Fn(e,e.decorators),wn(e,e.modifiers),qn("function"),y(e.asteriskToken),qn(" "),b(e.name),Tt(e,Et)}function Dt(e,t){At(t)}function Tt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Wn(),524288&e.getEmitFlags(t)?(n(t),zr?zr(4,r,Dt):At(r)):(fr(),n(t),zr?zr(4,r,Dt):At(r),_r()),i&&Hn()}else n(t),qn(" "),x(r);else n(t),qn(";")}function Et(e){Rn(e,e.typeParameters),Ln(e,e.parameters),An(": ",e.type)}function wt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,wr))return!1;if(rr(t,t.statements,2)||ar(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&v(e.attributes),qn("/>")}function rn(e){qn("<"),dn(e.tagName),Gn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),qn(">")}function an(e){Fr.writeLiteral(lr(e,!0))}function on(e){qn(""),dn(e.tagName),qn(">")}function sn(e){Jn(e,e.properties,131328)}function cn(e){v(e.name),An("=",e.initializer)}function un(e){qn("{..."),x(e.expression),qn("}")}function ln(e){e.expression&&(qn("{"),y(e.dotDotDotToken),x(e.expression),qn("}"))}function dn(e){71===e.kind?x(e):v(e)}function fn(e){qn("case "),x(e.expression),qn(":"),pn(e,e.statements)}function _n(e){qn("default:"),pn(e,e.statements)}function pn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],wr));n.length>0&&Qr(n.pos);var i=81985;r&&(qn(" "),i&=-66),Jn(t,n,i)}function mn(e){qn(" "),Yn(e.token),qn(" "),Jn(e,e.types,272)}function gn(e){var t=$n(74,e.pos);qn(" "),e.variableDeclaration&&($n(19,t),v(e.variableDeclaration),$n(20,e.variableDeclaration.end),qn(" ")),v(e.block)}function hn(t){v(t.name),qn(": ");var n=t.initializer;if(Qr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Qr(r.pos)}x(n)}function yn(e){v(e.name),e.objectAssignmentInitializer&&(qn(" = "),x(e.objectAssignmentInitializer))}function vn(e){e.expression&&(qn("..."),x(e.expression))}function bn(e){v(e.name),Nn(" = ",e.initializer)}function xn(t){Vn();var n=t.statements;if(Yr){if(0===n.length||!e.isPrologueDirective(n[0])||e.nodeIsSynthesized(n[0]))return void Yr(t,n,kn)}kn(t)}function kn(t){var n=t.statements;fr(),O(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Jn(t,n,1,-1===r?n.length:r),_r()}function Sn(e){x(e.expression)}function Cn(e){Un(e,e.elements,272)}function Dn(t,n,r){for(var i=0;i